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?