Docsity

Computer Vision: Edge and Corner Feature Detection, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Computer Vision: Edge and Corner Feature Detection and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EECS 442 – Computer vision Detectors part I

Reading:

[FP] Chapters: 8,

Some slides of this lectures are courtesy of prof

F. Li, prof

S. Lazebnik, and various other lecturers

  • Edge feature detectors • Corner feature detectors

Goal:Identify interesting regions fromthe images

(edges, corners, blobs…)

Descriptors

Matching /Indexing /Recognition

e.g. SIFT

• Weight contributions of neighboring pixels by

5 x 5, Slide credit: Christopher Rasmussen

    1. nearness
            • = σ

Smoothing with a Gaussian

Edge detection

What causes an edge?

  • Depth discontinuity• Surface orientation

discontinuity

  • Reflectance discontinuity

(i.e., change in surfacematerial properties)

  • Illumination discontinuity

(e.g., shadow)

Identifies sudden changes in an image

Edge Detection

  • Examples:

True^ edge

Poor localization

Too many responses

Poor robustness

to noise

Designing an edge detector

  • Edge: a location with high gradient
(thus, use derivatives!)
  • Need two derivatives, in x and y direction. •
Need smoothing to reduce noise prior totaking derivative

Edge by Derivative of Gaussian

  • We can use derivative of Gaussian filters

•Gaussian filter is needed for smoothing the image

Why? •Differentiation can be modeled by a convolution• Convolution is associative:

(G * I) = (D * G) * I

D *

Edge by Derivative of Gaussian

Canny Edge Detection

Steps:

1. Gaussian smoothing 2. & Derivative = Derivative of Gaussian 3. Find magnitude and orientation of

gradient

4. Extract edge points: ‘Non-maximum

suppression’

5. Linking and thresholding ‘Hysteresis’:

Matlab:

edge(I,

‘canny’)

Canny Edge Detector

First 2 Steps

  • Smoothing

I ) y , x ( g ' I ∗

=

(^22) (^22)

(^12)

) , (

σ

σ π

y x e y x g

−

=

(^

)^

(^

)^

= ∗ ∇ = ∗ ∇ = I

g

I g

S

⎤ ⎥ ⎦

⎡ ⎢ ⎣

⎤ ⎥ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢ ⎢⎣ ∂ ∂ ∂ ∂ =

∇

x y g g

g x g y

g

I

g g

x^ y

∗ ⎤ ⎥ ⎦

⎡ ⎢ ⎣

⎤ ⎥ ⎦

⎡ ⎢ ⎣

∗ ∗

=

I

g

I

g

x y

•Derivative

[

]

y

x

S

S

S

Canny Edge Detector

First 2 Steps

x

S

y

S

I

(^

)^

(^

)^

I

g

I

g

S

∗ ∇ = ∗ ∇ =

= gradient vector

Canny Edge Detector

Third Step

  • magnitude and direction of

y x 1

2 y

2 x

S S

tan

direction

) S

S(

magnitude

−

=

=

image

[ gradient magnitude

] y

x^

S

S

S