| MatExprDiag Method |
Extracts a diagonal from a matrix
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public MatExpr Diag(
MatDiagType d = MatDiagType.Main
)
Public Function Diag (
Optional d As MatDiagType = MatDiagType.Main
) As MatExpr
public:
MatExpr^ Diag(
MatDiagType d = MatDiagType::Main
)
member Diag :
?d : MatDiagType
(* Defaults:
let _d = defaultArg d MatDiagType.Main
*)
-> MatExpr
Parameters
- d (Optional)
- Type: OpenCvSharpMatDiagType
d index of the diagonal, with the following values:
- d=0 is the main diagonal.
- d<0 is a diagonal from the lower half. For example, d=-1 means the diagonal is set immediately below the main one.
- d>0 is a diagonal from the upper half. For example, d=1 means the diagonal is set immediately above the main one.
Return Value
Type:
MatExpr[Missing <returns> documentation for "M:OpenCvSharp.MatExpr.Diag(OpenCvSharp.MatDiagType)"]
See Also