系统-
- Windows 8.1 64 位机器
- OpenCV 3.0.0
- 视觉工作室 12 2013
我已经用 contrib 模块构建了 openCV 3.0.0。但是,当我编译这段代码时,我得到了错误。
#include <OpenNI.h> //used for taking in input from xtion pro live
#include <iostream>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\core\core.hpp>
#include <opencv2\features2d\features2d.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/xfeatures2d.hpp> // these are the libraries in the new location (they contain SURF implementation)
#include <opencv2/xfeatures2d/nonfree.hpp>
using namespace std;
//using namespace openni;
using namespace cv;
int main(void)
{
//from sample code
int minHessian = 400;
SurfFeatureDetector detector(minHessian);
return 0;
}
错误是-
错误 C2065:“SurfFeatureDetector”:未声明的标识符