I'am using ORB feature detector and extractor to get features from a list of grayscale images. The problem is that I get different features from the same image if I try to detect\extract it more than once. So it is impossible to use them for detection later.
The code:
bmp=BitmapFactory.decodeResource(getResources(),R.drawable.t1);
Utils.bitmapToMat(bmp, mat);
FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.detect(mat, keypoints);
DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);
extractor.compute(mat, keypoints, features);
Maybe someone have some insight into that?