DeepLSD: Line Segment Detection and Refinement with Deep Image Gradients
Rémi Pautrat, Daniel Barath, Viktor Larsson, Martin R. Oswald, Marc Pollefeys
Abstract
Line segments are ubiquitous in our human-made world and are increasingly used in vision tasks. They are complementary to feature points thanks to their spatial extent and the structural information they provide. Traditional line detectors based on the image gradient are extremely fast and accurate, but lack robustness in noisy images and challenging conditions. Their learned counterparts are more repeatable and can handle challenging images, but at the cost of a lower accuracy and a bias towards wireframe lines. We propose to combine traditional and learned approaches to get the best of both worlds: an accurate and robust line detector that can be trained in the wild without ground truth lines. Our new line segment detector, DeepLSD, processes images with a deep network to generate a line attraction field, before converting it to a surrogate image gradient magnitude and angle, which is then fed to any existing handcrafted line detector. Additionally, we propose a new optimization tool to refine line segments based on the attraction field and vanishing points. This refinement improves the accuracy of current deep detectors by a large margin. We demonstrate the performance of our method on low-level line detection metrics, as well as on several downstream tasks using multiple challenging datasets. The source code and models are available at https://github.com/cvg/DeepLSD .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7070e97d-96f3-49b4-a3ee-40a21f175814Cited by top-tier papers20
- GlueStick: Robust Image Matching by Sticking Points and Lines TogetherRémi Pautrat, Iago Suárez, Yifan Yu, Marc Pollefeys et al.ICCV 2023 · 108 citations
- Shadows Don't Lie and Lines Can't Bend! Generative Models Don't know Projective Geometry...for NowAyush Sarkar, Hanlin Mai, Amitabh Mahapatra, Svetlana Lazebnik et al.CVPR 2024 · 22 citations
- LoD-Loc: Aerial Visual Localization using LoD 3D Map with Neural Wireframe AlignmentJuelin Zhu, Shen Yan, Long Wang, Shengyue Zhang et al.NeurIPS 2024 · 17 citations
- PARSAC: Accelerating Robust Multi-Model Fitting with Parallel Sample ConsensusFlorian Kluger, Bodo RosenhahnAAAI 2024 · 11 citations
- AnyCalib: On-Manifold Learning for Model-Agnostic Single-View Camera CalibrationJavier Tirado-Garín, Javier CiveraICCV 2025 · 9 citations
Builds on13
- Hypersim: A Photorealistic Synthetic Dataset for Holistic Indoor Scene UnderstandingMike Roberts, Jason Ramapuram, Anurag Ranjan, Atulit Kumar et al.ICCV 2021 · 633 citations
- Pixel-Perfect Structure-from-Motion with Featuremetric RefinementPhilipp Lindenberger, Paul-Edouard Sarlin, Viktor Larsson, Marc PollefeysICCV 2021 · 266 citations
- End-to-End Wireframe ParsingYichao Zhou, Haozhi Qi, Yi MaICCV 2019 · 190 citations
- Progressive-X: Efficient, Anytime, Multi-Model Fitting AlgorithmDániel Baráth, Jiri MatasICCV 2019 · 76 citations
- ELSD: Efficient Line Segment Detector and DescriptorHaotian Zhang, Yicheng Luo, Fangbo Qin, Yijia He et al.ICCV 2021 · 32 citations
Related papers
- SOLD2: Self-Supervised Occlusion-Aware Line Description and DetectionRémi Pautrat, Juan-Ting Lin, Viktor Larsson, Martin R. Oswald et al.CVPR 2021
- ScaleLSD: Scalable Deep Line Segment Detection StreamlinedZeran Ke, Bin Tan, Xianwei Zheng, Yujun Shen et al.CVPR 2025
- Towards Light-Weight and Real-Time Line Segment DetectionGeonmo Gu, ByungSoo Ko, SeoungHyun Go, Sung-Hyun Lee et al.AAAI 2022 · 94 citations
- Semantic Line Combination DetectorJinwon Ko, Dongkwon Jin, Chang-Su KimCVPR 2024
- Promoting Saliency From Depth: Deep Unsupervised RGB-D Saliency DetectionWei Ji, Jingjing Li, Qi Bi, Chuan Guo et al.ICLR 2022 · 46 citations
