Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

2D line fitting using RANSAC

I have a very simple Mat object which is a binary image. All the pixels are 0 except a few which are 1(some of which are inliers and some are outliers). I want to fit a line on these 1 pixels using RANSAC. Is there any built in method to do that or I have to write one?

click to hide/show revision 2
added version and platform info

2D line fitting using RANSAC

I have a very simple Mat object which is a binary image. All the pixels are 0 except a few which are 1(some of which are inliers and some are outliers). I want to fit a line on these 1 pixels using RANSAC. Is there any built in method to do that or I have to write one?

I am using OpenCV v2.4.8 on Fedora 20 GNU/Linux.