Parameters HoughlinesP "threshold" and "minLineLength"

I am using the HoughLinesP function in OpenCV. After reading the documentation here , I am confused about the need for two parameters "threshold" and "minLineLength". The documentation reads:

threshold - parameter of the pump threshold. Only these lines returned to get enough votes (> threshold).

minLineLength - minimum line length. Line segments are shorter than deviate.

Not one of them superfluous? Is the number of votes a line receives equal to the number of pixels it contains? Given that "minLineLength" indicates which lines to reject, what is a "threshold"? I missed something. Clearing will be appreciated.

+4
source share
2 answers

If the battery cells are wide and there are many closely spaced short lines, then the battery count will be high. min_line_lengthhelp solve such problems.

We hope this clarifies the issue.

+2
source

Ok, I read the documentation and how Randomized Hough Transform (let's call it RHT) works, and I have this idea. Perhaps this will be wrong.

In RHT, not all binary points are taken into account, correctly. That is why it is faster. Thus, it thresholdmeans in the battery how many voices you had to consider (rho, theta) as a line, it's simple.

, , minLineLength , , . , 5 , , lineLength , 5 . , 3 , - , lineLength 20 .

, Length, .

0

All Articles