How to build an intuition for the various parameters in Hough Transform?
The rho
and theta
units are part of the Hough Transform, but the value we give here specifies the imaginary grid that we create in this transformed domain. For example in the threshold
parameter, we say that each grid box should have atleast x
intersections. So the grid itself is defined by these parameters.
In the hough transform, the x
and y
coordinates become rho
and theta
. To be able to define imaginary boxes in this space, I need to give a width and height to them. This will be the rho
and theta
values in this domain. And then in the next parameter I say, “Hey, now in each of these rectangular imaginary boxes, you should see atleast N
number of interections - if so, then it is a line."
It allows us to specify the straightness of a line. As in, should a slightly curved line also be a line? If a line is curving, all the corresponding hough lines won’t intersect perfectly. So by specifying a large imagi