http://www.emgu.com
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.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static IntPtr cvCreateMat(
	int rows,
	int cols,
	MAT_DEPTH type
)
Visual Basic
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
)
F#
static member cvCreateMat : 
        rows : int * 
        cols : int * 
        type : MAT_DEPTH -> IntPtr 

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.

Return Value

Type: IntPtr
A pointer to the created matrix

See Also