This commit is contained in:
Vadim Pisarevsky
2012-09-04 13:34:52 +04:00
parent a08290d843
commit a74a2302aa
2 changed files with 14 additions and 0 deletions

View File

@@ -209,6 +209,7 @@ void Mat::copyTo( OutputArray _dst ) const
int dtype = _dst.type();
if( _dst.fixedType() && dtype != type() )
{
CV_Assert( channels() == CV_MAT_CN(dtype) );
convertTo( _dst, dtype );
return;
}