用几句话,请向我解释Viola-Jones人脸检测方法的工作原理.
我想提取基于Features2D + Homography的 FAST功能来查找已知对象
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;
Run Code Online (Sandbox Code Playgroud)
SurfFeatureDetector和FastFeatureDetector类继承自Detector,可以进行交换.但我找不到SurfDescriptorExtractor的匹配类我希望找到像FastDescriptorExtractor这样的类,但这样的类不可用.似乎很奇怪的是,如果我只将Detector更改为FastFeatureDetector,则示例似乎正常工作.
我的问题是:对于快速功能,上述序列应该如何?