surf和sift算法都是在头文件#include <opencv2/features2d/features2d.hpp>中,但在新的opencv版本出来后,如果仍然使用这个头文件就会出现编译错误如下:  'SurfFeatureDetector' : is not a member of 'cv'  

为什么VS提示SurfFeatureDetector不是cv的成员函数

原因:没有把 opencv_nonfree243d.lib 加入lib库中。

还有两个头文件:#include <opencv2/nonfree/features2d.hpp>
#include <opencv2/nonfree/nonfree.hpp>


出现这种问题的时候,主要是没有把相关的头文件include进去,还有就是相关的lib没有添加。

 

相关文章:

  • 2021-06-01
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-23
  • 2022-12-23
  • 2021-06-12
  • 2021-06-05
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案