Function swri_image_util::ConvertMatches

Function Documentation

void swri_image_util::ConvertMatches(const std::vector<cv::KeyPoint> &kp1, const std::vector<cv::KeyPoint> &kp2, const std::vector<cv::DMatch> &matches, cv::Mat &kp1_out, cv::Mat &kp2_out)

Converts keypoints and matches into two cv::Mats in which the the matching keypoints from kp1 and kp2 are ordered in the same manner.

Parameters:
  • kp1[in] The first set of keypoints

  • kp2[in] The second set of keypoints

  • matches[in] The vector of matches

  • kp1_out[out] The first set of matching keypoints output as a Mat

  • kp2_out[out] The second set of matching keypoints output as a Mat