Commit 54e0765d authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

yet another minor fix in cv::transpose()

parent 7ca38d63
...@@ -1930,7 +1930,7 @@ void cv::transpose( InputArray _src, OutputArray _dst ) ...@@ -1930,7 +1930,7 @@ void cv::transpose( InputArray _src, OutputArray _dst )
// handle the case of single-column/single-row matrices, stored in STL vectors. // handle the case of single-column/single-row matrices, stored in STL vectors.
if( src.rows != dst.cols || src.cols != dst.rows ) 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); src.copyTo(dst);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment