edges the hough transform
play

Edges & the Hough Transform Instructor - Simon Lucey 16-423 - - PowerPoint PPT Presentation

Edges & the Hough Transform Instructor - Simon Lucey 16-423 - Designing Computer Vision Apps Today Motivation. What is an Edge? Oriented Filters. Hough Transform. Advance Methods. Today Motivation. What is


  1. Edges & the Hough Transform Instructor - Simon Lucey 16-423 - Designing Computer Vision Apps

  2. Today • Motivation. • What is an Edge? • Oriented Filters. • Hough Transform. • Advance Methods.

  3. Today • Motivation. • What is an Edge? • Oriented Filters. • Advance Methods. • Hough Transform.

  4. 1968 Canny edge detector original image human annotator Taken from Isola et al. “Crisp Boundary Detection Using Pointwise Mutual Information”

  5. Edges are Semantic • No mathematical definition of an edge, contour of boundary. • Classic problem in computer vision. • By definition they are semantic. • Early work focussed on oriented filters. • e.g. Canny edge detectors. • Developed by John F. Canny in 1986. “John Canny”

  6. Today • Motivation. • What is an Edge? • Oriented Filters. • Hough Transform. • Advance Methods.

  7. D.H. Hubel & T.N. Wiesel. Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of Physiology, 160(1):106, 1962.

  8. D.H. Hubel & T.N. Wiesel. Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of Physiology, 160(1):106, 1962.

  9. D.H. Hubel & T.N. Wiesel. Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of Physiology, 160(1):106, 1962.

  10. D.H. Hubel & T.N. Wiesel. Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of Physiology, 160(1):106, 1962.

  11. D.H. Hubel & T.N. Wiesel. Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of Physiology, 160(1):106, 1962.

  12. D.H. Hubel & T.N. Wiesel. Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of Physiology, 160(1):106, 1962.

  13. Olshausen & Field 1996

  14. x 1

  15. x 1 x 2

  16. . . . x 1 x 2 x N − 1

  17. . . . x 1 x 2 x N − 1 x N

  18.   . . . M × N . . . . . . X =   . . . . x 1 x 2 x N − 1 x N . .

  19. 0.25 0.2 p ( x ) 0.15 0.1 0.05 0 -6 -4 -2 0 2 4 6 x n X 3.19 bits H ( x ) = − p ( x n ) · log[ p ( x n )] = n =1 Olshausen & Field 1996

  20. 0.8 0.7 0.6 p ( x ) 0.5 0.4 0.3 0.2 0.1 0 -6 -4 -2 0 2 4 6 x n X 1.41 bits H ( x ) = − p ( x n ) · log[ p ( x n )] = n =1 Olshausen & Field 1996

  21. �� �� �� �� c) + = × ✏ X D Z Olshausen & Field 1996 Not Always Zero Always Zero H. Lee, A. Ng, et al. 2007

  22. �� �� �� �� c) + = × ✏ X D Z Olshausen & Field 1996 Not Always Zero Always Zero H. Lee, A. Ng, et al. 2007

  23. 1D Filter ∗

  24. 1D Filter ∗

  25. 1D Filter ∗

  26. 2D Filter   1 , 0 , − 1 1 , 0 , − 1   ∗ 1 , 0 , − 1 (Prewitt)

  27. 2D Filter   1 , 0 , − 1 2 , 0 , − 2   ∗ 1 , 0 , − 1 (Sobel)

  28. 2D Filter

  29. 2D Filter + =

  30. �� �� �� �� 2D Filter c)

  31. 99.6% sparse per patch

  32. 99.6% sparse per patch

  33. + . . . + ∗ + ∗ = d 1 d K ✏ z 1 z K x Not Always Zero Always Zero M. Zeiler, et al. 2010

  34. �� �� �� �� �� �� �� �� + . . . + ∗ + ∗ = c) d 1 d K ✏ z 1 z K x Not Always Zero Always Zero M. Zeiler, et al. 2010

  35. Edges Adapted from: Elder “Are Edges Incomplete?” IJCV 1999.

  36. �� �� Naive Approach? �� �� c) ∗ How do we recover edges?

  37. Canny Edge Detector Adapted from: Computer vision: models, learning and inference. Simon J.D. Prince

  38. Canny Edge Detector Compute horizontal and vertical gradient images h and v Adapted from: Computer vision: models, learning and inference. Simon J.D. Prince

  39. Oriented Filters • Seems inefficient to have to search all possible orientations, + = • Instead one can express all orientations as a linear combination of x- and y- gradient filters.

  40. Canny Edge Detector Quantize to 4 directions Adapted from: Computer vision: models, learning and inference. Simon J.D. Prince

  41. Canny Edge Detector Non-maximal suppression Adapted from: Computer vision: models, learning and inference. Simon J.D. Prince

  42. Non-Max Suppression • Interesting, view of non-max suppression in terms of sparse coding. = × X D Z • Non-max suppression attempts to enforce that Z is sparse.

  43. Canny Edge Detector Hysteresis Thresholding

  44. Classic Edge Detector - Problems Texture Edge Filtering Response Simple Step Edge Filtering Response Appearance Edges Found Original Color Image by Linear Filtering (a) (b) Taken from: “Occlusion Boundaries: Low-Level Detection to High-Level Reasoning” - A. Stein (Ph.D. Thesis)

  45. Today • Motivation. • What is an Edge? • Oriented Filters. • Hough Transform. • Advance Methods.

  46. Hough Transform • A line is classically represented as - . y = m · x + c • Not good, in case of vertical lines (i.e. ). m = ∞ • Instead common to represent lines using , ( θ , ρ ) ρ y = − x tan θ + cos θ θ → angle from horizontal axis to perpendicular ρ → perpendicular distance between the origin and the line

  47. Hough Transform x y Adapted from: Robotics, Vision and Control. Peter Corke.

  48. Exhaustive Search θ ρ “Hough Transform Parameters”

  49. Hough Transform ρ (pixels) y (pixels) x (pixels) θ (radians) ρ (pixels) y (pixels) θ (radians) x (pixels) Adapted from: Robotics, Vision and Control. Peter Corke.

  50. Hough Transform • Elegant in principle - in practice it can work well or infuriatingly badly. • Performs poorly when the scene contains a lot of texture or edges are indistinct. • Lots of experimentation required to find strong edges AND thresholds within the Hough peak detector. Appearance Edges Found Original Color Image by Linear Filtering (a) (b)

  51. State of the Art Sobel & Feldman Arbeláez et al. 1968 2011 (gPb) Isola et al. ez et al. Dollár & Zitnick Our method Human labelers 2013 (SE) 2014 Taken from Isola et al. “Crisp Boundary Detection Using Pointwise Mutual Information”

  52. Things to try in iOS - GPUImage

  53. More to read… • Prince et al. • Chapter 13, Sections 1-2. • Corke et al. • Chapter 13, Section 2. P. Isola et al. “ Crisp Boundary Detection Using • Pointwise Mutual Information ”, ECCV 2014.

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