Difference between revisions of "Hough Transform"

From RoboJackets Wiki
Jump to navigation Jump to search
(added pictures)
m (Pictures: added pictures for when the filter is applied to an image containing no lines)
Line 37: Line 37:
 
[[Image:TwoDashedCurvyLinesAsHoughSpace.png|thumb|left|150px|]]
 
[[Image:TwoDashedCurvyLinesAsHoughSpace.png|thumb|left|150px|]]
 
[[Image:TwoDashedCurvyLinesWithIdentifiedLines.png|thumb|left|150px|]]
 
[[Image:TwoDashedCurvyLinesWithIdentifiedLines.png|thumb|left|150px|]]
 +
{{clr}}
 +
 +
[[Image:NoLines.png|thumb|left|150px|No lines at all! Just some salt noise.]]
 +
[[Image:NoLinesAsHoughSpace.png|thumb|left|150px|Yikes!]]
 +
[[Image:NoLinesWithIdentifiedLines.png|thumb|left|150px|Double yikes! The robot would probably panic upon seeing this. :P]]
 
{{clr}}
 
{{clr}}

Revision as of 21:23, 21 November 2005

A good description is on this page.

Wikipedia also has its own Hough Transform article.

Pros

  • Able to detect dashed lines

Cons

  • Can only detect straight lines, making it almost useless for curved lines - which will probably be common
    • Useless for detecting curved lines
  • Designed to detect lines as opposed to detecting line segments
  • Computationally expensive (when compared to simple filters)

Input

  • A binary/grayscale image hilighting the line-pixels in the input image

Output

  • A list of the positions/orientations of the lines detected in the input image

Pictures

Two solid straight lines
LinesOnBlackWithHoughTransform.png
LinesOnBlackWithIdentifiedLines.png


One solid curvy line
CurvyLineAsHoughSpace.png
CurvyLineWithIdentifiedLines.png


Two solid curvy lines
TwoSolidCurvyLinesAsHoughSpace.png
TwoSolidCurvyLinesWithIdentifiedLines.png


Two dashed curvy lines
TwoDashedCurvyLinesAsHoughSpace.png
TwoDashedCurvyLinesWithIdentifiedLines.png


No lines at all! Just some salt noise.
Yikes!
Double yikes! The robot would probably panic upon seeing this. :P