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(UMat, InputArray)

Copies the matrix to another one.

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

Parameters

m UMat

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.