This is the code for "Line based relative pose estimation (CVPR2011)". Code.
This is a C++ Template class that can be used to apply RANSAC on a set of data samples. The code has no documentation but with the code there is a test program that estimates a line from a set of points. The test program shows how the Ransac class can be used to implement ransac.