Mat::copyTo
This commit is contained in:
parent
f7ec4a5c47
commit
3bd8211a72
@ -278,6 +278,11 @@ void Mat::copyTo( OutputArray _dst ) const
|
|||||||
Size sz = getContinuousSize(*this, dst);
|
Size sz = getContinuousSize(*this, dst);
|
||||||
size_t len = sz.width*elemSize();
|
size_t len = sz.width*elemSize();
|
||||||
|
|
||||||
|
#if defined HAVE_IPP && !defined HAVE_IPP_ICV_ONLY
|
||||||
|
if (ippiCopy_8u_C1R(sptr, (int)step, dptr, (int)dst.step, ippiSize((int)len, sz.height)) >= 0)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
for( ; sz.height--; sptr += step, dptr += dst.step )
|
for( ; sz.height--; sptr += step, dptr += dst.step )
|
||||||
memcpy( dptr, sptr, len );
|
memcpy( dptr, sptr, len );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user