From: Vadim Pisarevsky Date: Thu, 31 Jan 2013 16:26:16 +0000 (+0400) Subject: yet another minor fix in cv::transpose() X-Git-Tag: accepted/2.0/20130307.220821~147^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54e0765d80b7c3b2b99473fa9db2d3d1ed5173b7;p=profile%2Fivi%2Fopencv.git yet another minor fix in cv::transpose() --- diff --git a/modules/core/src/matrix.cpp b/modules/core/src/matrix.cpp index dd4518a..54adb5d 100644 --- a/modules/core/src/matrix.cpp +++ b/modules/core/src/matrix.cpp @@ -1930,7 +1930,7 @@ void cv::transpose( InputArray _src, OutputArray _dst ) // handle the case of single-column/single-row matrices, stored in STL vectors. if( src.rows != dst.cols || src.cols != dst.rows ) { - CV_Assert( src.cols == 1 || src.rows == 1 ); + CV_Assert( src.size() == dst.size() && (src.cols == 1 || src.rows == 1) ); src.copyTo(dst); return; }