Updated by Alexander Shishkov about 13 years ago

I'm doing feature matching in [[OpenCV]] and I get the following exception:

<pre>
OpenCV [[OpenCV]] Error: Assertion failed (masks[i].rows == queryDescriptorsCount && masks[i].cols == trainDescCollection[i].rows && masks[i].type() == CV_8UC1) in checkMasks, file /u/sglaser/megaslam/opencv2/build/opencv-svn/modules/features2d/src/matchers.cpp, line 267
terminate called after throwing an instance of 'cv::Exception'
what(): /u/sglaser/megaslam/opencv2/build/opencv-svn/modules/features2d/src/matchers.cpp:267: error: (-215) masks[i].rows == queryDescriptorsCount && masks[i].cols == trainDescCollection[i].rows && masks[i].type() == CV_8UC1 in function checkMasks
</pre>

Though the exception does tell me that one of these conditions is failing, it doesn't tell me which one. Please split large assertions like this into separate assertions so the user can easily tell which condition is the problem.

Back