Image Processing Toolbox User's Guide Previous page   Next Page

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

  1. Compute a binary edge image using the edge function.
  2. Compute the Radon transform of the edge image.

Radon Transform of an Edge Image

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


Previous page  Viewing the Radon Transform as an Image Inverse Radon Transform Next page

© 1994-2005 The MathWorks, Inc.