Efficient Global 2D-3D Matching for Camera Localization in a Large-Scale 3D Map

Liu Liu, Hongdong Li, Yuchao Dai

Abstract

Camera localization in city-scale environments is often hampered by visual ambiguity from repetitive structures. This paper introduces a global 2D-3D matching framework that utilizes a Random Walk algorithm on a co-visibility graph to disambiguate matches. By considering structural context rather than just local feature similarity, the method achieves superior precision and robustness on massive datasets, significantly outperforming traditional local matching techniques.

Introduction

Image-Based Localization (IBL) aims to determine the exact 6-DoF position and orientation of a camera by matching 2D features in a query image to a pre-existing 3D point cloud. The core challenge is scalability; in city-scale maps with millions of points, repetitive structures like windows and street lamps create identical-looking visual matches. Standard tools like RANSAC often fail when the inlier ratio drops below 1%. This paper addresses the "needle in a haystack" problem by moving away from local feature matching toward a global, graph-based approach.

Methodology

The proposed framework shifts decision-making from local features to global structural context through a four-step pipeline:

  1. Map-Graph Construction: The 3D map is represented as a graph where nodes are 3D points and edges represent "co-visibility" (points seen together in database images).
  2. Query Vector Computation: For a new query image, tentative 3D matches are found using a vocabulary tree, resulting in a probability vector based on visual similarity.
  3. Random Walk with Restart (RWR): A PageRank-style algorithm propagates matchability scores through the co-visibility edges. Matches that are structurally related reinforce each other, while isolated spurious matches are suppressed.
  4. Pose Computation: Final one-to-one correspondences are extracted to compute the camera pose using standard PnP+RANSAC.
Overview of the proposed global 2D-3D matching pipeline.

Experimental Evaluation

The method was evaluated on four standard large-scale benchmarks: Dubrovnik (~2M points), Rome (~4M points), Vienna (~1M points), and San Francisco (SF-0), which contains over 30 million 3D points.

Key Results

  • Precision: On the Dubrovnik dataset, the method halved the median localization error to 0.70m, compared to 1.40m for the state-of-the-art "Active Search."
  • Robustness: The global ranking boosted the average inlier ratio to 81.1% in Dubrovnik, significantly higher than the 57.1% achieved by local methods.
  • Scalability: On the massive SF-0 dataset, the proposed method successfully localized 652 images, whereas local methods failed in almost all cases due to extreme visual ambiguity.
Comparison of localization performance against the Active Search baseline.

Conclusion

By formalizing co-visibility as a fundamental geometric prior, this research demonstrates that "set-to-set" matching is superior to traditional one-to-one local matching in large-scale environments. While the method currently relies on rough GPS priors at extreme scales (e.g., SF-0), it sets a new standard for precision and robustness in city-scale localization. Future work may explore more complex Markov Random Field inference techniques to further refine global matching.

Summary updated

BibTeX
@inproceedings{liu2017efficient,
  author = {Liu Liu and Hongdong Li and Yuchao Dai},
  title = {{Efficient Global 2D-3D Matching for Camera Localization in a Large-Scale 3D Map}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.260},
}
Figure