我使用OpenCV3.2并在Visual 2015平台上工作。
在本教程中,他们使用BruteForceMatcher。
基于这个答案,我知道使用opencv 2.x和3.x有几个不同之处。
那么,有没有人建议如何改变
BruteForceMatcher<L2<float> > matcher;
vector<DMatch> matches;
matcher.match(descriptors1, descriptors2, matches);变成公开的简历3.x表格?
发布于 2017-03-18 18:27:41
您可以尝试以下代码
Ptr<cv::DescriptorMatcher> matcher(new cv::BFMatcher(cv::NORM_HAMMING, true));
vector<DMatch> matches;
matcher->match(descriptors1, descriptors2, matches);https://stackoverflow.com/questions/42877604
复制相似问题