Line Detection: By: Tom Madison
Line Detection: By: Tom Madison
Line Detection: By: Tom Madison
a) Horizontal mask
b) Vertical mask
c) 45 degrees
d) -45 degrees
•The above masks are use to detect light lines on a dark background
•To detect dark lines on a white background simply negate the masks
Addition of Images
Examples
Original Horizontal Mask Threshold
Final Result
Original: After applying line detection masks:
y=ax + b b = -xa + y
a and b known x and y known
Unfortunately b = -xa + y isn’t good enough as the slope
approaches infinity as the slope becomes vertical.
Hough Transform
Hough Transform
Simple Shape
Basic Image
Simple Shape
Edge Detection Hough Transform De-Hough + original
Noisy Images
Edge Detection + noise Hough Transform De-Hough + original
Broken Edges
Broken Edge Detection Hough Transform De-Hough + Original
References
• http://cs-alb-pc3.massey.ac.nz/notes/59318/l10.html
• http://www.cse.unr.edu/~bebis/CS791E/Notes/LineDetection.pdf
• http://homepages.inf.ed.ac.uk/rbf/HIPR2/linedet.htm
• Matlab Help
• http://www.ece.utk.edu/~gonzalez/ipweb2e/downloads/classroom_presentat
ions/Chapter10-Art.zip