读书人

为何VS提示SurfFeatureDetector不是cv

发布时间: 2013-10-08 17:02:59 作者: rapoo

为什么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都不管用

读书人网 >VSTS

热点推荐