Nicht verwenden SurfFeatureDetector in OpenCV 3.0.0

System-

  1. Windows 8.1 64-bit-Computer
  2. OpenCV 3.0.0
  3. Visual Studio 2013 12

Ich gebaut habe die openCV-3.0.0 mit der contrib-Module. Wenn ich jedoch diesen code kompilieren, bekomme ich Fehler.

#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;
}

Den Fehler-

error C2065: 'SurfFeatureDetector' : nicht deklarierter Bezeichner

  • werfen Sie einen Blick hier
Schreibe einen Kommentar