Elsevier

Pattern Recognition

Volume 41, Issue 6, June 2008, Pages 1845-1866
Pattern Recognition

Old and new straight-line detectors: Description and comparison

https://doi.org/10.1016/j.patcog.2007.11.013Get rights and content

Abstract

Straight-line detection is important in several fields such as robotics, remote sensing, and imagery. The objective of this paper is to present several methods, old and new, used for straight-line detection. We begin by reviewing the standard Hough transform (SHT), then three new methods are suggested: the revisited Hough transform (RHT), the parallel-axis transform (PAT), and the circle transform (CT). These transforms utilize a point-line duality to detect straight lines in an image. The RHT and the PAT should be faster than the SHT and the CT because they use line segments whereas the SHT uses sinusoids and CT uses circles. Moreover, the PAT, RHT, and CT use additions and multiplications whereas the SHT uses trigonometric functions (sine and cosine) for calculation. To compare the methods we analyze the distribution of the frequencies in the accumulators and observe the effect on the detection of false local maxima. We also compare the robustness to noise of the four transforms. Finally, an example with a real image is given.

Introduction

The goal of this paper is to propose and analyze old and new methods for detecting straight lines in images, using a point-line duality approach. After a review of the standard Hough transform (SHT), three new methods are proposed. These new methods are: the revisited Hough transform (RHT), which uses the Cartesian equation of a line; the parallel-axis transform (PAT), which is obtained from the parallel-axis coordinate system; and the circle transform (CT), which uses the normal equation of a line.

Point-line duality was introduced by Hough [1] in 1962 to detect straight lines in an image. It was extended by Rosenfeld [2] in 1969 and by Duda and Hart [3] in 1972. They developed the (standard) Hough transform, which has since been a traditional method for straight-line detection in images. It has been used in a number of applications: for road detection in satellite images by Geman and Jedynak [4], for robot localization by Hoppenot et al. [5], for local constraint analysis by Kramer et al. [6], for robust bar-code reading by Muniz et al. [7], and for the detection of boat wakes by Rey et al. [8] and Magli et al. [9]. Since this method use sinusoids, Tuytelaars et al. [10] have recently suggested an extension of the SHT, called the cascade Hough transform (CHT), which uses only straight lines. We also present an extension of the SHT which uses only straight lines and which is simpler than both the CHT and SHT. This method has recently been introduced simultaneously and independently in Refs. [11], [12].

A point-line duality also appears in the parallel-axis coordinates system. A point in Rn is represented by a poly-line in the parallel-axis coordinate system and conversely, a poly-line represents a point in Rn. The parallel-axis coordinate system is used for the visualization of multidimensional information. Sets of data in several dimensions are visualized by drawing a poly-line for each point through regularly spaced parallel axes. This technique introduced by Inselberg [13] and Inselberg and Dimsdale [14], [15] has been used for several applications: in robotics by Cohan and Yang [16], in aerospace by Helly [17], in management by Desai and Walers [18], and in aerial navigation by Inselberg [19]. We use the parallel-axis coordinate system to develop a new method of straight-line detection as we did for the RHT [11].

In Section 2, we present and review how the SHT is used to detect the points aligned on a straight line in an image. We give the definition and properties of the SHT and describe its implementation. Section 3 is devoted to the RHT. This transform uses the Cartesian equation of a line directly. We present its definition and properties and also describe its implementation. In Section 4, we present a new method called PAT.

First we introduce the parallel-axis frame of reference proposed by Inselberg [13]. Then we give the definition of the PAT, which uses a parallel-axis representation of the plane and the point-line duality to define a new algorithm for straight-line detection in an image. We present the properties of this transform and describe its implementation. The CT is presented in Section 5. We give the definition of the CT, which uses a point-line duality to define a new algorithm for straight-line detection in an image. It is in fact the Hough transform but with a different parameter space [20]. We also present the properties of this new transform and discuss its implementation. In Section 6 we compare the four methods under four different aspects. We consider the transformation of the white image and the corresponding distributions of the votes in the accumulators. Then we illustrate the robustness to the occurrence of artifacts by detecting parallel lines. The analysis of the robustness of the methods to noise follows. Finally, we apply the methods on a real image. Conclusions are given in Section 7.

Section snippets

Standard Hough transform

The SHT was introduced by Hough [1] and extended by Rosenfeld [2] and by Duda and Hart [3]. We briefly review this method and point out its underlying point-line duality.

Revisited Hough transform

We propose here a new version of the Hough transform based on the Cartesian equation of a line (see Refs. [11], [12]). A modification of the SHT was proposed by Tuytelaars et al. [10], but our approach is simpler.

Parallel-axis transform

Based on the system of parallel coordinates and its point-line duality, we present a new method for line detection in images [11].

Circle transform

Like the SHT, the CT uses the normal equation of a line, but a different parameter space formed of circles. This idea was presented in Ref. [20].

Comparison

In theory all straight lines passing by the same number of pixels must have the same votes, if not it is an artifact. We test robustness, for the four methods to this artifact, for a totally white image. Also we test robustness to this artifact for images with high number of parallel straight lines (which approximate the white image). Robustness to the noise for the four methods is tested in the end of this section.

In all the subsections below, the accumulator size for each of the four

Conclusion

Based on an extension of the point-line duality used by the (standard) Hough transform to detect straight lines in an image, we have analyzed three methods. Which methods are faster than the SHT because the PAT, RHT and CT use additions and multiplications whereas the SHT uses trigonometric functions (sine and cosine) for calculation. We compared the four methods for accumulator distribution of votes and conclude that the distribution of the votes is more accurate for CT and PAT than for SHT

Acknowledgments

This work has been financially supported by NSERC (Natural Sciences and Engineering Research Council of Canada) via individual discovery grants to the last two authors.

About the Author—SAID EL MEJDANI received his B.Sc. degree in Mathematics in 1992 from University Ibn Toufail (Morocco) and his M.Sc. degree in Computer Science at University of Sherbrooke (Québec, Canada). He is currently a Ph.D. candidate in Computer Science at University of Sherbrooke.

References (24)

  • M.T. Rey et al.

    Application of radon transform techniques to wake detection in seasat-ASAR images

    IEEE Trans. Geosci. Remote Sensing

    (1990)
  • T. Tuytelaars et al.

    The cascade Hough transform

  • Cited by (32)

    • OTLines: A novel line-detection algorithm without the interference of smooth curves

      2016, Pattern Recognition
      Citation Excerpt :

      However, it also has serious limitations, such as problems with setting thresholds, false detections in high-edge-density regions, large storage space requirements, and long computational times. These limitations have been widely discussed for decades [3]. Many efforts have been made to solve these problems [4–7].

    • Closed form line-segment extraction using the Hough transform

      2015, Pattern Recognition
      Citation Excerpt :

      A basic HT assumes that such a voting defines a peak for some pair (θ,ρ) (possibly at sub-cell accuracy) which characterises the parameters θ and ρ of the considered line in the image plane. There exist known problems of HT methods with respect to peak spreading, accuracy (related to the used quantization in Hough space), and computational efficiency [12–14]. Modified HT methods [15,16] improve time and storage efficiency.

    • Vanishing points in point-to-line mappings and other line parameterizations

      2013, Pattern Recognition Letters
      Citation Excerpt :

      Since then, researchers continue revisiting the point-to-line mappings (i.e. line parameterizations that map the set of all lines through a point onto a line in the parameter space). The original Hough transform (Hough, 1962) falls into this category with many similar approaches based on Cartesian (Tuytelaars et al., 1998; Mejdani et al., 2008) or parallel coordinates (Dubská et al., 2011; Mejdani et al., 2008). Bhattacharya et al. (2002) studied the properties of all point-to-line mappings (PTLMs) in general and made some important observations.

    • Advanced Radon transform using generalized interpolated Fourier method for straight line detection

      2011, Computer Vision and Image Understanding
      Citation Excerpt :

      Straight line detection of an image is required for many pattern recognition problems, since various natural and man-made objects can typically be identified by their distinct combination of linear features. A number of line detection methods have been described in the literature in the past decades, many of which are based on the standard or variant Hough transforms (HT) [1–9] due to its stability and robustness when applied to images where noise and missing data occur. However, the computational efficiency of the HT-based line detectors falls sharply as the image dimensions and/or resolution of the accumulator increase.

    View all citing articles on Scopus

    About the Author—SAID EL MEJDANI received his B.Sc. degree in Mathematics in 1992 from University Ibn Toufail (Morocco) and his M.Sc. degree in Computer Science at University of Sherbrooke (Québec, Canada). He is currently a Ph.D. candidate in Computer Science at University of Sherbrooke.

    About the Author—RICHARD EGLI is associate professor in the Department of Computer Sciences at University of Sherbrooke since 2000. He received his B.Sc degree in Computer Science and his M.Sc. degree in Computer Sciences at University of Sherbrooke (Québec, Canada). He receives his Ph.D. in Computer Science from University of Montréal (Québec, Canada) in 2000. His research interests include computer graphics and digital image processing.

    About the Author—FRANCOIS DUBEAU is professor in the Department of Mathematics at University of Sherbrooke since 1992. He taught at the Collège Militaire Royal de St-Jean (Québec, Canada) from 1982 to 1992. He received his Ph.D. degree in Mathematics from University of Montréal (Québec, Canada) in 1981, his M.Sc.A. degree in Industrial Engineering in 1973 and his B.Sc.A. degree in Engineering Physics in 1971 from École Polytechnique de Montréal (Québec, Canada). His research interests include applied mathematics, operational research, numerical analysis, and digital image processing.

    View full text