mirror of
https://github.com/opencv/opencv.git
synced 2025-07-26 07:07:37 +08:00
Merge pull request #7398 from vpisarev:mat2umat_copy_fix
This commit is contained in:
commit
913b9cd661
@ -263,6 +263,11 @@ void Mat::copyTo( OutputArray _dst ) const
|
|||||||
|
|
||||||
if( _dst.isUMat() )
|
if( _dst.isUMat() )
|
||||||
{
|
{
|
||||||
|
if( empty() )
|
||||||
|
{
|
||||||
|
_dst.release();
|
||||||
|
return;
|
||||||
|
}
|
||||||
_dst.create( dims, size.p, type() );
|
_dst.create( dims, size.p, type() );
|
||||||
UMat dst = _dst.getUMat();
|
UMat dst = _dst.getUMat();
|
||||||
|
|
||||||
|
@ -118,7 +118,6 @@ private:
|
|||||||
int height;
|
int height;
|
||||||
int settingWidth;
|
int settingWidth;
|
||||||
int settingHeight;
|
int settingHeight;
|
||||||
OSType mInputPixelFormat;
|
|
||||||
|
|
||||||
int started;
|
int started;
|
||||||
};
|
};
|
||||||
@ -163,7 +162,6 @@ private:
|
|||||||
|
|
||||||
CMTime mFrameTimestamp;
|
CMTime mFrameTimestamp;
|
||||||
size_t mFrameNum;
|
size_t mFrameNum;
|
||||||
OSType mInputPixelFormat;
|
|
||||||
|
|
||||||
int started;
|
int started;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user