[問題] 關於OpenCV 2.3 的 sample code

看板C_and_CPP作者時間12年前 (2011/09/14 15:08), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) VC++ 2010 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) OpenCV 2.3.1 問題(Question): 我在執行OpenCV 2.3.1 sample code 其中的 detector_descriptor_evaluation.cpp 的時候遇到了Unhandled exception 更細部一點就是 DescriptorQualityEvaluator要是一次跑一組圖的話 遇到 boat or wall 這兩組會產生錯誤 所有的圖一起跑 跑 2~3 組就會掛(因為我有試著把 boat 和 wall 拿掉) 但依然不能全部跑完.... 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): Unhandled exception at 0x7599d36f in detectors_descriptors_evaluation.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0027f898.. 程式碼(Code):(請善用置底文網頁, 記得排版) 因為是範例程式碼,我就不貼了 https://code.ros.org/trac/opencv/browser/trunk/opencv/samples/cpp/ 補充說明(Supplement): 所需的dataset在下面的連結 https://code.ros.org/trac/opencv/browser/trunk/opencv_extra/testdata/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.14.130 ※ 編輯: amidofun 來自: 140.120.14.130 (09/14 15:11) ※ 編輯: amidofun 來自: 140.120.14.130 (09/14 16:20)

09/14 21:02, , 1F
看起來是記憶體配置的問題.
09/14 21:02, 1F

09/14 21:11, , 2F
有好心的大大 可以指點一下那裡應該改?!
09/14 21:11, 2F
文章代碼(AID): #1ES5BXEg (C_and_CPP)