Skip to main content
Log in

Line segment detection using weighted mean shift procedures on a 2D slice sampling strategy

  • Theoretical Advances
  • Published:
Pattern Analysis and Applications Aims and scope Submit manuscript

Abstract

A new line segment detection approach is introduced in this paper for its application in real-time computer vision systems. It has been designed to work unsupervised without any prior knowledge of the imaged scene; hence, it does not require tuning of input parameters. Although many works have been presented on this topic, as far as we know, none of them achieves a trade-off between accuracy and speed as our strategy does. The reduction of the computational cost compared to other fast methods is based on a very efficient sampling strategy that sequentially proposes points on the image that likely belong to line segments. Then, a fast line growing algorithm is applied based on the Bresenham algorithm, which is combined with a modified version of the mean shift algorithm to provide accurate line segments while being robust against noise. The performance of this strategy is tested for a wide variety of images, comparing its results with popular state-of-the-art line segment detection methods. The results show that our proposal outperforms these works considering simultaneously accuracy in the results and processing speed.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16

Similar content being viewed by others

Notes

  1. For the sake of clarity in the notation, italic characters correspond to scalar values while bold characters represent arrays.

  2. SSWMS RP, 91.73/95.35; LSD RP, 90.35/73.33; PPHT, RP: 38.19/89.91. These numbers mean that both the LSD and SSWMS offer great results for this image, although the LSD delivers more false alarms. The PPHT suffer more missdetections and thus its recall value is very low.

References

  1. Aggarwal N, Karl WC (2006) Line detection in images through regularized Hough transform. IIEEE Trans Image Process 15(3):582–591

    Article  Google Scholar 

  2. Almansa A, Desolneux A, Vamech S (2003) Vanishing point detection without any a priori information. IEEE Trans Pattern Anal Mach Intell 25(4):502–507

    Article  Google Scholar 

  3. Bandera A, Perez Lorenzo JM, Bandera JP, Sandoval F (2006) Mean shift based clustering of Hough domain for fast line segment detection. Pattern Recognit Lett 27(6):578–586

    Article  Google Scholar 

  4. Bishop CM (2006) Pattern recognition and machine learning (Information Science and Statistics). Springer

  5. Bresenham J (1965) Algorithm for computer control of a digital plotter. IBM Syst J 4(1):25–30

    Article  Google Scholar 

  6. Burns JB, Hanson AR, Riseman EM (1986) Extracting straight lines. IEEE Trans Pattern Anal Mach Intell 8(4):425–455

    Article  Google Scholar 

  7. Canny J (1986) A comptational approach to edge detection. IEEE Trans Pattern Anal Mach Intell 8(6):679–698

    Article  Google Scholar 

  8. Comaniciu D, Meer P (2002) Mean shift: A robust approach toward feature space analysis. IEEE Trans Pattern Anal Mach Intell 24:603–619

    Article  Google Scholar 

  9. Dayhot R (2009) Statistical Hough transform. IEEE Trans Pattern Anal Mach Intell 31(8):1502–1509

    Article  Google Scholar 

  10. Denis P, Elder JH, Estrada FJ (2008) Efficient edge-based methods for estimating Manhattan Frames in urban imagery. In: IEEE Proc European Conference on Computer Vision 2:197–210

  11. Galambos C, Kittler J, Matas J (1999) Progressive probabilistic hough transform for lie detection. IEEE Comput Soc Conf Comput Vis Pattern Recognit 1:1554

    Google Scholar 

  12. Gilks W, Richardson S, Spiegelhalter D (1996) Markov Chain Monte Carlo Methods in practice. Chapman and Hall/CRC

  13. Grompone von Gioi R, Jakubowicz J, Morel JM, Randall G (2009) LSD: a fast line segment detector with a false detection control. IEEE Trans Pattern Anal Mach Intell 99(1)

  14. Guru DS, Shekar BH, Nagabhushan P (2004) A simple and robust line detection algorithm based on small eigenvalue analysis. Pattern Recognit Lett 25(1):1–13

    Article  Google Scholar 

  15. Han B, Comaniciu D, Zhu Y, Davis LS (2008) Sequential kernel density approximation and its application to real-time visual tracking. IEEE Trans Pattern Anal Mach Intell 30(7):1186–1197

    Article  Google Scholar 

  16. Heath M, Sarkar S, Sanocki T, Bowyer K (1998) Comparison of edge detectors: a methodology and initial study. Comput Vis Image understand 69(1):38–54

    Article  Google Scholar 

  17. Kälviäinen H, Hirvonen P, Xu L, Oja E (1994) Comparisons of probabilistic and non-probabilistic Hough transforms. Proceedings of 3rd European conference on computer vision, pp 351–360

  18. Khan P, Kitchen L, Riseman EM (1990) A fast line finder for vision-guided robot navigation. IEEE Trans Pattern Anal Mach Intell 12(11):1098–1102

    Article  Google Scholar 

  19. Kiryati N, Eldar Y, Bruckstein AM A probabilistic hough transform. Pattern Recognit 24(4):303–316

  20. Košecká J, Zhang W (2003) Video compass. European conference on computer vision, LNCS 2350, Springer, pp 476–491

  21. Liebowitz D, Zisserman A (1998) Metric rectification for perspective images of planes. In: IEEE Proc. computer vision and pattern recognition 0:482–488

  22. Liebowitz D, Criminisi A, Zisserman A (1999) Creating architectural models from images. Comput Graphics Forum 18(3):39–50

    Article  Google Scholar 

  23. Maduro C, Batista K, Peixoto P, Batista J (2008) Estimation of vehicle velocity and traffic intensity using rectified images. IEEE international conference on image processing, pp 777–780

  24. Nacken PFM (1993) A metric for line segments. IEEE Trans Pattern Anal Mach Intell 15:1312–1318

    Article  Google Scholar 

  25. Neal R (2000) Slice sampling. Ann Stat 31:705–767

    Article  MathSciNet  Google Scholar 

  26. Nevatia R, Babu KR (1980) Linear feature extraction and description. Comput Graphics Image Process 13:257–269

    Article  Google Scholar 

  27. Pflugfelder R (2008) Self-calibrating cameras in video surveillance. PhD thesis, Graz University of Technology

  28. Rosten E, Drummond T (2006) Machine learning for high-speed corner detection. Eur Conf Comput Vis 1:430–443

    Google Scholar 

  29. Serby D, Meier EK, Van Gool L (2004) Probabilistic object tracking using multiple features. In: Proceedings of the 17th international conference on pattern recognition 2:184–187

  30. Sirakov NM, Kojouharov H, Sirakova NN (2010) Tracking Neutrophils cells by active contours with coherence and boundary improvement filter. In: IEEE Proc. SSIAI2010 5–8

  31. Stephens RS (1991) Probabilistic approach to the hough transform. Image Vis Comput 9(1):66–71

    Article  Google Scholar 

  32. Walsh D, Raftery AE (2002) Accurate and efficient curve detection in images: the importance sampling Hough transform. Pattern Recognit 35:1421–1431

    Article  MATH  Google Scholar 

  33. Wang H, Cheng Y, Fang T, Tyan J, Ahuja N (2006) Gradient adaptive image restoration and enhancement. In: IEEE Proc. international conference on image processing, pp 2893–2896

  34. Xu L, Oja E, Kultanen P (1990) A new curve detection method: Randomized Hough transform (RHT). Pattern Recognit Lett 11(5):331–338

    Article  MATH  Google Scholar 

  35. Yuen SYK, Lam TSL, Leung NKD (1993) Connective Hough transform. Image Vis Comput 11:295–301

    Article  Google Scholar 

Download references

Acknowledgments

This work has been partially supported by the Ministerio de Ciencia e Innovación of the Spanish Government under project TEC2007-67764 (SmartVision), and by the Comunidad de Madrid under project S-0505/TIC-0223 (Pro-Multidis).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Marcos Nieto.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Nieto, M., Cuevas, C., Salgado, L. et al. Line segment detection using weighted mean shift procedures on a 2D slice sampling strategy. Pattern Anal Applic 14, 149–163 (2011). https://doi.org/10.1007/s10044-011-0211-4

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10044-011-0211-4

Keywords

Navigation