http://www.emgu.com
Extracts a diagonal from a matrix. The method makes a new header for the specified matrix diagonal. The new matrix is represented as a single-column matrix. Similarly to Mat::row and Mat::col, this is an O(1) operation.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic Mat Diag(
int d = 0
)
Public Function Diag (
Optional d As Integer = 0
) As Mat
public:
Mat^ Diag(
int d = 0
)
member Diag :
?d : int
(* Defaults:
let _d = defaultArg d 0
*)
-> Mat
Parameters
- d (Optional)
- Type: SystemInt32
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:
MatA diagonal from a matrix
See Also