Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Which Extractor do I have to use for FAST Detector?

Hello,

I'm trying to detect an object in a scene, where this object is rotated. I want to find my screen on a photo of its environment:

find screen on photo

I have used the ORB-Detector, but the result was very bad... So i try other detectors and extractors... Now I have the FAST Detector, but don't find a compatible DescriptorExtractor and DescriptorMatcher...

Does anyone know which extractor and matcher fit on which detectors? I don't find any information to that topic...

FeatureDetector fastDetector  = FeatureDetector.create(FeatureDetector.FAST);

MatOfKeyPoint keypoints_object = new MatOfKeyPoint();
MatOfKeyPoint keypoints_scene = new MatOfKeyPoint();
fastDetector.detect(img_object, keypoints_object);
fastDetector.detect(img_scene, keypoints_scene);

DescriptorExtractor fastDescriptor = DescriptorExtractor.create(DescriptorExtractor.???);
Mat descriptors_object = new Mat();
Mat descriptors_scene = new Mat();

fastDescriptor.compute(img_scene, keypoints_scene, descriptors_scene);
fastDescriptor.compute(img_object, keypoints_object, descriptors_object);

DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.???);
MatOfDMatch matches = new MatOfDMatch();

matcher.match(descriptors_object, descriptors_scene, matches);
click to hide/show revision 2
retagged

updated 2015-01-26 03:52:25 -0600

berak gravatar image

Which Extractor do I have to use for FAST Detector?

Hello,

I'm trying to detect an object in a scene, where this object is rotated. I want to find my screen on a photo of its environment:

find screen on photo

I have used the ORB-Detector, but the result was very bad... So i try other detectors and extractors... Now I have the FAST Detector, but don't find a compatible DescriptorExtractor and DescriptorMatcher...

Does anyone know which extractor and matcher fit on which detectors? I don't find any information to that topic...

FeatureDetector fastDetector  = FeatureDetector.create(FeatureDetector.FAST);

MatOfKeyPoint keypoints_object = new MatOfKeyPoint();
MatOfKeyPoint keypoints_scene = new MatOfKeyPoint();
fastDetector.detect(img_object, keypoints_object);
fastDetector.detect(img_scene, keypoints_scene);

DescriptorExtractor fastDescriptor = DescriptorExtractor.create(DescriptorExtractor.???);
Mat descriptors_object = new Mat();
Mat descriptors_scene = new Mat();

fastDescriptor.compute(img_scene, keypoints_scene, descriptors_scene);
fastDescriptor.compute(img_object, keypoints_object, descriptors_object);

DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.???);
MatOfDMatch matches = new MatOfDMatch();

matcher.match(descriptors_object, descriptors_scene, matches);