Merge pull request #642 from taka-no-me:fix1

This commit is contained in:
Andrey Kamaev
2013-03-14 11:42:05 +04:00
committed by OpenCV Buildbot
8 changed files with 11 additions and 9 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]