Table of Contents
OpenCV中HoughLines两个点为什么要乘以1000
原理图解
官方文档解释:
A line can be represented as
or in parametric form, as
where
is the perpendicular distance from origin to the line, and
is the angle formed by this perpendicular line and horizontal axis measured in counter-clockwise ( That direction varies on how you represent the coordinate system. This representation is used in OpenCV).
So if line is passing below the origin, it will have a positive rho and angle less than 180. If it is going above the origin, instead of taking angle greater than 180, angle is taken less than 180, and rho is taken negative. Any verti