Image Processing Toolbox User's Guide |

**Using the Radon Transform to Detect Lines**

The Radon transform is closely related to a common computer vision operation known as the Hough transform. You can use the `radon`

function to implement a form of the Hough transform used to detect straight lines. The steps are

**Radon Transform of an Edge Image
**

- Find the locations of strong peaks in the Radon transform matrix. The locations of these peaks correspond to the locations of straight lines in the original image.

In the following figure, the strongest peaks in `R`

correspond to and . The line perpendicular to that angle and located at is shown below, superimposed in red on the original image. The Radon transform geometry is shown in black. Notice that the other strong lines parallel to the red line also appear as peaks at in the transform. Also, the lines perpendicular to this line appear as peaks at .

**Radon Transform Geometry and the Strongest Peak (Red)
**

Viewing the Radon Transform as an Image | Inverse Radon Transform |

© 1994-2005 The MathWorks, Inc.