fixed failure of the C++ test for estimateAffine3D

This commit is contained in:
Vadim Pisarevsky
2013-01-31 19:44:16 +04:00
parent 79e278c008
commit 7ca38d63d9
2 changed files with 15 additions and 5 deletions

View File

@@ -1927,6 +1927,14 @@ void cv::transpose( InputArray _src, OutputArray _dst )
_dst.create(src.cols, src.rows, src.type());
Mat dst = _dst.getMat();
// 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 );
src.copyTo(dst);
return;
}
if( dst.data == src.data )
{
TransposeInplaceFunc func = transposeInplaceTab[esz];