SCRAMSAC: Improving RANSAC's efficiency with a spatial consistency filter

Torsten Sattler, Bastian Leibe, Leif Kobbelt

Abstract

SCRAMSAC (Spatially Consistent RAndoM SAmple Consensus) introduces a simple but powerful "spatial consistency filter" that prunes outlier correspondences before the RANSAC process begins. By focusing exclusively on matches whose neighbors also match in a geometrically consistent manner, the algorithm achieves speedups of several orders of magnitude over standard RANSAC. Furthermore, it provides significantly greater robustness to degenerate scenes compared to existing state-of-the-art methods like PROSAC.

Introduction

In computer vision tasks such as 3D reconstruction or image retrieval, the initial step involves matching local features (e.g., SIFT) between image pairs. This process inevitably generates "tentative correspondences," many of which are incorrect outliers. RANSAC is the industry standard for filtering these outliers by iteratively fitting a geometric model, such as a homography or fundamental matrix.

However, RANSAC remains a major computational bottleneck because its runtime increases exponentially as the ratio of inliers to outliers drops. While extensions like PROSAC attempt to mitigate this by prioritizing matches with high similarity scores, they are susceptible to "degenerate configurations." For instance, if the highest-scoring points lie on a single plane, PROSAC may return a model that fits that plane perfectly but fails to generalize to the rest of the scene.

Methodology

The core of the proposed method is the Spatial Consistency Check (SCC), which filters the set of tentative correspondences before model estimation.

The Spatial Consistency Filter

For every tentative match $(f_1, f_2)$, the algorithm defines a circular neighborhood around feature $f_1$ in the first image. It then evaluates how many of $f_1$'s neighbors have corresponding matches that fall within a defined neighborhood around $f_2$ in the second image.

The Spatial Consistency Check (SCC) evaluates the geometric consistency of a match by examining its local neighborhood.

If the fraction of consistent neighbors is below a specific threshold $\theta$ (typically 0.55), the match is discarded. This results in a "reduced set" of high-confidence correspondences. Unlike other methods that use reduced sets only for sampling, SCRAMSAC performs the entire RANSAC process—both sampling and consensus verification—on this reduced set, drastically reducing the number of checks against noisy data.

Experimental Evaluation

The authors evaluated SCRAMSAC against several challenging benchmarks, including standard sequences like Leuven Castle and Oxford Corridor, as well as image pairs featuring repetitive structures, small overlaps, and extreme lighting variations.

Key Results

  • Efficiency: SCRAMSAC is consistently 10x to 100x faster than standard RANSAC. In one specific test, standard RANSAC required ~1591ms to converge, whereas SCRAMSAC achieved the same result in only ~41ms.
  • Robustness: In scenes where PROSAC failed due to degenerate configurations (e.g., over-fitting a single plane), SCRAMSAC successfully identified the correct global model. The spatial filter ensures a more even distribution of points across the scene, preventing the algorithm from being trapped in local optima.
  • Inlier Enhancement: The SCC filter significantly boosts the inlier ratio. In one dataset, an initial inlier ratio of 19% was improved to 37% in the reduced set, facilitating much faster RANSAC convergence.

Discussion

The success of SCRAMSAC highlights that spatial consistency (how a feature moves relative to its neighbors) is often a more reliable indicator of a true match than descriptor similarity (how a feature looks), especially in scenes with repetitive patterns. The SCC also provides implicit viewpoint filtering; because it relies on circular neighborhood overlaps, it naturally penalizes matches with extreme viewpoint changes that would otherwise introduce unreliable geometry.

Limitations and Future Work

Despite its advantages, the SCC filter has specific constraints. The authors note that the filter can break down if the viewpoint change exceeds 50°, as the circular neighborhood overlap becomes too small to identify consistent neighbors.

Geometric distortions under extreme viewpoint changes (a) and the corresponding camera angle that can lead to filter failure (b).

Additionally, the filter is aggressive and may reject some true inliers. While the remaining set is typically sufficient for model estimation, there is a theoretical risk in extremely sparse scenes. Future research may focus on extending the SCC to use affine-invariant neighborhoods to better accommodate extreme perspective distortions.

Summary updated

BibTeX
@inproceedings{sattler2009scramsac,
  author = {Torsten Sattler and Bastian Leibe and Leif Kobbelt},
  title = {{SCRAMSAC: Improving RANSAC's efficiency with a spatial consistency filter}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2009},
  doi = {10.1109/iccv.2009.5459459},
}
Figure