RANSAC selects, from among all generated hypotheses, the one with the largest consensus set.
This policy can be viewed as an M-estimator that minimizes a loss function of the form
| (4.143) |
where is the residual associated with the sample under consideration.
The function assigns zero loss to elements classified as inliers and unit loss to elements classified as outliers.
This idea can therefore be generalized to M-SAC techniques (M-Estimator Sample and Consensus), which modify RANSAC's loss function.
As noted in the previous section, data noise can be viewed partly as Gaussian noise affecting the inliers and partly as a uniform distribution of outliers. The negative log-likelihood is the loss function naturally associated with the corresponding probabilistic model underlying MLESAC methods, but it is computationally expensive.
A good approximation used by M-SAC techniques is to use the following loss function:
| (4.144) |
This loss function reasonably models the case of inliers affected by zero-mean Gaussian noise and uniformly distributed outliers.