【问题标题】:How to declare BruteForceMatcher in OPENCV 3.x C++ Visual Studio 2015如何在 OPENCV 3.x C++ Visual Studio 2015 中声明 BruteForceMatcher
【发布时间】:2017-03-18 17:32:08
【问题描述】:

我正在使用 Open CV 3.2 并在 Visual Studio 2015 平台上工作。

this tutorial 他们使用 BruteForceMatcher。

基于this answer,我知道使用opencv 2.x 和3.x 有几个不同。

那么,有什么改变的建议吗

BruteForceMatcher<L2<float> > matcher;
vector<DMatch> matches;
matcher.match(descriptors1, descriptors2, matches);

进入 Open CV 3.x 形式?

【问题讨论】:

    标签: c++ opencv visual-studio-2015 opencv3.0


    【解决方案1】:

    你可以试试下面的代码

    Ptr<cv::DescriptorMatcher> matcher(new cv::BFMatcher(cv::NORM_HAMMING, true));
    vector<DMatch> matches;
    matcher->match(descriptors1, descriptors2, matches);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-03
      • 2017-10-24
      • 1970-01-01
      • 1970-01-01
      • 2016-10-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多