Abstract
Junctions are strong cues for understanding the geometry of a scene. In this paper, we consider the problem of detecting junctions and using them for recovering the spatial layout of an indoor scene. Junction detection has always been challenging due to missing and spurious lines. We work in a constrained Manhattan world setting where the junctions are formed by only line segments along the three principal orthogonal directions. Junctions can be classified into several categories based on the number and orientations of the incident line segments. We provide a simple and efficient voting scheme to detect and classify these junctions in real images. Indoor scenes are typically modeled as cuboids and we formulate the problem of the cuboid layout estimation as an inference problem in a conditional random field. Our formulation allows the incorporation of junction features and the training is done using structured prediction techniques. We outperform other single view geometry estimation methods on standard datasets.
Introduction
Estimating the 3D layout of a room—identifying which pixels belong to the walls, floor, or ceiling—from a single 2D photograph is a classic inverse problem in computer vision. It is inherently ambiguous because many different 3D shapes can result in the same 2D image. While humans excel at this by spotting corners and edges, algorithms often struggle with "clutter" (furniture, shadows, and textures) that creates spurious lines.
Previous approaches relied heavily on line segments or orientation maps, but they often overlooked the specific geometric "handshakes" where these lines meet: junctions. Detecting junctions in real-world images is notoriously difficult because lines are often broken or missing. This paper aims to bridge that gap by providing a formal catalogue of junctions and a way to use them for spatial reasoning.
Methodology
The proposed approach operates under the Manhattan World assumption, which posits that most indoor structures are aligned along three principal orthogonal axes.
Junction Detection and Classification
Instead of looking for perfect corners, a novel voting scheme is employed. Six accumulator arrays are created based on the three vanishing points of the image. Every line segment in the image votes for a potential junction based on its orientation and position. Junctions are classified into types like L, Y, T, X, W, and K. For example, a room corner is typically a Y-junction, while furniture boundaries often create W-junctions.
A key insight in the detection formula is the use of a Dirac delta function to penalize the presence of lines in directions where they should not exist for a specific junction type. This means a junction is defined as much by the lines that are absent as by the ones that are present.
Layout Estimation via CRF
The problem of cuboid layout estimation is formulated as an inference problem in a Conditional Random Field (CRF). The model incorporates unary potentials (region matching), pairwise potentials (boundary alignment), and triple cliques (rewarding corners coinciding with Y-junctions).
High-scoring junctions are used to propose candidate "box" layouts, making the sampling process much more efficient than uniform searching. This data-dependent sampling allows the algorithm to focus on geometrically plausible configurations.
Experimental Results
The method was evaluated on two standard benchmarks: the Hedau et al. dataset and the UCB dataset. Additionally, 100 living room images from Flickr were used to calculate baseline statistics for junction types on different surfaces.
The system is highly efficient; junction detection takes less than a second, and final inference takes less than 10 milliseconds. The method achieved state-of-the-art performance:
- Hedau Dataset: Pixel misclassification error of 13.34%, outperforming the previous best of 13.59%.
- UCB Dataset: 16.11% error, a significant improvement over the 18.84% reported in earlier literature.
Qualitatively, the model proved capable of "seeing through" clutter, correctly identifying room boundaries even when they were partially occluded by furniture such as beds or sofas.
Conclusion and Future Work
While the current model assumes a single cuboid room, it demonstrates the power of junctions as geometric priors. Future work could extend this to complex "L-shaped" rooms or use specific junction types (like W and K) to explicitly model and reconstruct furniture. Moving beyond the box assumption will require denser sampling and more complex inference techniques to handle the increased geometric variety of indoor spaces.
Summary updated