Learning to Reconstruct 3D Manhattan Wireframes From a Single Image

Yichao Zhou, Haozhi Qi, Yuexiang Zhai, Qi Sun, Zhili Chen, Li-Yi Wei, Yi Ma

Introduction

Reconstructing the 3D geometry of a scene from a single 2D image is a fundamental challenge in computer vision. While traditional methods like Structure from Motion (SfM) or LiDAR scanning produce dense point clouds, these representations are often noisy, memory-intensive, and lack the structural clarity required for CAD or AR applications. Humans, by contrast, perceive the world through geometrically salient features: lines, planes, and corners.

This paper introduces a deep learning framework designed to reconstruct clean, compact 3D wireframes from a single RGB image. By leveraging the "Manhattan world" assumption—where most structural lines are mutually orthogonal—the system "lifts" 2D image data into a structured 3D model that captures the underlying architectural skeleton of a scene.

Methodology: From Pixels to 3D Vectors

The proposed pipeline moves from raw pixels to a 3D vector representation through a multi-stage process:

  1. Joint 2.5D Inference: A Stacked Hourglass convolutional neural network is trained to simultaneously predict junction locations, sub-pixel offsets, edge probabilities, junction depths, and vanishing points. The authors found that joint training on these geometrically related tasks improves overall performance compared to isolated models.
  2. Junction Classification: A critical innovation is the explicit classification of junctions into C-junctions (corners where physical planes meet) and T-junctions (occlusion points where one edge passes behind another). This distinction is vital for resolving depth ambiguities.
  3. Heatmap Vectorization: The 2D heatmaps generated by the network are converted into a discrete graph of vertices and edges.
  4. 3D Lifting and Optimization: The system uses predicted vanishing points to calibrate the camera and then solves a convex optimization problem. This step refines junction depths to ensure 3D lines align with global vanishing points and satisfy geometric constraints, such as T-junction occlusion rules.
The pipeline transforms a single input image (a) into a structured 3D wireframe (b), which can then be rendered from novel viewpoints (c).

Datasets and Evaluation

To train and validate the model, the authors curated two distinct datasets:

  • SceneCity Urban 3D (SU3): A large-scale synthetic dataset of 23,000 procedurally generated urban images, providing perfect ground truth for 3D wireframes and vanishing points.
  • Realistic Landmark Dataset: A subset of ~200 real-world images from MegaDepth, manually labeled to test the model's generalization to complex, non-synthetic environments.

The unified network achieved a 4-point improvement in Average Precision (AP) over previous state-of-the-art 2D wireframe parsers. More importantly, the depth refinement optimization improved junction depth accuracy in 65% of test cases compared to raw neural network output, demonstrating the power of geometric priors in single-view reconstruction.

Key Insights

  • Vanishing Points as Priors: The network predicts global vanishing points more accurately than per-pixel depth. Using these as geometric constraints during the "lifting" phase significantly corrects initial depth errors.
  • Structural Focus: By focusing on junctions and corners, the model learns to ignore "textural" lines—such as brick patterns or decorative facade elements—that do not contribute to the primary 3D structure.

Limitations and Future Work

The current approach relies heavily on the Manhattan world assumption, which may limit its effectiveness on organic shapes or non-orthogonal architecture. Additionally, in extremely dense scenes, noisy vanishing point estimates can hinder the optimization process. Future research may explore hybrid algorithms that combine deep learning with traditional line clustering or extend the wireframe representation to full 3D surface meshes.

Summary updated

BibTeX
@inproceedings{zhou2019learning,
  author = {Yichao Zhou and Haozhi Qi and Yuexiang Zhai and Qi Sun and Zhili Chen and Li-Yi Wei and Yi Ma},
  title = {{Learning to Reconstruct 3D Manhattan Wireframes From a Single Image}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00779},
}
Figure