Abstract
Perspective-n-Point-and-Line (PnPL) algorithms aim at fast, accurate, and robust camera localization with respect to a 3D model from 2D-3D feature correspondences, being a major part of modern robotic and AR/VR systems. Current point-based pose estimation methods use only 2D feature detection uncertainties, and the line-based methods do not take uncertainties into account. In our setup, both 3D coordinates and 2D projections of the features are considered uncertain. We propose PnP(L) solvers based on EPnP and DLS for the uncertainty-aware pose estimation. We also modify motion-only bundle adjustment to take 3D uncertainties into account. We perform exhaustive synthetic and real experiments on two different visual odometry datasets. The new PnP(L) methods outperform the state-of-the-art on real data in isolation, showing an increase in mean translation accuracy by 18% on a representative subset of KITTI, while the new uncertain refinement improves pose accuracy for most of the solvers, e.g. decreasing mean translation error for the EPnP by 16% compared to the standard refinement on the same dataset.
Introduction
Camera localization—the process of determining a camera's pose relative to a 3D map—is fundamental to robotics and augmented reality. This is typically addressed using Perspective-n-Point (PnP) algorithms, which establish correspondences between 2D image pixels and 3D map coordinates. However, a significant limitation of traditional PnP solvers is the assumption that the 3D map coordinates are perfectly accurate.
In practice, 3D maps generated via Structure-from-Motion (SfM) or stereo triangulation are inherently noisy. For instance, depth estimates for distant points exhibit higher uncertainty. While some modern methods account for 2D detection noise, they often neglect 3D coordinate uncertainty. This research introduces "uncertainty-aware" solvers for the Perspective-n-Point-and-Line (PnPL) problem that explicitly model noise in both 2D image detections and 3D model features, enhancing localization robustness in real-world scenarios.
Methodology
The proposed approach extends two high-performance solvers, EPnP (Efficient PnP) and DLS (Direct Least Squares), into their uncertainty-aware counterparts: EPnPLU and DLSLU.
The technical framework involves several key components:
- Algebraic Residuals with Covariance: New mathematical residuals are derived for points and lines, incorporating covariance matrices to represent uncertainty in both 2D and 3D domains.
- Isotropic Approximation: To maintain computational efficiency, complex 3D uncertainty ellipsoids are approximated as spheres (isotropic noise) using the trace of the covariance matrix. This provides a balance between mathematical rigor and real-time performance.
- Iterative Uncertain Refinement: A modified motion-only bundle adjustment is introduced. Unlike standard refinement that only considers 2D noise, this version updates 3D uncertainty estimates iteratively, achieving high accuracy with minimal computational overhead.
- Line Feature Integration: The solvers are extended to include line features, which offer greater stability in low-texture environments like indoor corridors.
Experimental Evaluation
The methods were evaluated using synthetic data for controlled noise analysis and two real-world benchmarks: the KITTI Dataset (outdoor autonomous driving) and the TUM-RGBD Dataset (indoor cluttered environments).
Key Results
The experimental results demonstrate significant improvements over state-of-the-art methods:
- Accuracy Gains: On the KITTI dataset, the DLSU method achieved an 18% reduction in mean translation error compared to the standard DLS solver.
- Refinement Impact: The proposed uncertain refinement improved EPnP pose accuracy by 16% over standard techniques.
- Point and Line Synergy: In hybrid scenarios, uncertainty-aware solvers outperformed traditional PnPL methods by 23% to 52% in translation accuracy.
Discussion and Conclusion
The primary insight of this work is that 3D noise is a critical factor in localization accuracy. By acknowledging the imperfections in 3D maps, particularly for long-range features, the proposed solvers achieve superior resilience. The isotropic approximation serves as an effective "sweet spot," providing substantial accuracy gains while remaining fast enough for real-time robotic applications—adding only 5-10% to total computation time.
While the current model assumes independent noise for line endpoints, future work will explore more sophisticated noise models for lines. Additionally, reducing the dependency on initial pose guesses or scene depth estimates remains an area for further development. Overall, these uncertainty-aware solvers represent a significant step toward more robust and reliable spatial AI systems.
Summary updated