fixed failure of the C++ test for estimateAffine3D
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user