0
我試圖運行的代碼序列:核心轉儲 - 32S,32F,8U
DescriptorMatcher * matcher = new BFMatcher(NORM_HAMMING);
vector<DMatch> matches;
matcher -> match(descriptorsImage1, descriptorsImage2, matches);
它是造成此錯誤:
OpenCV Error: Assertion failed ((type == CV_8U && dtype == CV_32S) || dtype == CV_32F) in batchDistance, file /home/.../OpenCV/opencv-2.4.10/modules/core/src/stat.cpp, line 2480
terminate called after throwing an instance of 'cv::Exception'
what(): /home/.../OpenCV/opencv-2.4.10/modules/core/src/stat.cpp:2480: error: (-215) (type == CV_8U && dtype == CV_32S) || dtype == CV_32F in function batchDistance
Aborted (core dumped)
有沒有人見過這個?
這似乎相關:http://answers.opencv.org/question/10046/feature-2d-feature-matching-fails-with-assert-statcpp/?answer=10048#post-id-10048。 – 2015-02-18 00:05:02