27 January 2010 View Comments

Matlab RANdom SAmple Consensus (RANSAC) Toolbox


RANSAC is an abbreviation for "RANdom SAmple Consensus". It is an iterative method to estimate parameters of a mathematical model from a set of observed data which contains outliers. It is a non-deterministic algorithm in the sense that it produces a reasonable result only with a certain probability, with this probability increasing as more iterations are allowed. The algorithm was first published by Fischler and Bolles in 1981.


Example From Wikipedia

A simple example is fitting of a 2D line to set of observations. Assuming that this set contains both inliers, i.e., points which approximately can be fitted to a line, and outliers, points which cannot be fitted to this line, a simple least squares method for line fitting will in general produce a line with a bad fit to the inliers. The reason is that it is optimally fitted to all points, including the outliers. RANSAC, on the other hand, can produce a model which is only computed from the inliers, provided that the probability of choosing only inliers in the selection of data is sufficiently high. There is no guarantee for this situation, however, and there are a number of algorithm parameters which must be carefully chosen to keep the level of probability reasonably high.

2010-01-27_204054

 

Matlab RANSAC Toolbox


This is a research (and didactic) oriented Matlab toolbox to explore the RANSAC algorithm. The functions are reasonably well documented and the package comes with several examples for different estimation problems.[credit to Marco Zuliani]

Tags:
blog comments powered by Disqus