Optimizing the Viewing Graph for Structure-from-Motion

Chris Sweeney, Torsten Sattler, Tobias Höllerer, Matthew Turk, Marc Pollefeys

Abstract

Structure-from-Motion (SfM) pipelines often struggle with noisy viewing graphs, leading to slow incremental reconstructions or fragile global estimates. This paper introduces a "pre-processing" optimization that enforces loop consistency via epipolar point transfer and a scalable focal length calibration. By cleaning the viewing graph before reconstruction begins, the proposed method achieves speedups of 2x to 9x over state-of-the-art global SfM techniques while maintaining high robustness on uncalibrated internet photo collections.

Introduction

Structure-from-Motion (SfM) estimates 3D structures and camera poses from 2D image sets using a viewing graph, where nodes represent cameras and edges represent relative geometries (rotation and translation). Traditional approaches face a difficult trade-off: Incremental SfM is robust but extremely slow due to repeated, expensive optimizations (Bundle Adjustment). Global SfM is significantly faster but highly sensitive to outliers in the viewing graph, such as incorrect feature matches caused by repeated structures like building windows.

This work proposes a shift in focus: optimizing the viewing graph to be self-consistent before the main SfM pipeline runs. By "fixing the input" rather than the algorithm, the authors simplify the subsequent reconstruction process.

Methodology

The core contribution is a novel optimization scheme that enforces loop consistency across image triplets. In a consistent graph, the relative geometry between images A→B and B→C should accurately predict the geometry of A→C.

Epipolar Point Transfer

Instead of relying on abstract algebraic constraints, the authors utilize a geometric error termed epipolar point transfer. For a feature point observed in images $j$ and $k$, its position in image $i$ is predicted using the fundamental matrices $F_{ij}$ and $F_{ik}$ connecting them. The optimization minimizes the distance between these predicted pixel locations and the actual observed features.

Diagram of epipolar point transfer between three views (i, j, k) to enforce geometric consistency.

Scalable Calibration and Pipeline

To handle uncalibrated web images, the authors introduce a global focal length estimation method that minimizes a cost function based on essential matrix properties across the entire graph. The full pipeline involves:

  1. Selecting a high-quality subgraph via a Maximum Spanning Tree.
  2. Optimizing the graph for loop consistency.
  3. Calibrating focal lengths for all cameras simultaneously.
  4. Estimating global poses through simple averaging.
  5. Performing a single final Bundle Adjustment.

Evaluation and Results

The method was evaluated on the Strecha MVS datasets for absolute accuracy and the 1DSfM datasets for large-scale robustness on "in-the-wild" internet photo collections.

Comparison of 3D point cloud reconstructions showing the impact of viewing graph optimization on model quality.

Performance Metrics

  • Speed: The pipeline demonstrated significant efficiency, running approximately 5x faster than the 1DSfM baseline on the "Piccadilly" dataset. Overall speedups across various datasets ranged from 2x to 9x.
  • Accuracy: On the "Colosseum" dataset, the mean rotation error dropped from 8.3° to 2.49° following graph optimization, matching or exceeding the precision of incremental methods.
  • Robustness: This is the first global SfM pipeline shown to work effectively on uncalibrated image sets, a domain previously dominated by slower incremental approaches.

Discussion and Conclusion

The primary insight of this work is that making data self-consistent before reconstruction significantly reduces the algorithmic complexity of SfM. By leveraging the redundancy in image triplets, the authors provide a scalable solution for noisy, large-scale datasets. While the method can be sensitive to collinear camera configurations, it represents a major step toward efficient, high-quality 3D reconstruction from unorganized photo collections.

Summary updated

BibTeX
@inproceedings{sweeney2015optimizing,
  author = {Chris Sweeney and Torsten Sattler and Tobias Höllerer and Matthew Turk and Marc Pollefeys},
  title = {{Optimizing the Viewing Graph for Structure-from-Motion}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  doi = {10.1109/iccv.2015.98},
}
Figure