HSfM: Hybrid Structure-from-Motion

Hainan Cui, Xiang Gao, Shuhan Shen, Zhanyi HuCVPR 2017

Introduction

Structure-from-Motion (SfM) is a fundamental computer vision task that reconstructs 3D scenes and camera poses from 2D image collections. Traditionally, SfM pipelines fall into two categories: incremental and global. Incremental methods are robust but slow and prone to drift, while global methods are fast but highly sensitive to outliers and uneven camera distributions. This paper introduces HSfM (Hybrid Structure-from-Motion), a framework designed to combine the speed of global reconstruction with the robustness of incremental approaches.

The Problem of Scale and Distribution

Incremental SfM starts with a minimal seed and grows the model image-by-image, using RANSAC and repeated Bundle Adjustment (BA) to maintain accuracy. However, this iterative optimization makes it computationally expensive for large datasets. Conversely, global SfM estimates all poses simultaneously, which is efficient but often fails on "messy" Internet data where camera density varies significantly—such as many photos of a landmark but few of the surrounding streets.

The HSfM Framework

HSfM proposes a two-stage hybrid pipeline that leverages the stability of rotation averaging while employing an efficient incremental strategy for camera positions.

The HSfM pipeline overview, showing the two-stage process of global rotation estimation followed by incremental center estimation.

1. Adaptive Community-Based Rotation Averaging

Rather than treating the entire image set as a single entity, HSfM utilizes complex network analysis to detect "communities" of well-connected cameras. By performing rotation averaging within these clusters first and then aligning them, the system achieves higher accuracy in datasets with uneven distributions.

2. Incremental Centers Estimation

Once global rotations are fixed, the system estimates camera centers incrementally. Because rotations are pre-determined, adding a new camera requires only two scene points to solve, making the RANSAC process significantly more efficient.

3. Optimized Bundle Adjustment

During the incremental phase, camera rotations and intrinsic parameters are held constant. This reduces the non-linear optimization to a much smaller problem focused only on camera centers and 3D points, drastically cutting computational overhead.

Experimental Evaluation

The authors evaluated HSfM across diverse benchmarks, including sequential data (Building, Campus), unordered Internet collections (Alamo, Notre Dame), and large-scale datasets (Quad, StreetView).

Qualitative comparison of HSfM against state-of-the-art methods on the Building and Campus datasets, highlighting superior loop closure and reduced drift.

Key Results

  • Efficiency: HSfM demonstrated a significant speed advantage, performing up to 13x faster than Bundler and 5x faster than the parallelized version of Theia.
  • Robustness: On the Gendarmenmarkt dataset—a known failure case for global methods due to repetitive architecture—HSfM successfully reconstructed the scene where others failed.
  • Accuracy and Loop Closure: In sequential datasets like Campus, HSfM successfully closed loops where methods like LUD or COLMAP suffered from drift or failed to maintain trajectory connectivity. On the 5,000+ image Quad dataset, it achieved a median calibration accuracy of 1.03 meters in under an hour.

Conclusion

HSfM effectively bridges the gap between incremental and global SfM. By solving rotations globally and positions incrementally, it avoids the "weakest link" of global translation averaging while maintaining the speed necessary for large-scale applications. While the method currently relies on fixed intrinsics during the growth phase and is dependent on the quality of initial rotation averaging, it represents a significant step forward in robust, high-speed 3D reconstruction.

Summary updated

BibTeX
@inproceedings{cui2017hsfm,
  author = {Hainan Cui and Xiang Gao and Shuhan Shen and Zhanyi Hu},
  title = {{HSfM: Hybrid Structure-from-Motion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.257},
}
Figure