Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Hi. I'm using Euclidean distance to find the min distance between the keypoints. Yet I'm still getting the wrong output mostly. Could you guide me?

$
0
0
BFMatcher matcher(NORM_L2); vector matches; matcher.match(descriptors_1, descriptors_2, matches); double max_dist = 0; double min_dist = 100; double sum_dist = 0; //-- Quick calculation of max and min distances between keypoints for (int k = 0; k < descriptors_1.rows; k++) { double dist = matches[k].distance; sum_dist = sum_dist + dist; if (sum_dist < min_dist) min_dist = dist; if (sum_dist > max_dist) max_dist = dist; } if (min_dist < mindist) { mindist = min_dist; matchInd = j; }

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>