0

「SurfFeatureDetector」と「SurfDescriptorExtractor」を使用しようとしましたが、新しいバージョン 2.4.1 では、構造体「ImageFeatures」を必要とする演算子を含む「SurfFeaturesFinder」しかありません。次のように機能の説明で使用する例を開発しました。

//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 に答える