yet another minor fix in cv::transpose()

This commit is contained in:
Vadim Pisarevsky 2013-01-31 20:26:16 +04:00
parent 7ca38d63d9
commit 54e0765d80

View File

@ -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;
}