Abstract
Line segment detection is a fundamental task in computer vision, essential for 3D reconstruction and scene understanding. Traditional methods often struggle with local noise and lighting variations. We present PPGNet (Point-Pair Graph Network), a novel framework that treats line detection as a graph inference problem. By directly inferring a point-pair adjacency matrix from image features, PPGNet captures global geometric structures more effectively than local edge-based methods, achieving robust performance across diverse indoor and outdoor environments.
Introduction
Detecting line segments in man-made environments is a foundational task for 3D reconstruction and navigation. However, traditional algorithms, such as the Line Segment Detector (LSD), rely heavily on local gradients. This dependency makes them sensitive to noise, lighting changes, and "visually obscure" lines—such as intersections between two walls of the same color that a human can perceive through context but a local edge detector misses.
While recent deep learning approaches have improved performance, they often output pixel-wise heatmaps that require complex post-processing to transform into parameterized lines. PPGNet addresses this gap by providing a unified framework that directly outputs a structured, informative graph representation of junctions (nodes) and their connectivities (edges).
Methodology
PPGNet is a multi-stage convolutional neural network that treats line detection as a graph inference problem. The architecture consists of four primary modules designed to move from raw pixels to a structured graph:
- Backbone Network: A dilated ResNet-50 extracts high-level feature maps from the input image, providing the contextual foundation for subsequent stages.
- Junction Detection Module (JDM): This module regresses a junction heatmap and utilizes a Local Maximum Filter (LMF) to identify potential vertices (junctions) in the scene.
- Line Segment Alignment Module (LSAM): For every possible pair of detected junctions, this module samples features along the line connecting them. This process is conceptually similar to ROI Align but optimized for line segments, ensuring the model evaluates the actual path between two points.
- Adjacency Matrix Inference Module (AMIM): This module acts as the connectivity logic. It processes the sampled line features through a series of 1D and 2D convolutions to predict the probability that a pair of junctions is connected. It employs an "and" logic—checking the line from both directions—to ensure geometric consistency.
Datasets and Evaluation
The model was evaluated on several key benchmarks to test its versatility and robustness:
- Wireframe Dataset: A standard benchmark for indoor scene parsing.
- York Urban Dataset: A dataset focused on Manhattan-world line segments.
- The Authors' Dataset: To address the lack of diversity in existing benchmarks, the authors introduced a new, larger dataset containing 1,378 indoor and 2,534 outdoor images with full graph-based annotations.
Key Results and Insights
PPGNet demonstrates strong performance across benchmarks, particularly in its ability to generalize to unseen environments. By representing lines as a graph, the model understands that multiple line segments can share a single junction, providing a powerful geometric constraint that pixel-wise methods lack.
Quantitatively, on the Wireframe dataset, PPGNet achieved competitive results compared to state-of-the-art parsers, showing significantly improved precision-recall curves when utilizing ground truth junctions. Qualitatively, the model excels in complex scenes where lines are partially occluded or have low contrast. It successfully retrieves more abundant line segment information than previous methods, which often missed secondary geometric structures.
In terms of efficiency, the system can process an image with 512 junctions in approximately 0.9 seconds on a Tesla P40 GPU, making it viable for various real-world applications.
Limitations and Future Work
Despite its strengths, PPGNet faces certain challenges. The adjacency matrix approach has an $O(n^2)$ complexity relative to the number of junctions, which can become a bottleneck in extremely complex scenes. Future research may involve filtering candidate pairs to reduce this overhead. Additionally, the model occasionally struggles with very small rectangles or closely spaced co-linear lines due to the bilinear sampling resolution in the LSAM module.
Beyond line detection, the PPGNet framework could potentially be adapted for other graph-like inference tasks in computer vision, such as human pose estimation or scene graph generation.
Summary updated