A Minimal Solution to the Generalized Pose-and-Scale Problem

Jonathan Ventura, Clemens Arth, Gerhard Reitmayr, Dieter SchmalstiegCVPR 2014

Introduction

In computer vision, the "absolute pose" problem involves determining the position and orientation of a camera relative to a known 3D environment. While standard solutions like P3P assume a central "pinhole" model, many modern applications—such as multi-camera rigs or monocular SLAM systems—are better represented by a generalized camera model. In this model, light rays do not necessarily intersect at a single optical center.

A significant challenge in monocular systems is the lack of absolute depth perception, which results in 3D reconstructions having an arbitrary scale. Registering such a reconstruction to a global map or closing a loop requires solving for a similarity transformation: rotation ($R$), translation ($t$), and a scale factor ($s$). This paper introduces a minimal solver, gP+s, designed to estimate these parameters directly from 2D-3D correspondences.

Problem Formulation and Methodology

The authors define the generalized pose-and-scale problem as finding the transformation $(R, t, s)$ that aligns a set of 3D anchor points $q_i$ with their corresponding imaging rays. Each ray is defined by a starting point $p_i$ and a direction vector $d_i$.

The geometric configuration of the gP+s problem, showing the transformation of anchor points $q_i$ to align with rays defined by $p_i$ and $d_i$.

The gP+s solver requires a minimum of four correspondences to resolve the seven degrees of freedom (3 for rotation, 3 for translation, and 1 for scale). By utilizing the cross-product of coincident vectors, the authors eliminate the unknown depth along each ray, resulting in a system of polynomial equations. This system is solved using a Gröbner basis method, which efficiently finds the roots of the polynomials, yielding up to eight potential solutions. This minimal approach is highly robust when integrated into a RANSAC framework, as it can handle outliers and noisy data with high efficiency.

Key Insights: The Pinhole Crossover

A critical contribution of this work is the identification of the "pinhole crossover" degeneracy. If all camera rays originate from a single point (as in a standard pinhole camera), the scale $s$ becomes unconstrained. The gP+s solver is specifically designed for generalized cameras where a "baseline" exists between the origins of the rays.

Log-log plot showing mean rotation error and condition number versus camera baseline. As the baseline approaches zero (pinhole case), the problem becomes numerically unstable.

As illustrated in the experimental results, the numerical stability of the solver is directly tied to the magnitude of this baseline. When the camera has moved significantly between frames (creating a larger effective baseline for the generalized camera), the solver achieves high precision. Conversely, as the baseline shrinks toward the pinhole limit, the condition number of the problem increases, leading to higher rotation errors.

Results and Conclusion

The gP+s solver was evaluated on synthetic data and real-world sequences (including the TUM RGB-D benchmark). Key findings include:

  • Efficiency: The solver is extremely fast, executing in approximately 102 microseconds, making it ideal for real-time SLAM.
  • Accuracy: It outperforms traditional point-alignment methods by avoiding the anisotropic errors inherent in triangulation.
  • Numerical Stability: On noise-free data, it recovers the correct transformation with negligible error ($<10^{-11}$) in the vast majority of cases.

By providing a direct, minimal solution for pose and scale, this method offers a robust tool for loop closure and map merging in monocular vision systems, effectively bridging the gap between local tracking and global registration.

Summary updated

BibTeX
@inproceedings{ventura2014minimal,
  author = {Jonathan Ventura and Clemens Arth and Gerhard Reitmayr and Dieter Schmalstieg},
  title = {{A Minimal Solution to the Generalized Pose-and-Scale Problem}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  doi = {10.1109/cvpr.2014.61},
}
Figure