首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > VSTS >

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

2013-10-08 
为什么VS提示SurfFeatureDetector不是cv的成员函数surf和sift算法都是在头文件#include opencv2/features

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

        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没有添加。

1楼wangzhebupt昨天 12:01
试了还是不管用~siftfeaturesdetector和surffeaturedetector都不管用

热点排行