After a few hours of research, i still can't find the index of the "train" image to which the matched keypoint belongs to. What i means is
FeatureDetector surfDetector = FeatureDetector.create(FeatureDetector.FAST);
MatOfKeyPoint vector = new MatOfKeyPoint();
surfDetector.detect( mImg, vector );
DescriptorExtractor siftDescriptor =DescriptorExtractor.create(DescriptorExtractor.BRIEF);
Mat descriptors=new Mat();
siftDescriptor.compute(mImg, vector, descriptors);
DescriptorMatcher matcherBruteForce=DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_SL2);
List<MatOfDMatch> matches = new ArrayList<MatOfDMatch>();
matcherBruteForce.match(descriptors, descriptors, matches, 2);
I just use the same image as an example.After this,how to find the index of the "train" image to which the matched keypoint belongs to?