1
我正在嘗試使用Sift,但我有一個錯誤。我不明白爲什麼。OpenCV:聲明失敗使用SIFT的兩個構造函數之一
我做這樣的事情:
detector = new SiftFeatureDetector(0.03,//feature threshold
10);//threshold to reduce sensitivity to lines,
SiftDescriptorExtractor extractor;
然後我得到這個錯誤:
OpenCV Error: Assertion failed (firstOctave >= -1 && actualNLayers <= nOctaveLayers) in operator(), file terminate called after throwing an instance of 'cv::Exception'
what(): /home/opencv-2.4.6.1/modules/nonfree/src/sift.cpp:755: error: (-215) firstOctave >= -1 && actualNLayers <= nOctaveLayers in function operator()
Howewer當我用SIFT用這種方式,例如:
detector = new SiftFeatureDetector(400)
它的工作原理!但我不知道這是什麼參數,因爲文檔,這是類似的東西:
SiftFeatureDetector(double threshold, double edgeThreshold,...)
你能解釋一下我,請告訴我我做錯了什麼?感謝
我明白了!我沒有看到!謝謝 ! – lilouch