edge detection
play

Edge Detection Sanja Fidler CSC420: Intro to Image Understanding 1 - PowerPoint PPT Presentation

Edge Detection Sanja Fidler CSC420: Intro to Image Understanding 1 / 47 Finding Waldo Lets revisit the problem of finding Waldo And lets take a simple example image template (filter) Sanja Fidler CSC420: Intro to Image Understanding


  1. Edge Detection Sanja Fidler CSC420: Intro to Image Understanding 1 / 47

  2. Finding Waldo Let’s revisit the problem of finding Waldo And let’s take a simple example image template (filter) Sanja Fidler CSC420: Intro to Image Understanding 2 / 47

  3. Finding Waldo Let’s revisit the problem of finding Waldo And let’s take a simple example normalized cross-correlation Waldo detection (putting box around max response) Sanja Fidler CSC420: Intro to Image Understanding 3 / 47

  4. Finding Waldo Now imagine Waldo goes shopping ... but our filter doesn’t know that image template (filter) Sanja Fidler CSC420: Intro to Image Understanding 4 / 47

  5. Finding Waldo Now imagine Waldo goes shopping (and the dog too) ... but our filter doesn’t know that normalized cross-correlation Waldo detection (putting box around max response) Sanja Fidler CSC420: Intro to Image Understanding 5 / 47

  6. Finding Waldo (again) What can we do to find Waldo again? Sanja Fidler CSC420: Intro to Image Understanding 6 / 47

  7. Finding Waldo (again) What can we do to find Waldo again? Edges!!! image template (filter) Sanja Fidler CSC420: Intro to Image Understanding 6 / 47

  8. Finding Waldo (again) What can we do to find Waldo again? Edges!!! normalized cross-correlation Waldo detection (putting box around max response) (using the edge maps) Sanja Fidler CSC420: Intro to Image Understanding 6 / 47

  9. Waldo and Edges Sanja Fidler CSC420: Intro to Image Understanding 7 / 47

  10. Edge detection Map image to a set of curves or line segments or contours . More compact than pixels. Edges are invariant to changes in illumination Important for recognition Figure: [Shotton et al. PAMI, 07] [Source: K. Grauman] Sanja Fidler CSC420: Intro to Image Understanding 8 / 47

  11. Edge detection Map image to a set of curves or line segments or contours . More compact than pixels. Edges are invariant to changes in illumination Important for recognition Important for various applications Figure: Parse basketball court (left) to figure out how far the guy is from net Sanja Fidler CSC420: Intro to Image Understanding 8 / 47

  12. Edge detection Map image to a set of curves or line segments or contours . More compact than pixels. Edges are invariant to changes in illumination Important for recognition Important for various applications f0 Figure: How can a robot pick up or grasp objects? Sanja Fidler CSC420: Intro to Image Understanding 8 / 47

  13. Edge detection Map image to a set of curves or line segments or contours . More compact than pixels. Edges are invariant to changes in illumination Important for recognition Important for various applications f0 Figure: How can a robot pick up or grasp objects? Sanja Fidler CSC420: Intro to Image Understanding 8 / 47

  14. Origin of Edges Edges are caused by a variety of factors surface normal discontinuity depth discontinuity surface color discontinuity illumination discontinuity [Source: N. Snavely] Sanja Fidler CSC420: Intro to Image Understanding 9 / 47

  15. What Causes an Edge? [Source: K. Grauman] Sanja Fidler CSC420: Intro to Image Understanding 10 / 47

  16. Looking More Locally... [Source: K. Grauman] Sanja Fidler CSC420: Intro to Image Understanding 11 / 47

  17. Images as Functions Edges look like steep cliffs [Source: N. Snavely] Sanja Fidler CSC420: Intro to Image Understanding 12 / 47

  18. Characterizing Edges An edge is a place of rapid change in the image intensity function. [Source: S. Lazebnik] Sanja Fidler CSC420: Intro to Image Understanding 13 / 47

  19. How to Implement Derivatives with Convolution How can we differentiate a digital image f [ x , y ]? If image f was continuous, then compute the partial derivative as ∂ f ( x , y ) f ( x + ǫ, y ) − f ( x ) = lim ∂ x ǫ ǫ → 0 Sanja Fidler CSC420: Intro to Image Understanding 14 / 47

  20. How to Implement Derivatives with Convolution How can we differentiate a digital image f [ x , y ]? If image f was continuous, then compute the partial derivative as ∂ f ( x , y ) f ( x + ǫ, y ) − f ( x ) = lim ∂ x ǫ ǫ → 0 Since it’s discrete, take discrete derivative (finite difference) ∂ f ( x , y ) ≈ f [ x + 1 , y ] − f [ x ] ∂ x 1 Sanja Fidler CSC420: Intro to Image Understanding 14 / 47

  21. How to Implement Derivatives with Convolution How can we differentiate a digital image f [ x , y ]? If image f was continuous, then compute the partial derivative as ∂ f ( x , y ) f ( x + ǫ, y ) − f ( x ) = lim ∂ x ǫ ǫ → 0 Since it’s discrete, take discrete derivative (finite difference) ∂ f ( x , y ) ≈ f [ x + 1 , y ] − f [ x ] ∂ x 1 What would be the filter to implement this using correlation/convolution? Sanja Fidler CSC420: Intro to Image Understanding 14 / 47

  22. How to Implement Derivatives with Convolution How can we differentiate a digital image f [ x , y ]? If image f was continuous, then compute the partial derivative as ∂ f ( x , y ) f ( x + ǫ, y ) − f ( x ) = lim ∂ x ǫ ǫ → 0 Since it’s discrete, take discrete derivative (finite difference) ∂ f ( x , y ) ≈ f [ x + 1 , y ] − f [ x ] ∂ x 1 What would be the filter to implement this using correlation/convolution? !" !" 1 -1 -1 1 [Source: S. Seitz] Sanja Fidler CSC420: Intro to Image Understanding 14 / 47

  23. Examples: Partial Derivatives of an Image How does the horizontal derivative using the filter [ − 1 , 1] look like? Image Sanja Fidler CSC420: Intro to Image Understanding 15 / 47

  24. Examples: Partial Derivatives of an Image How does the horizontal derivative using the filter [ − 1 , 1] look like? ∂ f ( x , y ) with [ − 1 , 1] and correlation Image ∂ x Sanja Fidler CSC420: Intro to Image Understanding 15 / 47

  25. Examples: Partial Derivatives of an Image How about the vertical derivative using filter [ − 1 , 1] T ? Image Sanja Fidler CSC420: Intro to Image Understanding 16 / 47

  26. Examples: Partial Derivatives of an Image How about the vertical derivative using filter [ − 1 , 1] T ? with [ − 1 , 1] T and correlation ∂ f ( x , y ) Image ∂ y Sanja Fidler CSC420: Intro to Image Understanding 16 / 47

  27. Examples: Partial Derivatives of an Image How does the horizontal derivative using the filter [ − 1 , 1] look like? Image Sanja Fidler CSC420: Intro to Image Understanding 17 / 47

  28. Examples: Partial Derivatives of an Image How does the horizontal derivative using the filter [ − 1 , 1] look like? ∂ f ( x , y ) with [ − 1 , 1] and correlation Image ∂ x Sanja Fidler CSC420: Intro to Image Understanding 17 / 47

  29. Examples: Partial Derivatives of an Image How about the vertical derivative using filter [ − 1 , 1] T ? Image Sanja Fidler CSC420: Intro to Image Understanding 18 / 47

  30. Examples: Partial Derivatives of an Image How about the vertical derivative using filter [ − 1 , 1] T ? with [ − 1 , 1] T and correlation ∂ f ( x , y ) Image ∂ y Sanja Fidler CSC420: Intro to Image Understanding 18 / 47

  31. Examples: Partial Derivatives of an Image Figure: Using correlation filters [Source: K. Grauman] Sanja Fidler CSC420: Intro to Image Understanding 19 / 47

  32. Finite Difference Filters [Source: K. Grauman] Sanja Fidler CSC420: Intro to Image Understanding 20 / 47

  33. Image Gradient � � ∂ f ∂ x , ∂ f The gradient of an image ∇ f = ∂ y Sanja Fidler CSC420: Intro to Image Understanding 21 / 47

  34. Image Gradient � � ∂ f ∂ x , ∂ f The gradient of an image ∇ f = ∂ y The gradient points in the direction of most rapid change in intensity Sanja Fidler CSC420: Intro to Image Understanding 21 / 47

  35. Image Gradient � � ∂ f ∂ x , ∂ f The gradient of an image ∇ f = ∂ y The gradient points in the direction of most rapid change in intensity The gradient direction (orientation of edge normal) is given by: � ∂ f � ∂ y /∂ f θ = tan − 1 ∂ x Sanja Fidler CSC420: Intro to Image Understanding 21 / 47

  36. Image Gradient � � ∂ f ∂ x , ∂ f The gradient of an image ∇ f = ∂ y The gradient points in the direction of most rapid change in intensity The gradient direction (orientation of edge normal) is given by: � ∂ f � ∂ y /∂ f θ = tan − 1 ∂ x � ∂ x ) 2 + ( ∂ f ( ∂ f ∂ y ) 2 The edge strength is given by the magnitude ||∇ f || = [Source: S. Seitz] Sanja Fidler CSC420: Intro to Image Understanding 21 / 47

  37. Example: Image Gradient Sanja Fidler CSC420: Intro to Image Understanding 22 / 47

  38. Example: Image Gradient Sanja Fidler CSC420: Intro to Image Understanding 23 / 47

  39. Example: Image Gradient [Source: S. Lazebnik] Sanja Fidler CSC420: Intro to Image Understanding 24 / 47

  40. Effects of noise What if our image is noisy? What can we do? Consider a single row or column of the image. Plotting intensity as a function of position gives a signal. !"#$%&#'()*&#+,-.& [Source: S. Seitz] Sanja Fidler CSC420: Intro to Image Understanding 25 / 47

  41. Effects of noise ∂ Smooth first with h (e.g. Gaussian), and look for peaks in ∂ x ( h ∗ f ). [Source: S. Seitz] Sanja Fidler CSC420: Intro to Image Understanding 26 / 47

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend