hough() - Image Processing
[H,theta,rho]
= hough(BW) computes the Standard
Hough Transform (SHT) of the binary image BW.
The hough function is designed to detect lines.
The function uses the parametric representation of a line: rho
= x*cos(theta) + y*sin(theta). The function returns rho,
the distance from the origin to the line along a vector perpendicular
to the line, and theta, the angle in degrees
between the x-axis and this vector. The function
also returns the Standard Hough Transform, H,
which is a parameter space matrix whose rows and columns correspond
to rho and theta values respectively.
For more information, see Algorithms.example[H,theta,rho]
= hough(BW,Name,Value,...) computes
the Standard Hough Transform (SHT) of the binary image BW,
where named parameters affect the computation.Code Generation support:
Yes.MATLAB Function Block support:
Yes.
Syntax
[H,theta,rho]
= hough(BW) example[H,theta,rho]
= hough(BW,Name,Value,...) example
Example
rho = x*cos(theta) + y*sin(theta)
Output / Return Value
Limitations
Alternatives / See Also
Reference