Lines Matching refs:matches_info
121 …d match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo& matches_info);
132 …d match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo& matches_info);
145 …r::match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo& matches_info) in match() argument
151 if (tegra::useTegra() && tegra::match2nearest(features1, features2, matches_info, match_conf_)) in match()
155 matches_info.matches.clear(); in match()
190 matches_info.matches.push_back(m0); in match()
194 LOG("\n1->2 matches: " << matches_info.matches.size() << endl); in match()
207 matches_info.matches.push_back(DMatch(m0.trainIdx, m0.queryIdx, m0.distance)); in match()
209 LOG("1->2 & 2->1 matches: " << matches_info.matches.size() << endl); in match()
213 …r::match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo& matches_info) in match() argument
215 matches_info.matches.clear(); in match()
238 matches_info.matches.push_back(m0); in match()
254 matches_info.matches.push_back(DMatch(m0.trainIdx, m0.queryIdx, m0.distance)); in match()
578 MatchesInfo &matches_info) in match() argument
580 (*impl_)(features1, features2, matches_info); in match()
583 if (matches_info.matches.size() < static_cast<size_t>(num_matches_thresh1_)) in match()
587 Mat src_points(1, static_cast<int>(matches_info.matches.size()), CV_32FC2); in match()
588 Mat dst_points(1, static_cast<int>(matches_info.matches.size()), CV_32FC2); in match()
589 for (size_t i = 0; i < matches_info.matches.size(); ++i) in match()
591 const DMatch& m = matches_info.matches[i]; in match()
605 matches_info.H = findHomography(src_points, dst_points, matches_info.inliers_mask, RANSAC); in match()
606 …if (matches_info.H.empty() || std::abs(determinant(matches_info.H)) < std::numeric_limits<double>:… in match()
610 matches_info.num_inliers = 0; in match()
611 for (size_t i = 0; i < matches_info.inliers_mask.size(); ++i) in match()
612 if (matches_info.inliers_mask[i]) in match()
613 matches_info.num_inliers++; in match()
617 matches_info.confidence = matches_info.num_inliers / (8 + 0.3 * matches_info.matches.size()); in match()
621 matches_info.confidence = matches_info.confidence > 3. ? 0. : matches_info.confidence; in match()
624 if (matches_info.num_inliers < num_matches_thresh2_) in match()
628 src_points.create(1, matches_info.num_inliers, CV_32FC2); in match()
629 dst_points.create(1, matches_info.num_inliers, CV_32FC2); in match()
631 for (size_t i = 0; i < matches_info.matches.size(); ++i) in match()
633 if (!matches_info.inliers_mask[i]) in match()
636 const DMatch& m = matches_info.matches[i]; in match()
652 matches_info.H = findHomography(src_points, dst_points, RANSAC); in match()