Relative Pose Estimation through Affine Corrections of Monocular Depth Priors

Yifan Yu, Shaohui Liu, Rémi Pautrat, Marc Pollefeys, Viktor Larsson

Abstract

Estimating the relative pose between camera views is a cornerstone of computer vision, yet traditional methods often struggle in low-overlap scenarios or with uncalibrated sensors. While Monocular Depth Estimation (MDE) models offer a potential solution by providing 3D structural priors, these models are typically subject to affine ambiguities—scale and shift errors—that distort geometric alignment. This paper presents a novel framework that explicitly models and corrects these affine biases within the relative pose estimation process. By introducing specialized geometric solvers and a hybrid estimation pipeline, we demonstrate significant performance gains over state-of-the-art point-based methods across diverse indoor and outdoor benchmarks.

Introduction

Relative pose estimation—determining the rotation and translation between two camera frames—is essential for applications ranging from autonomous navigation to augmented reality. Traditionally, this task relies on 2D point correspondences and the epipolar constraint. However, the rise of deep learning has introduced powerful Monocular Depth Estimation (MDE) models capable of predicting dense 3D structure from single images.

Despite their progress, even "metric" MDE models rarely produce perfect absolute depth in the wild. They are frequently plagued by systematic biases characterized as affine ambiguities: the predicted depth $\hat{D}$ relates to the true depth $D$ via an unknown scale factor $\alpha$ and a global shift $\beta$, expressed as $\hat{D} = \alpha(D + \beta)$. Most existing literature assumes only a scale difference, which leads to significant misalignments in 3D space. This work addresses this gap by jointly estimating camera pose while simultaneously correcting both scale and shift errors in depth priors.

Comparison of baseline scale-only correction vs. the proposed affine correction (scale and shift) for monocular depth priors.

Methodology

Affine-Corrected Geometric Solvers

The core contribution of this work is the derivation of three specialized geometric solvers designed to handle different levels of camera calibration:

  1. Calibrated 3-point solver: Utilized when camera intrinsics are known.
  2. Shared-focal 4-point solver: Designed for uncalibrated cameras sharing a focal length, such as consecutive frames in a video sequence.
  3. Two-focal 4-point solver: A general-purpose solver for two different uncalibrated cameras.

By modeling the relationship as $\hat{D} = \alpha(D + \beta)$, the authors derive polynomial equations based on the constraint that the distance between 3D points must remain consistent across views. This allows the system to solve for the relative pose $(R, t)$ alongside the affine parameters $(\alpha, \beta_1, \beta_2)$.

Hybrid LO-MSAC Pipeline

Recognizing that MDE models can occasionally produce artifacts or incorrect structures, the proposed method does not rely on depth priors in isolation. Instead, it employs a Hybrid LO-MSAC (Locally Optimized M-estimator Sample Consensus) framework. This pipeline intelligently integrates the new depth-aware solvers with classic point-based algorithms (such as the 5-point essential matrix algorithm).

The Hybrid LO-MSAC pipeline integrating depth-aware solvers with traditional point-based methods.

The system uses a dual-scoring mechanism that evaluates both 2D epipolar geometry and 3D reprojection errors. This hybrid approach ensures robustness: if the depth prior is unreliable, the system can still fall back on traditional point-based estimation, while leveraging depth information whenever it provides a superior geometric anchor.

Experimental Evaluation

The framework, dubbed MadPose, was evaluated on several rigorous benchmarks, including ScanNet-1500 (indoor), MegaDepth-1500 (outdoor), and Stanford 2D-3D-S (panoramic).

Key Findings

  • The Impact of Shift Correction: A critical insight is that shift correction is universal. Even models trained for metric depth benefit from $\beta$ estimation, as systematic biases often exist that a simple scale factor cannot resolve. Modeling this shift makes the solvers significantly more resilient to noise from off-the-shelf models like Marigold or Depth-Anything.
  • Performance in Low Overlap: Traditional methods often fail when images have minimal overlap due to a lack of shared 2D features. MadPose uses depth priors to provide a "geometric anchor," allowing for accurate pose estimation even with very few shared points.
  • Quantitative Results: On the ScanNet dataset (calibrated), MadPose improved the Pose Error AUC @ 20° from 55.60% (PoseLib baseline) to 61.08%. In uncalibrated scenarios (Stanford 2D-3D-S), the improvement was even more pronounced, reducing median rotation error from 16.83° to 5.66°.
  • Efficiency: The calibrated solver runs in approximately 31ms, making it viable for real-time robotic and AR applications.

Conclusion

By explicitly modeling the affine ambiguities of monocular depth priors, this work provides a robust bridge between deep learning-based depth estimation and classical geometric vision. The resulting MadPose framework is "plug-and-play," scaling in performance as underlying MDE models improve. Future work will explore tighter integration with dense reconstruction foundation models and the implementation of analytic Jacobians to further optimize runtime performance.

Summary updated

BibTeX
@inproceedings{yu2025relative,
  author = {Yifan Yu and Shaohui Liu and Rémi Pautrat and Marc Pollefeys and Viktor Larsson},
  title = {{Relative Pose Estimation through Affine Corrections of Monocular Depth Priors}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01557},
}
Figure