Abstract
Large scale 3D image localization requires computationally expensive matching between 2D feature points in the query image and a 3D point cloud. In this paper, we present a method to accelerate the matching process and to reduce the memory footprint by analyzing the view-statistics of points in a training corpus. Given a training image set that is representative of common views of a scene, our approach identifies a compact subset of the 3D point cloud for efficient localization, while achieving comparable localization performance to using the full 3D point cloud. We demonstrate that the problem can be precisely formulated as a mixed-integer quadratic program and present a pointwise descriptor calibration process to improve matching. We show that our algorithm outperforms the state-of-the-art greedy algorithm on standard datasets, on measures of both point-cloud compression and localization accuracy.
Introduction
In computer vision, localization is the task of determining a camera's position by matching 2D features from an image to a known 3D point cloud. Modern Structure from Motion (SfM) techniques can generate massive models with millions of points. However, these large models create significant bottlenecks: matching a single photo against millions of points is computationally expensive and memory-intensive.
Previous efforts to reduce these point clouds often relied on greedy heuristics—picking points one by one based on simple visibility counts. These methods are frequently sub-optimal, lack mathematical guarantees, and fail to ensure that selected points are well-distributed across a scene, which is critical for stable geometric estimation.
Methodology
This work formalizes point cloud reduction as a Mixed-Integer Quadratic Program (MIQP). By moving away from heuristics, the authors provide a mathematically grounded framework for point selection.
MIQP Formulation
The selection of a 3D point is represented as a binary variable (0 or 1). The objective is to minimize the total number of points while ensuring that every view in a training set can observe at least $b$ points—the minimum required for reliable pose calculation.
Quadratic Constraints and Spatial Diversity
A key innovation is the use of a quadratic term in the objective function. Unlike linear models, this formulation allows the algorithm to penalize the "co-occurrence" of points in the same image region. This encourages the selection of a spatially distributed "skeleton" of points, leading to more robust camera pose estimation.
As seen in the figure above, the quadratic formulation (dashed green line) significantly reduces localization error spikes compared to a purely linear approach (orange line), especially when the number of inliers is low.
Slack Variables and Descriptor Calibration
To prevent overfitting to training images and handle views with naturally low point counts, the model incorporates slack variables. This allows the optimization to relax the minimum point constraint when it leads to a more efficient global solution.
Furthermore, the authors introduce a generative approach to feature matching. Instead of the standard ratio test, they learn the statistical distribution (covariance) of descriptors for each 3D point, enabling a Mahalanobis distance-based test. This provides a tighter, more accurate threshold for matching in sparse, reduced point clouds.
Experimental Results
The approach was evaluated on standard benchmarks (Dubrovnik and Rome datasets) and internal indoor/outdoor sequences.
The results demonstrate that:
- Superior Compression: On the Rome dataset, the MIQP method achieved higher localization accuracy with 20,000 points than the state-of-the-art greedy method did with 50,000 points.
- Slack Contribution: As shown in Figure (a) above, varying the slack penalty $\lambda$ allows for fine-tuning the trade-off between model size and coverage across images.
- Improved Matching: Figure (b) confirms that the Mahalanobis distance test significantly increases the ratio of inliers to total matches compared to the standard ratio test.
Conclusion
By formulating point cloud reduction as an MIQP, this method achieves state-of-the-art compression and accuracy. While MIQP is NP-complete, the authors demonstrate that practical models of up to 30,000 points can be optimized in roughly 30 minutes on consumer hardware. Future work will explore spectral or semidefinite relaxations to scale the approach to city-wide models containing millions of points.
Summary updated