It's a cycle from one folder to read all of the pictures and images one by one to analyze its Dense SIFT features and unified operation, preservation here at run to Ptr
For (count=0; The count & lt; ImgNum; Count++) {
Mat img=imread (wkDir + namesNE [count] + "PNG");
Height=img. Rows;
Width=img. Cols;
//SiftFeatureDetector siftdtc;
Float initFeatureScale=1.5 f, featureScaleMul=1.5 f;
Int featureScaleLevels=8, initXyStep=2, initImgBound=20;
InitModule_nonfree ();
Ptr
InitFeatureScale featureScaleLevels, featureScaleMul initXyStep, initImgBound, false));
//Ptr
//if (fdetector - & gt; The empty () | | dextractor - & gt; The empty ()) {
//cout & lt; <"FeatureDetector or descExtractor was not created" & lt;
//}
/* vector
Fdetector - & gt; Detect (img, keypoints);
Mat descriptors.
Dextractor - & gt; Compute (img, the keypoints and descriptors);
CombineDetector. Push_back (descriptors); */
}
CodePudding user response:
See opencv version, you need to be code problemsYou put the location of the error code, and the call stack
CodePudding user response:
http://download.csdn.net/index.php/mobile/source/detail/pww71/9513746CodePudding user response:
2 l error code position at the end of the code after the brackets, all calculations have been counted, view the online code seems to be release stack access conflict problems, but the same code on others' VC2013 (OPENCV 2.49) is also no problem