Robust Self-calibration of Focal Lengths from the Fundamental Matrix
Viktor Kocur, Daniel Kyselica, Zuzana Kukelova
TL;DR
This work tackles robust self-calibration of two cameras from a single fundamental matrix, where traditional Bougnoux-based formulas are prone to instability and degeneracies. It introduces an efficient iterative framework that jointly estimates $f_1$, $f_2$, and the principal points $\boldsymbol{c}_1,\boldsymbol{c}_2$ by solving a constrained optimization with Kruppa constraints $\kappa_1=0$, $\kappa_2=0$, while allowing $\boldsymbol{c}_i$ to vary and employing priors. Each iteration updates $\Delta f_i$ and $\Delta \boldsymbol{c}_i$ via a Lagrange-multiplier formulation, reducing to a degree-4 Kruppa system solved with a Gröbner-basis method, and selects the solution minimizing $|\lambda_1|+|\lambda_2|$ to guarantee valid essential-matrix decompositions. The paper also introduces a simple real focal-length check within RANSAC to reject degenerate models early, yielding substantial speedups. Extensive synthetic and real-world experiments show significant improvements in focal-length accuracy and pose estimation, and the method remains robust under noisy priors and degenerate configurations, with practical impact for SfM and visual localization pipelines.
Abstract
The problem of self-calibration of two cameras from a given fundamental matrix is one of the basic problems in geometric computer vision. Under the assumption of known principal points and square pixels, the well-known Bougnoux formula offers a means to compute the two unknown focal lengths. However, in many practical situations, the formula yields inaccurate results due to commonly occurring singularities. Moreover, the estimates are sensitive to noise in the computed fundamental matrix and to the assumed positions of the principal points. In this paper, we therefore propose an efficient and robust iterative method to estimate the focal lengths along with the principal points of the cameras given a fundamental matrix and priors for the estimated camera parameters. In addition, we study a computationally efficient check of models generated within RANSAC that improves the accuracy of the estimated models while reducing the total computational time. Extensive experiments on real and synthetic data show that our iterative method brings significant improvements in terms of the accuracy of the estimated focal lengths over the Bougnoux formula and other state-of-the-art methods, even when relying on inaccurate priors.
