Least squares averages everything, so one bad point can pull the answer anywhere. The usual fix in 1981 was to fit everything, throw out the worst point, and repeat. Fischler and Bolles show that this fails too, and turn the procedure around: fit from as few points as possible, chosen at random, and keep the fit that the most other points agree with. Most of the paper is about one application, finding where a camera was from landmarks with known positions, and on the way it settles how many landmarks that takes.

Expected number of draws before one is all good (4 points per draw)

log scale · lower is better

  • 90% good1.5
  • 80% good2.4
  • 70% good4.2
  • 60% good7.7
  • 50% good16
  • 40% good39
  • 30% good123
  • 20% good625
The expected count is 1/wⁿ, where w is the share of good points and n the points per draw. The paper suggests trying two or three times as many. Source: Section II-B table.

The aerial photo test

25landmarks found by correlation, 3 of them wrong
17agreed with the first triple drawn
22 of 22good matches in the final set, no bad ones
0.1 ftstandard deviation of the camera's X position
Source: Section IV-E.

The paradigm

  1. Pick at random the fewest points that fix the model: two for a line, three for a circle, three landmarks for a camera.

  2. Solve the model from those points alone.

  3. The consensus set is every point within the error tolerance of that model.

  4. If the consensus set is big enough, refit on all of it by least squares and stop. Otherwise draw again.

  5. After the set number of draws, use the largest consensus set found, or report failure.

Until a large enough consensus set or the draw limit

Source: Section II.

Findings

  • Figure 1 is the whole argument in seven points. Six lie on a line and one is a gross error at (10, 2). Repeatedly dropping the worst residual ends after four rounds with four points, the bad one among them. RANSAC with two points per draw finds the six good points within a few draws, or by trying all 21 pairs.
  • How many draws: if a fraction w of points is good and a draw needs n points, the expected number of draws is 1/wⁿ. For n = 4 that is 1.5, 2.4, 4.2, 7.7, 16, 39, 123 and 625 draws as w goes from 0.9 to 0.2. For 90% confidence of one clean draw with w = 0.5 and n = 4, it takes 35.7 draws.
  • How big a consensus set is enough: if a wrong model catches a point with probability below 0.5, five points beyond the minimum give over 95% confidence it isn’t wrong.
  • Perspective-n-point: one or two landmarks leave infinitely many camera positions. Three give at most four solutions, and the paper builds a case with exactly four. Four landmarks on a plane give a unique answer, but four or five in general position can give two. Six in general position always give one.
  • A closed-form P3P solution, by reducing three law-of-cosines equations to a quartic.
  • With 20 landmarks of which 5 were wrong by more than 10 pixels, worst-residual pruning removed two bad ones, then stopped and returned a fit with three bad ones left. RANSAC found the right answer on its second triple.
  • 50 synthetic problems with 30 landmarks each: no bad match ever ended up in the final set. About 1 s per candidate camera position.
  • A real aerial photo from about 4,000 ft, 2,000 × 2,000 pixels at about 2 ft per pixel: 25 landmarks, 3 of them wrong. The first triple gave a consensus set of 17, and the refit took in all 22 good ones.

Limits

  • Three parameters to set by hand: the error tolerance, the number of draws and the consensus threshold. The paper gives rules of thumb, not a method.
  • The number of draws grows as 1/wⁿ, so it becomes hopeless with few good points or large minimal sets. 625 draws at 20% good with n = 4, far more with bigger n.
  • It counts agreement, so a large group of bad points that agree with each other wins. Nothing in it can tell a consistent lie from the truth.

Relevance

The ancestor of every outlier rejection step in my robust estimation notes, and still the baseline that GNC, TEASER++ and PCM compare against. The last limit is the one that matters for my thesis: consensus means majority, so it assumes the wrong points are scattered. A Byzantine teammate sends wrong points that agree with each other, which is exactly the case the forensic rover paper shows breaking robust back-ends. Open question: if every point carries the identity of the robot that sent it, can RANSAC draw per robot instead of per point, and what does the 1/wⁿ count become?