mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Support GpuMat in copyTo() functions
This commit is contained in:
@@ -238,6 +238,14 @@ void Mat::copyTo( OutputArray _dst ) const
|
||||
{
|
||||
CV_INSTRUMENT_REGION();
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
if (_dst.isGpuMat())
|
||||
{
|
||||
_dst.getGpuMat().upload(*this);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
int dtype = _dst.type();
|
||||
if( _dst.fixedType() && dtype != type() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user