Abstract
Self-calibration of camera focal lengths from a fundamental matrix is a fundamental problem in computer vision, yet traditional closed-form solutions like the Bougnoux formula are plagued by mathematical singularities and high sensitivity to noise. We propose a robust iterative optimization framework that overcomes these limitations by enforcing Kruppa constraints through a system of polynomial equations. Our method introduces a direct parameterization of focal lengths and a novel Real Focal Length Checking (RFC) filter for RANSAC. Experimental results on synthetic and large-scale real-world datasets demonstrate that our approach significantly outperforms existing methods in both focal length accuracy and downstream camera pose estimation, while maintaining high computational efficiency.
Introduction
Determining internal camera parameters from image correspondences—known as self-calibration—is essential for 3D reconstruction from uncalibrated image sequences. The fundamental matrix, which encodes the epipolar geometry between two views, is the standard starting point for this task. However, the widely used Bougnoux formula has two major flaws: it fails mathematically when camera principal axes intersect (a common scenario in photography), and it is highly sensitive to noise, often resulting in physically impossible "imaginary" focal lengths. This paper addresses these challenges by providing a robust, iterative alternative that is both accurate and fast enough for practical use.
Methodology
We frame self-calibration as a constrained optimization problem. The goal is to find focal lengths and principal points that remain close to reasonable "priors" (initial guesses) while strictly satisfying the Kruppa equations, which ensure the validity of the fundamental matrix.
Key technical innovations include:
- Iterative Polynomial Solver: Instead of general-purpose optimizers, we derive a system of eight polynomial equations using Lagrange multipliers. We solve this iteratively by breaking it down into smaller systems of two degree-4 equations using Gröbner basis methods. This allows the solver to "glide" through configurations that cause traditional formulas to explode.
- Direct Parameterization: Unlike previous methods that optimize for the square of the focal length ($f^2$), we optimize for $f$ directly. This prevents the solver from drifting into imaginary territory.
- Real Focal Length Checking (RFC): We propose a lightweight check to be used inside RANSAC. If a candidate fundamental matrix would result in imaginary focal lengths, it is rejected immediately. This prevents "lucky" but physically impossible models from being selected.
Experimental Evaluation
The proposed method was evaluated on synthetic data to test specific degeneracies and on real-world datasets including Phototourism, Aachen Day-Night v1.1, and ETH3D Multiview.
Key Results
- Accuracy: On the Phototourism dataset, our method achieved a median focal length error ($f_{err}$) of 0.143, significantly better than the Bougnoux formula (0.197) and previous iterative state-of-the-art methods (0.215).
- Pose Estimation: The integration of the RFC check consistently improved the Mean Average Accuracy for pose ($mAA_p$) across various RANSAC implementations, such as OpenCV USAC and MAGSAC++.
- Efficiency: Our C++ implementation takes roughly 3.5 ms per image pair, making it orders of magnitude faster than traditional iterative methods like Hartley's, which can take over 600 ms.
Discussion and Conclusion
Our robust iterative method provides a reliable solution for focal length self-calibration, effectively bridging the gap between fragile closed-form formulas and slow global optimizers. The discovery that fundamental matrices yielding imaginary focal lengths are almost always poor models led to the RFC check, which proves to be a powerful tool for improving RANSAC-based pose estimation. While the method still requires a valid fundamental matrix to start, its stability and speed make it a significant advancement for uncalibrated structure-from-motion pipelines. Future work will explore automatic prior estimation from image metadata to further enhance robustness.
Summary updated