1 | initial version |
When you match descriptors via
dm.radiusMatch(base_descriptors, descriptors, matches, avg);
base_descriptors - is query
descriptors - is train
queryIdx is index in base_keypoints vector and trainIdx is index in keypoints vector
Just swap queryIdx and trainIdx in your code.