Reputation: 1
C++: void HoughLinesP(InputArray image, OutputArray lines, double rho, double theta, int threshold, double minLineLength=0, double maxLineGap=0 )
I have difficulties understanding the parameter in below. Could some explain it like one would for dummies type thing?.
threshold – Accumulator threshold parameter. Only those lines are returned that get enough votes ( >\texttt{threshold} ).
Upvotes: 0
Views: 1008
Reputation: 411
Seems you have not understood the Hough Algorithm. I hope a intro or short description on hough line detection algo below will surely help you. Ref: Wiki,Tutorial.
where, Pi - Distance and T (theta) - Angle. Theta ranges from 0-360. A(Pi,T) is referred as hough space. By finding the accumulator bins with the highest values, typically by looking for local maxima in the accumulator space, the most likely lines can be extracted. Usually finding highest values are done by a parameter threshold.
Try changing the threshold values, you will find significant change in the line detection.
Upvotes: 0