How can I extract FAST functions from an image?

I want to extract FAST functions based on Features2D + Homography to find a known object

  SurfFeatureDetector detector( minHessian );

  std::vector<KeyPoint> keypoints_object, keypoints_scene;

  detector.detect( img_object, keypoints_object );
  detector.detect( img_scene, keypoints_scene );

  //-- Step 2: Calculate descriptors (feature vectors)
  SurfDescriptorExtractor extractor;

The SurfFeatureDetector and FastFeatureDetector classes are inherited from the Detector and can be exchanged. But I could not find a suitable class for SurfDescriptorExtractor, which I expected to find something like FastDescriptorExtractor, but a class like this is not available. It seems strange that if I only change the detector to FastFeatureDetector, the example seems correct.

My question is: what should this sequence look like for quick functions?

+2
source share
1 answer

, OpenCV FAST. SURF, , , FAST . - . , , OpenCV 2.3 ORB, FAST ( ) . SURF:

OrbFeatureDetector detector(n_features);

OrbDescriptorExtractor extractor(patch_size);

. , .

+8

All Articles