Anyone know how to call knnMatch in version 2.4.10?
I used it in this way, but it doesn't work and met errors. Anyone know how to use it?
std::vector< DMatch > matches;
BFMatcher matcher(NORM_L2, true);
Mat mask;
matcher.knnMatch(descriptors_1, descriptors_2, matches, 2, mask, false); // Find two nearest matches