Abstract: A novel method for robust estimation, called Graph-Cut RANSAC, GC-RANSAC in short, is introduced. To separate inliers and outliers, it runs the graph-cut algorithm in the local optimization (LO) step which is applied when a so-far-the-best model is found. The proposed LO step is conceptually simple, easy to implement, globally optimal and efficient. GC-RANSAC is shown experimentally, both on synthesized tests and real image pairs, to be more geometrically accurate than state-of-the-art methods on a range of problems, e.g. line fitting, homography, affine transformation, fundamental and essential matrix estimation. It runs in real-time for many problems at a speed approximately equal to that of the less accurate alternatives (in milliseconds on standard CPU).
Introduction
Robust estimation is a fundamental task in computer vision, required for fitting geometric models to data contaminated by noise and outliers. The Random Sample Consensus (RANSAC) algorithm has been the standard approach for decades, relying on random sampling to find a consensus set of inliers. However, standard RANSAC often ignores the spatial relationship between data points, treating each as an independent entity.
In real-world scenarios, inliers typically exhibit spatial coherence—if a point is an inlier, its neighbors are likely inliers as well. While Locally Optimized RANSAC (LO-RANSAC) attempts to refine models, it often uses heuristic methods that can get trapped in local optima. GC-RANSAC addresses this by incorporating a globally optimal Graph-Cut based local optimization step.
Methodology
The primary contribution of GC-RANSAC is the formulation of the inlier/outlier classification as an energy minimization problem solved via Graph-Cut.
Energy Formulation
The cost function consists of a unary term, measuring individual point fit to the model based on geometric distance, and a pairwise term that penalizes label inconsistencies between neighbors. This enforces spatial smoothness, effectively "rescuing" good models from noisy initial samples.
Graph-Cut Local Optimization
A neighborhood graph is constructed prior to the main loop. Whenever a new "so-far-the-best" model is found, the algorithm runs a Graph-Cut on this graph. Because the energy function is submodular, Graph-Cut efficiently finds the globally optimal labeling for that specific model. This process is iterated, alternating between model fitting and graph-cut refinement, until convergence.
Experimental Evaluation
The authors evaluated GC-RANSAC across a variety of tasks, including 2D line fitting, fundamental and essential matrix estimation, and homography estimation.
Key Results
- Superior Accuracy: GC-RANSAC consistently achieves lower geometric errors than LO-RANSAC variants across all noise levels and datasets.
- Efficiency: The effective local optimization leads to faster convergence, requiring significantly fewer random samples (e.g., 20-30% fewer on the AdelaideRMF dataset).
- Real-Time Performance: Despite the sophisticated optimization, the algorithm remains computationally efficient, running in milliseconds on standard CPUs.
Conclusion
GC-RANSAC significantly improves upon traditional robust estimation methods by leveraging spatial coherence through a globally optimal local optimization step. Its superior accuracy and efficiency make it a robust choice for a wide range of computer vision problems. Future work includes integrating this method into more comprehensive frameworks like USAC.
Summary updated