Table of Contents

Method Diag

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Diag(UMat)

Extracts a diagonal from a matrix, or creates a diagonal matrix.

public static UMat Diag(UMat d)

Parameters

d UMat

One-dimensional matrix that represents the main diagonal.

Returns

UMat

Diag(MatDiagType)

Single-column matrix that forms a diagonal matrix or index of the diagonal, with the following values:

public UMat Diag(MatDiagType d = MatDiagType.Main)

Parameters

d MatDiagType

Single-column matrix that forms a diagonal matrix or index of the diagonal, with the following values:

Returns

UMat