BruteForceMatcher报错“无法识别的标识符”

对于OpenCV2.4.9的解决办法:
BruteForceMatcher并不在opencv2/features2d/features2d.hpp 而是
需加入opencv2/nonfree/features2d.hpp
包含上面文件最终还需加入 opencv2/legacy/legacy.hpp。
但是对于OpenCV3,上面办法不可行
有这么一个办法:https://blog.csdn.net/qsy2000/article/details/70230827
Ptr matcher = DescriptorMatcher::create(“BruteForce”);
matcher->match(descriptors_1, descriptors_2, matches);

猜你喜欢

转载自blog.csdn.net/qq_33591712/article/details/83582639
今日推荐