Line Segment Detection: a Review of the 2022 State of the Art

Thibaud Ehret, Jean-Michel MorelImage Process. Line 2024

Introduction

Line segment detection is a foundational task in computer vision, essential for applications ranging from 3D reconstruction to autonomous navigation. For over a decade, the field was dominated by "handcrafted" algorithms like the Line Segment Detector (LSD), which rely on image gradients and statistical validation. However, the rise of supervised deep learning (DL) has introduced a variety of models that claim superior performance on specific benchmarks. This review evaluates the 2022 state-of-the-art, comparing classical "agnostic" algorithms against six recent DL models and a novel hybrid approach.

Methodologies in Line Detection

The study categorizes detectors into three distinct groups based on their underlying logic:

1. Classical Statistical Methods

Algorithms like LSD and EDlines are parameter-free and "agnostic." They utilize the Helmholtz principle, an a contrario approach that ensures detected lines are statistically significant and not merely random alignments in noise. These methods are highly robust and do not require training data.

2. Supervised Deep Learning

These models utilize complex neural architectures to predict line segments. Notable examples include:

  • AFM (Attraction Field Map): Uses an encoder-decoder structure to generate a field map that guides segment proposal.
  • TP-LSD (Tri-Point LSD): Employs a "tri-point" representation consisting of a center point and two displacement vectors.
  • LETR: A Transformer-based model that bypasses traditional anchors or bounding boxes.
  • SOLD2: Jointly learns detection and descriptors for image matching.
Architecture of the AFM model, which utilizes an attraction field map for segment proposal.

3. Hybrid Approaches

DeepLSD (2023) represents a middle ground, using a neural network to generate a "pseudo-gradient field" which is then processed by the classical LSD algorithm. This approach attempts to combine the feature-learning capabilities of deep networks with the statistical rigor of classical computer vision.

The "Wireframe" Bias and Dataset Limitations

Deep learning models are primarily trained on datasets like the Wireframe Dataset (5,000 images) and tested on the YorkUrban Dataset. A critical finding of this review is that these datasets are heavily biased toward architectural "wireframes"—mental reconstructions of edges rather than raw geometric features. Human annotators often "invent" lines to complete building skeletons or ignore valid geometric lines (like floor planks) that classical detectors correctly identify. This leads DL models to perform scene interpretation rather than objective detection, making them less effective for "out-of-domain" tasks like processing chemical diagrams or natural textures.

Performance and Robustness

Speed and Efficiency

Classical methods remain significantly faster than their deep learning counterparts. LSD processes images in approximately 0.065 seconds, whereas TP-LSD can take over 30 seconds on the same hardware. Even mobile-optimized DL models like M-LSD are roughly 60 times slower than LSD.

The TP-LSD architecture, which uses a feature extractor and shared features for line and point extraction.

The Noise Test

In experiments with pure noise, classical methods correctly detected zero lines due to their statistical validation. In contrast, most DL models struggled, with AFM notably "hallucinating" lines where none existed. This highlights a primary limitation of current DL-based detection: the lack of a robust validation principle equivalent to the a contrario method.

Conclusion

While deep learning excels at producing "clean" results for architectural visualization by ignoring clutter, classical methods are more robust for general-purpose geometric tasks and out-of-domain images. The future of the field likely lies in hybrid models like DeepLSD, which maintain the speed and statistical grounding of classical algorithms while leveraging deep learning for improved feature refinement.

Summary updated

BibTeX
@article{ehret2024line,
  author = {Thibaud Ehret and Jean-Michel Morel},
  title = {{Line Segment Detection: a Review of the 2022 State of the Art}},
  journal = {Image Process. Line},
  year = {2024},
  doi = {10.5201/ipol.2024.481},
}
Figure