1 | initial version |
Taking a look at the current knnMatch documentation I guess the matcher interface was changed.
It seems that since 2.4.10 you need to use the pointer interface. Something like this should work
Ptr<BFMatcher> matcher(NORM_L2, true);
Mat mask;
matcher -> knnMatch(descriptors_1, descriptors_2, matches, 2, mask, false); // Find two nearest matches
Can you check the result?
2 | No.2 Revision |
Taking a look at the current knnMatch documentation I guess the matcher interface was changed.
It seems that since 2.4.10 you need to use the pointer interface. Something like this should work
Ptr<BFMatcher> matcher(NORM_L2, true); Ptr<DescriptorMatcher> matcher; matcher->create("BruteForce");
Mat mask;
matcher -> knnMatch(descriptors_1, descriptors_2, matches, 2, mask, false); // Find two nearest matches
Can you check the result?