NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Space-Partitioning RANSAC

Daniel Barath, Gábor Valasek

Abstract

Robust model estimation using RANSAC is a cornerstone of computer vision, yet it suffers from significant computational overhead during the model verification phase. We present Space-Partitioning RANSAC, an algorithm that utilizes geometric constraints to pre-filter data points. By partitioning the correspondence space into grids and verifying only those points within projected cell boundaries, the method achieves a 41% average reduction in run-time with no loss in accuracy. When integrated with existing techniques like the Sequential Probability Ratio Test (SPRT), total run-time is reduced by up to 70%.

Introduction

The RANdom SAmple Consensus (RANSAC) algorithm is widely regarded as the standard for estimating geometric models from noisy datasets. However, as the number of input data points ($N$) and iterations ($K$) increases, the $O(NK)$ complexity of the model quality calculation becomes a primary bottleneck. Traditional acceleration methods focus on early termination for poor models but often overlook the spatial structure of the data. Space-Partitioning RANSAC addresses this by exploiting geometric neighborhoods to skip unnecessary residual calculations.

The Space-Partitioning Approach

The core innovation lies in a "conservative rejection" strategy. The algorithm begins by dividing input images into regular grids ($C_1$ and $C_2$). Each correspondence $(p, q)$ is indexed based on its respective grid cells.

Illustration of grid-based cell projection for homography estimation.

During the verification of a candidate model $f$, the algorithm projects the boundaries of each cell $C_1$ from the first image into the second image. Instead of calculating residuals for every point, the algorithm first checks if the corresponding point $q$ lies within the projected bounding structure of $p$'s cell. Points falling outside these bounds are immediately rejected, significantly reducing the number of floating-point operations required per iteration.

Handling Complex Geometric Models

While simple 2D transforms like homographies allow for direct cell projection, more complex models require sophisticated handling. For non-invertible models or manifold mappings, such as fundamental matrices mapping points to epipolar lines, the authors employ Lagrange interpolation at Chebyshev nodes. This creates polynomial approximations of cell boundaries, which are then converted into Bézier curves. The control points of these curves define a tight convex hull, ensuring the rejection remains conservative and accuracy is preserved.

Epipolar geometry verification using space partitioning to identify relevant correspondence cells.

Experimental Results

The method was rigorously evaluated using the Sacre Coeur scene (4,950 image pairs) for homography and epipolar geometry, and the Sun360 panorama dataset (16,056 image pairs) for radial homography.

Key findings include:

  • Significant Speedup: An average run-time reduction of 41% across all tasks.
  • Synergy with SPRT: Combining space partitioning with SPRT verification results in a 3.3x speedup compared to standard RANSAC.
  • Efficiency at Scale: The benefits of the algorithm scale with the number of iterations, making it particularly effective for low inlier-ratio scenarios.
  • Zero Accuracy Loss: By maintaining a conservative rejection threshold ($ε_r = 1$), the algorithm is guaranteed to produce results identical to a full-search RANSAC.

Conclusion

Space-Partitioning RANSAC offers a robust, low-overhead solution to the verification bottleneck in geometric model estimation. By treating geometry as a filter, the algorithm provides substantial speedups without compromising the precision that makes RANSAC the industry standard. Future work may involve extending this grid-based approach to higher-dimensional spaces or integrating it into advanced estimators like MAGSAC++.

Summary updated

BibTeX
@inproceedings{barath2022space,
  author = {Daniel Barath and Gábor Valasek},
  title = {{Space-Partitioning RANSAC}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19824-3\_42},
}
Figure