Function matches2points_nndr

Function Documentation

void matches2points_nndr(const std::vector<cv::KeyPoint> &train, const std::vector<cv::KeyPoint> &query, const std::vector<std::vector<cv::DMatch>> &matches, std::vector<cv::Point2f> &pmatches, const float nndr)

This function converts matches to points using nearest neighbor distance ratio matching strategy.

  • train – Vector of keypoints from the first image

  • query – Vector of keypoints from the second image

  • matches – Vector of nearest neighbors for each keypoint

  • pmatches – Vector of putative matches

  • nndr – Nearest neighbor distance ratio value