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.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static IntPtr cvCreateMat(
	int rows,
	int cols,
	MAT_DEPTH type
)
Public Shared Function cvCreateMat ( _
	rows As Integer, _
	cols As Integer, _
	type As MAT_DEPTH _
) As IntPtr
public:
static IntPtr cvCreateMat(
	int rows, 
	int cols, 
	MAT_DEPTH type
)

Parameters

rows
Int32
Number of rows in the matrix.
cols
Int32
Number of columns in the matrix.
type
MAT_DEPTH
Type of the matrix elements.

Return Value

A pointer to the created matrix

See Also