Return the specific diagonal elements of this matrix

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public Matrix<TDepth> GetDiag(
	int diag
)
Public Function GetDiag ( _
	diag As Integer _
) As Matrix(Of TDepth)
public:
Matrix<TDepth>^ GetDiag(
	int diag
)

Parameters

diag
Int32
Array diagonal. Zero corresponds to the main diagonal, -1 corresponds to the diagonal above the main etc., 1 corresponds to the diagonal below the main etc

Return Value

The specific diagonal elements of this matrix

See Also