asked 2013-10-27 22:08:33 -0500

openedcv gravatar image

updated 2013-10-27 22:11:52 -0500

so hi...

i just installed the opencv and compiled the brief_match_test in cpp samples. when i run it with the example images provided (box.png box_in_scene.png) i get :

OpenCV Error: Assertion failed (mtype == type0 || (CV_MAT_CN(mtype) == CV_MAT_CN(type0) && ((1 << type0) & fixedDepthMask) != 0)) in create, file /usr/local/src/opencv-, line 1486

terminate called after throwing an instance of 'cv::Exception' what(): /usr/local/src/opencv- error: (-215) mtype == type0 || (CV_MAT_CN(mtype) == CV_MAT_CN(type0) && ((1 << type0) & fixedDepthMask) != 0) in function create


i get that it checks if that expression is true. but if that is the stock code - i haven't changed anything in either the brief_match_test code or the matrix.cpp - and images provided with the samples why would that expression be a problem..

edit retag flag offensive close merge delete


Could you upload some code? for example, the lines before (and including) the assertion.

GilLevi gravatar imageGilLevi ( 2013-10-28 09:52:11 -0500 )edit