Abstract
Determining camera pose and focal length is a fundamental challenge in computer vision, typically addressed using point correspondences. However, point-only methods can be sensitive to noise and require many correspondences. This paper introduces a unified framework for camera pose estimation and focal length calibration that utilizes a diverse set of geometric primitives: points, lines, and "quivers" (points with associated directions). By formulating minimal solvers for various combinations of these features, the authors demonstrate improved efficiency and robustness in RANSAC-based localization frameworks compared to traditional point-only methods.
Introduction
Camera pose estimation—the process of determining a camera's position and orientation relative to a scene—is critical for applications ranging from augmented reality to autonomous navigation. Two significant challenges often arise: the frequent absence or inaccuracy of focal length information (EXIF data) and the underutilization of non-point geometric features like lines and local gradients.
Existing minimal solvers typically require four point correspondences (P4P) to solve for the 7-degree-of-freedom (7-DOF) problem of pose and focal length. In many man-made environments, however, lines and directional features are more abundant than distinct points. This research addresses these issues by introducing solvers that can mix and match different geometric primitives, reducing the total number of required correspondences and increasing the probability of selecting an all-inlier set during RANSAC.
Geometric Primitives and Minimal Solvers
The authors define three primary geometric primitives to provide constraints for the 7-DOF problem:
- Points: Each point provides 2 constraints.
- Lines: Each line provides 2 constraints.
- n-quivers: A point with $n$ directions. A 1-quiver (point + 1 direction) provides 3 constraints, while a 2-quiver provides 4.
By combining these primitives, the authors identify several "minimal cases" where the total constraints equal or exceed the 7 unknowns. Examples include P2Q1 (two points and one 1-quiver) and Q1Q2 (one 1-quiver and one 2-quiver). Utilizing features with higher constraint counts, like quivers, allows for solvers that require as few as two total features, significantly speeding up RANSAC iterations. The framework also handles slightly over-determined cases, such as P4L (four lines providing 8 constraints).
Mathematical Formulation
The problem is modeled as a system of polynomial equations. The camera's rotation is parameterized using quaternions, and the focal length is represented by its inverse, $w = 1/f$. To solve these systems efficiently, the authors employ Gröbner basis techniques. Specifically, they use an elimination template approach to convert the polynomial system into an eigenvalue problem, which can be solved reliably in approximately 15ms in MATLAB. This approach is robust for both planar and non-planar scenes, avoiding the degeneracies that plague some specialized solvers.
Experimental Evaluation
The proposed solvers were validated using both synthetic and real-world datasets:
- Synthetic Tests: In noise-free environments, the solvers demonstrated high numerical stability, with relative errors between $10^{-10}$ and $10^{-12}$, proving the mathematical soundness of the elimination templates.
- Real-World Data: Using a dataset of 16 images of checkerboard-like patterns, the authors extracted points, lines, and 2-quivers. The solvers achieved reprojection errors (1.3 to 3.1 pixels) comparable to state-of-the-art P4P methods. Crucially, the focal length estimates were significantly more accurate than those found in standard EXIF tags, matching the results of high-accuracy bundle adjustment.
Conclusion
This work expands the versatility of pose estimation by integrating points, lines, and directions into a single mathematical framework. The resulting minimal solvers are not only mathematically sound but also practically advantageous, as they require fewer correspondences and are thus more robust to outliers in RANSAC-based localization. Future work may explore Polynomial Eigenvalue Problems as a potentially even more efficient alternative to the Gröbner basis method for solving these systems.
Summary updated