Avoid assert in lapac.cpp if findHomography fails in BestOf2NearestMatcher::match

This commit is contained in:
Andrey Kamaev
2013-03-12 22:36:00 +04:00
parent 9f3ce0dd97
commit 55698548dd
2 changed files with 2 additions and 1 deletions

View File

@@ -878,6 +878,7 @@ double cv::determinant( InputArray _mat )
size_t step = mat.step;
const uchar* m = mat.data;
CV_Assert( !mat.empty() );
CV_Assert( mat.rows == mat.cols && (type == CV_32F || type == CV_64F));
#define Mf(y, x) ((float*)(m + y*step))[x]