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

  1. Randomly choose samples ( = minimal sample size: line 2, 5, 8)
  2. Fit a model to them
  3. Count the inliers
  4. Update the best solution so far
  5. 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