在 Visual Studio 2010 中运行时,下面的代码给了我以下错误:Run-Time Check Failure #2 - Stack around the variable 'keypoints' was corrupted.
#include<iostream>
#include<fstream>
#include<cv.h>
#include<highgui.h>
#include<opencv2/nonfree/features2d.hpp>
using namespace std;
using namespace cv;
int main(int argc, char *argv[])
{
Mat image = imread("C:/IMAGE.JPG");
SiftFeatureDetector detector;
vector<KeyPoint> keypoints;
detector.detect(image, keypoints);
return 0;
}
知道我做错了什么吗?