public RansacHomographyEstimator(double threshold, double probability) { // Create a new RANSAC with the selected threshold ransac = new RANSAC<MatrixH>(4, threshold, probability); // Set RANSAC functions ransac.Fitting = homography; ransac.Degenerate = degenerate; ransac.Distances = distance; }