Accord.Imaging.RansacHomographyEstimator.RansacHomographyEstimator C# (CSharp) Method

RansacHomographyEstimator() public method

Creates a new RANSAC homography estimator.
public RansacHomographyEstimator ( double threshold, double probability ) : System
threshold double Inlier threshold.
probability double Inlier probability.
return System
        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;
        }