Debug Assertion Failed Expression: _pFirstBlock == pHead using OpenCV and C++ trying to call SurfFeatureDetector
问题 I have this function in C++ using OpenCV: vector<KeyPoint> test(Mat img) { int minHessian = 400; SurfFeatureDetector detector( minHessian ); vector<KeyPoint> vKeypoints; detector.detect( img, vKeypoints ); return vKeypoints; } When I call this function in my main-method everything works fine. int main( int, char** argv ) { // path to a image-file char* input = "image.jpg"; // read image into Mat img Mat img = imread( input, CV_LOAD_IMAGE_GRAYSCALE ); // call function test test(img); waitKey(0