Hough Transforms Flashcards
How do we convert the equation
y = mx +c
into a straight line equation in
Hough Parameter Space?
c = -xm +y
This gives us a straight line equation for the parameters c and m.
How do we find the line that goes through the most number of points?
Figure out the hough line for each point.
Select the parameters at the point where the most lines cross.
How are hough transforms done programmatically?
Create a large 2d table for the m and c values.
For each line, increment the entry in the table if the line passes through that point.
Threshold on the entries, to figure out what counts as a line
Why is it problematic to use Cartesian co-ordinates with hough lines?
When our line is vertical. m will be infinity.
Instead we use polar co-ordinates
Given a point (X,Y),
how would we get the lines that go through this point in polar co-ordinates?
r = Xcos(theta) + Ysin(theta)
where r and theta are the parameters we vary to get the different lines