opencv的FeatureDetector特征检测器
有没有用过opencv的FeatureDetector的,请问当运行到它的detect函数时,程序会崩溃是什么原因?
代码如下所示:
谢谢各位:
MatchImpl::MatchImpl(Mat img1,Mat img2)
{
...
Ptr<FeatureDetector> detector = FeatureDetector::create(“SURF”);
Ptr<DescriptorExtractor> descriptorExtractor = DescriptorExtractor::create( "SURF" );
Ptr<DescriptorMatcher> descriptorMatcher = DescriptorMatcher::create( "SURF" );
vector<KeyPoint> keypoints1;
detector->detect(img1,keypoints1); //运行到这里程序会崩溃
....
}