brief_match_test

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

openedcv gravatar image

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

so hi...

i just installed the opencv 2.4.6.1 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-2.4.6.1/modules/core/src/matrix.cpp, line 1486

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

Aborted

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

Comments

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

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