Allocates header for the new matrix and underlying data, and returns a pointer to the created matrix. Matrices are stored row by row. All the rows are aligned by 4 bytes.
Namespace:
Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax
C# |
---|
public static IntPtr cvCreateMat( int rows, int cols, MAT_DEPTH type ) |
Visual Basic (Declaration) |
---|
Public Shared Function cvCreateMat ( _ rows As Integer, _ cols As Integer, _ type As MAT_DEPTH _ ) As IntPtr |
Visual C++ |
---|
public: static IntPtr cvCreateMat( int rows, int cols, MAT_DEPTH type ) |
Parameters
- rows
- Type: System..::.Int32
Number of rows in the matrix.
- cols
- Type: System..::.Int32
Number of columns in the matrix.
- type
- Type: Emgu.CV.CvEnum..::.MAT_DEPTH
Type of the matrix elements.