1 | initial version |
It matches the features of the first image to the best correspondence in the second image. Which means that if your first image has 241 descriptors, you will get 241 matches no matter the second image.
Try inverting your descriptors:
matcher.match(descriptorsa,descriptorsb,matches);
should not return the same number of matches as:
matcher.match(descriptorsb,descriptorsa,matches);
If the first image has 200 descriptors and the second only one, then you will get 200 matches: the best solution for each will be the unique descriptor of the second image!