Hough
Hough
Hough
Reading
• Watt, 10.3-10.4
An edge is not a line...
Option 2:
• Use a voting scheme: Hough transform
Finding lines in an image
y b
b0
x m0 m
image space Hough space
x0 x m
image space Hough space
H[d, ] += 1
3. Find the value(s) of (d, ) where H[d, ] is maximum
4. The detected line in the image is given by
What’s the running time (measured in # votes)?
Hough line demo
Extensions
Extension 1: Use the image gradient
1. same
2. for each edge point I[x,y] in the image
compute unique (d, ) based on image gradient at (x,y)
H[d, ] += 1
3. same
4. same
What’s the running time measured in votes?
Extension 2
• give more votes for stronger edges
Extension 3
• change the sampling of (d, ) to give more/less resolution
Extension 4
• The same procedure can be used with circles, squares, or any
other shape
Extensions
Extension 1: Use the image gradient
1. same
2. for each edge point I[x,y] in the image
compute unique (d, ) based on image gradient at (x,y)
H[d, ] += 1
3. same
4. same
What’s the running time measured in votes?
Extension 2
• give more votes for stronger edges
Extension 3
• change the sampling of (d, ) to give more/less resolution
Extension 4
• The same procedure can be used with circles, squares, or any
other shape
Hough circle demo