opencv3.2中SurfFeatureDetector、SurfDescriptorExtractor、BruteForceMatcher这三个的使用方法已经和原先2.4版本前不一样了。
使用方法示例如下:
Ptr<SURF> detector = SURF::create(minHessian);
detector->detect(img_1, keypoints_1);
Ptr<SURF> extractor = SURF::create();
extractor->compute(img_1, keypoints_1, descriptors_1);
Ptr<DescriptorMatcher> matcher = DescriptorMatcher::create("BruteForce");
matcher->match(descriptors_1, descriptors_2, matches);
本文介绍如何在 OpenCV 3.2 中使用 SurfFeatureDetector、SurfDescriptorExtractor 和 BruteForceMatcher 进行特征检测与匹配。通过创建 SURF 对象并设置参数,实现图像特征点的检测、描述符提取及匹配。
1882





