Definition
Least squares is very unstable with outliers (squared norm). RANSAC counts for a given model how many samples agree with it (inliers) and selects the model with which the most samples agree.
Algorithm
- Randomly choose samples ( = minimal sample size: line 2, 5, 8)
- Fit a model to them
- Count the inliers
- Update the best solution so far
- Repeat
Number of iterations for outlier ratio and success probability :
Intuition
A model estimated only from inliers is supported by most inliers. A model estimated with outliers is supported by few. Smaller means fewer iterations: with , , the 8-point algorithm needs about 1177 iterations, the 5-point algorithm about 146.
Appears in
- Lecture 3, RANSAC
- Lecture 3, Data association: geometric verification
- Lecture 3, Worked example