cv.HoughLines - MATLAB File Help |
Finds lines in a binary image using the standard Hough transform
lines = cv.HoughLines(image)
lines = cv.HoughLines(..., 'OptionName', optionValue, ...)
{[rho,theta], ...}
. rho
is the distance from the coordinate origin
(0,0)
(top-left corner of the image). theta
is the line rotation angle
in radians (0 ~ vertical line, pi/2 ~ horizontal line).>Threshold
). default 80.Rho
. The coarse accumulator distance resolution is
Rho
and the accurate accumulator resolution is Rho/SRN
. If both
SRN=0
and STN=0
, the classical Hough transform is used. Otherwise,
both these parameters should be positive. default 0.Theta
. default 0.MaxTheta
. default 0MinTheta
and pi. default piThe function implements the standard or standard multi-scale Hough transform algorithm for line detection. See this for a good explanation of Hough transform.