Hough transform

`[`

computes the Standard
Hough Transform (SHT) of the binary image `H`

,`theta`

,`rho`

]
= hough(`BW`

)`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.

`[`

computes
the Standard Hough Transform (SHT) of the binary image `H`

,`theta`

,`rho`

]
= hough(`BW`

,`Name,Value`

,...)`BW`

,
where named parameters affect the computation.

Code Generation support: Yes.

MATLAB Function Block support: Yes.

Was this topic helpful?