Table of Contents

Method CopyTo

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

CopyTo(OutputArray, InputArray)

Copies the matrix to another one.

public void CopyTo(OutputArray m, InputArray mask = default)

Parameters

m OutputArray

Destination matrix. If it does not have a proper size or type before the operation, it is reallocated.

mask InputArray

Operation mask. Its non-zero elements indicate which matrix elements need to be copied.

CopyTo(Mat, InputArray)

Copies the matrix to another one.

public void CopyTo(Mat m, InputArray mask = default)

Parameters

m Mat

Destination matrix. If it does not have a proper size or type before the operation, it is reallocated.

mask InputArray

Operation mask. Its non-zero elements indicate which matrix elements need to be copied.