Система-
- Windows 8.1 64-битная машина
- OpenCV 3.0.0
- Visual Studio 12 2013 г.
Я построил openCV 3.0.0 с модулями contrib. Однако, когда я компилирую этот код, я получаю ошибки.
#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»: необъявленный идентификатор