Abstract
The problem of determining the absolute position and orientation of a camera from a set of 2D-to-3D point correspondences is one of the most important problems in computer vision with a broad range of applications. In this paper we present a new solution to the absolute pose problem for camera with unknown radial distortion and unknown focal length from five 2D-to-3D point correspondences. Our new solver is numerically more stable, more accurate, and significantly faster than the existing state-of-the-art minimal four point absolute pose solvers for this problem. Moreover, our solver results in less solutions and can handle larger radial distortions. The new solver is straightforward and uses only simple concepts from linear algebra. Therefore it is simpler than the state-of-the-art Groebner basis solvers. We compare our new solver with the existing state-of-the-art solvers and show its usefulness on synthetic and real datasets.
Introduction
Absolute pose estimation, often solved via the Perspective-n-Point (PnP) algorithm, is the task of determining a camera's 3D position and orientation from 2D image points matched to 3D world points. Standard PnP solvers typically assume a calibrated camera with known focal length and no lens distortion. However, in real-world scenarios—particularly with consumer smartphones or GoPro cameras—focal lengths vary due to zooming, and lenses often exhibit significant "barrel" or "pincushion" radial distortion.
Previous attempts to solve for pose, focal length, and distortion simultaneously faced significant hurdles: they were often too slow for real-time RANSAC loops (taking up to 70ms), relied on complex algebraic geometry (Gröbner basis solvers), or were numerically unstable in specific geometries, such as planar scenes.
The P5Pfr Solver
The authors introduce P5Pfr, a novel solver that utilizes five 2D-to-3D point correspondences. While adding a fifth point slightly increases the number of RANSAC iterations compared to 4-point "minimal" solvers, it enables a much simpler and more efficient mathematical formulation.
The method avoids unknown depth scalars by using a skew-symmetric matrix in the projection equations. Instead of complex polynomial solvers, the problem is reduced to finding the null space of a small $5 \times 8$ matrix. The final solution involves a simple 4th-degree polynomial that can be solved analytically. This unified approach works universally for both planar and non-planar scenes, eliminating the need for degeneracy checks.
Experimental Results and Stability
The P5Pfr solver demonstrates exceptional performance in both synthetic and real-world tests. A key advantage is its numerical stability. In noise-free simulations, the solver achieved zero failures (defined as errors $> 10^{-5}$), whereas previous state-of-the-art methods failed in 1.3% to 3.5% of cases.
Performance Metrics
- Speed: The C++ implementation runs in just 2 microseconds ($\mu s$), making it roughly 130 times faster than the previous best non-planar solver ($260\mu s$) and orders of magnitude faster than general Gröbner basis solvers (70ms).
- Efficiency: The solver typically returns only 1 or 2 real solutions (mean 1.7), significantly reducing the time spent on pose verification during RANSAC.
- Robustness: The solver successfully handles extreme radial distortion, as evidenced by its performance on GoPro fish-eye footage.
Conclusion
By trading a minimal set of four points for five, the P5Pfr solver achieves a massive gain in speed and simplicity. It demonstrates that reframing "hard" polynomial problems using linear algebra can lead to significant breakthroughs in efficiency. While the 5-point requirement makes it slightly more sensitive to high outlier ratios in RANSAC, its raw speed and stability make it an ideal candidate for real-time tracking and Structure from Motion (SfM) pipelines where prior calibration is unavailable. Additionally, while it excels at radial distortion, it does not currently account for tangential distortion or non-square pixels.
Summary updated