Re-fix bug #3319 with less side effects.

This commit is contained in:
Roman Donchenko 2014-01-17 14:13:21 +04:00
parent f02204847a
commit ee97a5e757

View File

@ -286,6 +286,7 @@ void Mat::copyTo( OutputArray _dst, InputArray _mask ) const
if( dims <= 2 )
{
CV_Assert( size() == mask.size() );
Size sz = getContinuousSize(*this, dst, mask, mcn);
copymask(data, step, mask.data, mask.step, dst.data, dst.step, sz, &esz);
return;