Function compute_inliers_ransac

Function Documentation

void compute_inliers_ransac(const std::vector<cv::Point2f> &matches, std::vector<cv::Point2f> &inliers, const float error, const bool use_fund)

This function computes the set of inliers estimating the fundamental matrix or a planar homography in a RANSAC procedure.

  • matches: Vector of putative matches

  • inliers: Vector of inliers

  • error: The minimum pixelic error to accept an inlier

  • use_fund: Set to true if you want to compute a fundamental matrix