0

我尝试使用“SurfFeatureDetector”和“SurfDescriptorExtractor”,但在新版本 2.4.1 中,我们只有“SurfFeaturesFinder”和需要结构“ImageFeatures”的运算符,我开发了一个示例以在功能描述中使用它,如下所示:

//Detect the keypoints and Calculate descriptors using SURF Detector
int minHessian = 400;
detail::SurfFeaturesFinder detector(minHessian);
detail::ImageFeatures myobjfeatures,myscnfeatures;

detector (img_object,myobjfeatures);// i have an error here
detector (img_scene,myscnfeatures);

我有这个错误:Microsoft C++ 异常:cv::Exception at memory location 0x001cbe30..

4

1 回答 1

1

两个班都在那里。您需要包含<opencv2/nonfree/nonfree.hpp>并链接到opencv_nonfree241.lib.

于 2012-12-31T11:30:49.247 回答