Abstract
Traditional Structure-from-Motion (SfM) systems rely on parametric camera models that often fail when encountering extreme lens distortions or unknown optical geometries. We present GenSfM, an incremental SfM pipeline that replaces fixed parametric formulas with a flexible, non-parametric spline-based model. By modeling the projection function as a natural cubic spline and employing a stratified initialization based on 1D radial geometry, GenSfM can jointly reconstruct 3D scenes and self-calibrate cameras ranging from standard pinhole lenses to extreme fisheye and catadioptric systems. Our evaluation demonstrates that GenSfM significantly outperforms state-of-the-art parametric pipelines in robustness to distortion while maintaining high accuracy across diverse datasets.
Introduction
Structure-from-Motion (SfM) is a cornerstone of computer vision, enabling the reconstruction of 3D structures from 2D image sequences. However, widely used pipelines like COLMAP rely heavily on parametric camera models. These models use a limited set of parameters (typically 3 to 12) to describe lens distortion via specific mathematical formulas, such as polynomials.
This reliance creates two significant bottlenecks. First, formulas designed for standard lenses often lack the mathematical flexibility to represent the complex warping found in extreme fisheye or 360-degree catadioptric (mirror-based) cameras. Second, if the specific lens model is unknown for "in-the-wild" images, reconstruction often fails to converge or produces warped, inaccurate 3D models. GenSfM addresses these issues by moving away from fixed formulas toward a "one-size-fits-all" pipeline that learns a camera's unique distortion pattern during the reconstruction process.
The GenSfM Pipeline
The core innovation of GenSfM is its incremental pipeline designed for non-parametric self-calibration. Unlike traditional methods that assume a global distortion model from the start, GenSfM builds the camera model alongside the 3D scene.
Key Components
- Spline-Based Calibration Map: Instead of a polynomial, the system models the relationship between the angle of an incoming light ray ($\theta$) and its radius on the image sensor ($r$) using a natural cubic spline. This representation is smooth, invertible, and flexible enough to fit virtually any radially symmetric lens.
- Stratified Initialization: To bootstrap the process without a known model, the system utilizes 1D radial geometry. This technique ignores the radial distance (which is most affected by distortion) and focuses on the angle relative to the image center, providing a distortion-invariant initial 3D estimate.
- Adaptive Calibration: To prevent overfitting in image regions with sparse data, GenSfM employs an adaptive scheme. It only estimates calibration for regions where sufficient 3D-to-2D constraints are available, gradually expanding the calibrated area as more images are integrated.
- Mixed Triangulation & Bundle Adjustment: The pipeline uses a hybrid approach: standard 2D reprojection error for calibrated regions and 1D radial constraints for uncalibrated areas, all optimized jointly in a global Bundle Adjustment.
Experimental Results
GenSfM was evaluated across several benchmarks, including BabelCalib (for calibration accuracy), ETH3D (for standard 3D reconstruction), and specialized collections of fisheye and catadioptric images.
Performance Highlights
- Superior Robustness: On a version of the ETH3D dataset with heavy artificial distortion, GenSfM achieved an average AUC @ 5° of 43.2. In contrast, standard COLMAP configurations struggled significantly, scoring below 3.0.
- State-of-the-Art Accuracy: On the standard (undistorted) ETH3D benchmark, GenSfM achieved the highest average AUC (71.8), outperforming COLMAP’s best configuration (61.5).
- Universal Applicability: The system successfully reconstructed scenes from catadioptric cameras—which produce "donut-shaped" image data—and extreme fisheye lenses without manual tuning or prior calibration. Tests on the BabelCalib dataset showed that GenSfM’s self-calibration is as accurate as dedicated pre-calibration software.
Conclusion and Future Work
GenSfM demonstrates that non-parametric models can provide a universal solution for SfM, handling everything from standard cell phone cameras to exotic optical systems. By prioritizing partial, data-driven calibration over forced parametric fitting, the system achieves unprecedented robustness.
Future work will focus on relaxing the assumption of perfect radial symmetry to account for tangential distortion (often caused by misaligned lens elements) and improving sensitivity to the principal point (center of distortion). Despite these current constraints, GenSfM represents a significant step toward truly general-purpose 3D reconstruction.
Summary updated