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.2.1777 (2.4.2.1777)

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
)

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

A pointer to the created matrix

See Also