Docsity

Understanding Edge Detection in Computer Vision: From Theory to Practice, Lecture notes of Computer Science

Partial preview of the text

Download Understanding Edge Detection in Computer Vision: From Theory to Practice and more Lecture notes Computer Science in PDF only on Docsity!

Finding Boundaries

Computer Vision

Docsity.com

Edge detection

  • Goal: Identify sudden changes (discontinuities) in an image - Intuitively, most semantic and shape information from the image can be encoded in the edges - More compact than pixels
  • Ideal: artist’s line drawing (but artist is also using object-level knowledge) Source: D. LoweDocsity.com

Origin of Edges

  • Edges are caused by a variety of factors

depth discontinuity surface color discontinuity illumination discontinuity

surface normal discontinuity

Source: Steve SeitzDocsity.com

Closeup of edges

Source: D. HoiemDocsity.com

Closeup of edges

Source: D. HoiemDocsity.com

Closeup of edges

Source: D. HoiemDocsity.com

Intensity profile

Source: D. HoiemDocsity.com

With a little Gaussian noise

Gradient Source: D. HoiemDocsity.com

Effects of noise

  • Difference filters respond strongly to noise
    • Image noise results in pixels that look very different from their neighbors
    • Generally, the larger the noise the stronger the response
  • What can we do about it?

Source: D. ForsythDocsity.com

Solution: smooth first

  • To find edges, look for peaks in dxd (^ f g )

f

g

f * g

dxd (^ f g )

Source: S. SeitzDocsity.com

Derivative of Gaussian filter

  • [1 -1] =

Docsity.com

  • Smoothed derivative removes noise, but blurs edge. Also finds edges at different “scales”.

1 pixel 3 pixels 7 pixels

Tradeoff between smoothing and localization

Source: D. ForsythDocsity.com

Canny edge detector

  • This is probably the most widely used edge detector in computer vision
  • Theoretical model: step-edges corrupted by additive Gaussian noise
  • Canny has shown that the first derivative of the Gaussian closely approximates the operator that optimizes the product of signal-to-noise ratio and localization

J. Canny, A Computational Approach To Edge Detection , IEEE Trans. Pattern Analysis and Machine Intelligence, 8:679-714, 1986.

Source: L. Fei-FeiDocsity.com

Example

original image (Lena) Docsity.com