Intro
Ransac-Algorithm is explained on Wikipedia (http://en.wikipedia.org/wiki/RANSAC).
My observation-set is a linear 16bit-distribution with noise (y=a*x+b+noise).
Noise (gaussian-distribution) is generated by using the polar form of the Box-Muller transformation (see http://www.taygeta.com/random/gaussian.html).
Implementation
Download http://www.joerg-reiling.de/ransac/ransac.tgz
Build-Instructions On Linux / Ubuntu 10.10
install OpenCV-libraries (libhighgui-dev + libcv-dev)
install qt4
qmake
make
Output
Running the executable, several data-files will be generated. Use gnuplot („gnuplot> plot './0.dat'“) to examine the outputs.
„0.dat“ contains the raw observation-set:
The file with highest index contains the best fit:
Joerg Reiling / Vers. 1.0 / 2010-12-17 / www.joerg-reiling.de