Wide-Baseline Relative Camera Pose Estimation With Directional Learning

Kefan Chen, Noah Snavely, Ameesh Makadia

Abstract

Modern deep learning techniques that regress the relative camera pose between two images have difficulty dealing with challenging scenarios, such as large camera motions resulting in occlusions and significant changes in perspective that leave little overlap between images. These models continue to struggle even with the benefit of large supervised training datasets. To address the limitations of these models, we take inspiration from techniques that show regressing keypoint locations in 2D and 3D can be improved by estimating a discrete distribution over keypoint locations. Analogously, in this paper we explore improving camera pose regression by instead predicting a discrete distribution over camera poses. To realize this idea, we introduce DirectionNet, which estimates discrete distributions over the 5D relative pose space using a novel parameterization to make the estimation problem tractable. Specifically, DirectionNet factorizes relative camera pose, specified by a 3D rotation and a translation direction, into a set of 3D direction vectors. Since 3D directions can be identified with points on the sphere, DirectionNet estimates discrete distributions on the sphere as its output. We evaluate our model on challenging synthetic and real pose estimation datasets constructed from Matterport3D and InteriorNet. Promising results show a near 50% reduction in error over direct regression methods.

Introduction

Estimating the relative pose (rotation and translation) between two images is a cornerstone of computer vision, essential for 3D reconstruction and autonomous navigation. Traditionally, this task relies on matching local features (like SIFT) and solving for the essential matrix. However, traditional methods often fail in wide-baseline scenarios where images are taken far apart, resulting in low overlap, drastic perspective shifts, or repeated textures. While deep learning offers a potential solution, standard models that regress pose values directly (e.g., quaternions) often struggle with convergence and accuracy. This work investigates whether predicting discrete probability distributions, similar to the "heatmap" approach in keypoint detection, can improve performance in the 5D relative camera pose space.

Methods: DirectionNet Architecture

The primary challenge in discretizing a 5D pose space is the exponential growth in memory requirements ($O(N^5)$). DirectionNet overcomes this through two key innovations:

  1. Directional Factorization: The 5D pose is factorized into a set of 3D unit vectors. A 3D rotation is represented by its three column vectors, and translation is represented by a single direction vector (as scale is unrecoverable from two images).
  2. Discrete Spherical Distributions: For each direction vector, the network predicts a discrete probability distribution over a 2D equirectangular projection of a sphere. The final vector is derived as the expected value of this distribution.
DirectionNet architecture featuring an image encoder and a spherical decoder with custom padding.

The pipeline operates in two stages. First, DirectionNet-R estimates the rotation. This estimate is used to "derotate" the input images into a common intermediate frame. Then, DirectionNet-T estimates the translation direction from these rotationally aligned images. To handle the wraparound nature of spherical coordinates, a custom spherical padding scheme is employed in the convolutional layers to ensure the network understands the continuity of the sphere.

Evaluation and Results

The model was evaluated on challenging wide-baseline datasets, including InteriorNet (synthetic indoor environments) and Matterport3D (real-world indoor panoramas with ~2.25m baselines).

DirectionNet achieved a nearly 50% reduction in angular error compared to direct regression baselines. A critical finding is the model's robustness to low overlap. While feature-based methods like SIFT+LMedS perform well with high overlap, their accuracy degrades sharply as overlap decreases. In contrast, DirectionNet maintains consistent performance by learning global context rather than relying on explicit point matches.

Comparison of DirectionNet-9D and SIFT+LMedS across varying image overlap percentages.

Furthermore, the study found that using Singular Value Decomposition (SVD) to project predicted vectors into a valid rotation matrix (DirectionNet-9D) was slightly more effective than the greedy Gram-Schmidt process (DirectionNet-6D).

Conclusion

DirectionNet demonstrates that predicting discrete distributions over a quantized space consistently outperforms direct regression for camera pose estimation. By factorizing the 5D pose into manageable 2D spherical problems, the model achieves state-of-the-art results in challenging wide-baseline scenarios. Future work may explore Spherical CNNs to further improve efficiency and leverage inherent rotation equivariance.

Summary updated

BibTeX
@inproceedings{chen2021wide,
  author = {Kefan Chen and Noah Snavely and Ameesh Makadia},
  title = {{Wide-Baseline Relative Camera Pose Estimation With Directional Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=90N6ZaBJxU},
}
Figure