Initializes matrix header (light-weight variant)
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static CvMat Mat<T>( int rows, int cols, MatrixType type, T[] data ) where T : struct, new()
Parameters
- rows
- Type: SystemInt32
Number of rows in the matrix. - cols
- Type: SystemInt32
Number of columns in the matrix. - type
- Type: OpenCvSharpMatrixType
Type of the matrix elements (see CreateMat). - data
- Type: T
Optional data pointer assigned to the matrix header.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:OpenCvSharp.Cv.Mat``1(System.Int32,System.Int32,OpenCvSharp.MatrixType,``0[])"]
Return Value
Type: CvMatThe function cvMat is a fast inline substitution for cvInitMatHeader.
See Also