Hybrid Camera Pose Estimation

Federico Camposeco, Andrea Cohen, Marc Pollefeys, Torsten Sattler

In the world of 3D computer vision, determining exactly where a camera is located—camera pose estimation—is a fundamental task. Whether building a map of a city (SfM), helping a robot navigate a room (SLAM), or placing a virtual object in augmented reality (AR), knowing the camera's precise position and orientation is essential.

Traditionally, researchers have split into two camps: those who use 3D scene models (structure-based) and those who compare images directly (structure-less). This paper from researchers at ETH Zürich and Microsoft introduces a "hybrid" approach that leverages the strengths of both paradigms.

The Challenge of Pose Estimation

To estimate a camera's pose, algorithms rely on "matches" between visual features.

  • Structure-based (2D-3D): Pixels in a query image are matched to known 3D points in a pre-built model. While fast (e.g., using the P3P algorithm), this method fails if the 3D model is incomplete or contains poorly triangulated points.
  • Structure-less (2D-2D): Pixels in a query image are matched to pixels in other images. This approach is highly accurate and independent of 3D model quality, but it is computationally expensive and often produces multiple ambiguous solutions.

Real-world data is often messy; some parts of a scene may have reliable 3D points, while others only offer clear 2D matches between frames. Standard algorithms typically force a choice between these two methods, often ignoring valuable information.

Conceptual overview of hybrid camera pose estimation, utilizing both 2D-3D (blue) and 2D-2D (magenta) correspondences.

The Hybrid Approach

The authors propose a unified framework that simultaneously utilizes 2D-3D and 2D-2D correspondences. Their technical contributions include:

1. Hybrid RANSAC

Standard RANSAC (Random Sample Consensus) repeatedly samples matches to find a winning pose. The proposed Hybrid RANSAC is more adaptive:

  • Solver Selection: At each iteration, it selects a solver type based on its probability of success given the current data. If 2D-3D matches appear reliable, it prioritizes structure-based solvers; otherwise, it explores hybrid or structure-less options.
  • Optimistic Termination: A clever stopping criterion allows the algorithm to terminate as soon as any single solver reaches a high statistical likelihood of having found the optimal model, significantly reducing computation time.

2. New Hybrid Minimal Solvers

The authors derived several new "minimal solvers"—mathematical recipes that calculate a pose from a mixture of matches (e.g., one 2D-3D match combined with three 2D-2D matches). These solvers cover various scenarios, including general 6-DoF motion, "upright" cameras (4-DoF), and cases with unknown scale (7-DoF/5-DoF).

Experimental Evaluation

The approach was evaluated across diverse datasets:

  • Synthetic Data: Over $10^6$ generated scenes to verify the numerical stability of the new solvers.
  • Large-Scale SfM: A dataset with 1.65 million 3D points and 824 query images to test localization in complex urban environments.
  • 7-Scenes Dataset: A standard indoor benchmark used to test SLAM trajectory registration and "upright" camera scenarios.

Key Results

The hybrid method demonstrates significant improvements over traditional single-source approaches:

  • Higher Accuracy: On the 7-Scenes benchmark, the hybrid approach consistently achieved lower median position errors than using either 2D-3D or 2D-2D matches alone.
  • Robustness: The system successfully localized images in cases where traditional structure-based methods failed due to model incompleteness.
  • Efficiency: Despite the complexity of the hybrid solvers, "Optimistic Termination" kept runtimes close to the speed of pure structure-based methods, making it orders of magnitude faster than pure structure-less resectioning.
Performance comparison showing the hybrid approach's accuracy and efficiency across different error thresholds and execution times.

Conclusion and Future Work

This research proves that 2D-2D and 2D-3D information is fungible. By treating poorly triangulated 3D points as 2D-2D matches, the system avoids being "poisoned" by incorrect depth information while still utilizing the visual data.

Future work includes extending these hybrid solvers to uncalibrated cameras (where focal length is unknown) and adapting the framework to handle rolling shutter distortions common in mobile devices.

Summary updated

BibTeX
@inproceedings{camposeco2018hybrid,
  author = {Federico Camposeco and Andrea Cohen and Marc Pollefeys and Torsten Sattler},
  title = {{Hybrid Camera Pose Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00022},
}
Figure