Click or drag to resize

Cv2CopyTo Method

Copies the matrix to another one. When the operation mask is specified, if the Mat::create call shown above reallocates the matrix, the newly allocated matrix is initialized with all zeros before copying the data.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void CopyTo(
	InputArray src,
	OutputArray dst,
	InputArray mask = null
)

Parameters

src
Type: OpenCvSharpInputArray
Source matrix.
dst
Type: OpenCvSharpOutputArray
Destination matrix. If it does not have a proper size or type before the operation, it is reallocated.
mask (Optional)
Type: OpenCvSharpInputArray
Operation mask of the same size as \*this. Its non-zero elements indicate which matrix elements need to be copied.The mask has to be of type CV_8U and can have 1 or multiple channels.
See Also