Initializes already allocated CvMat structure. It can be used to process raw data with OpenCV matrix functions.

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 cvInitMatHeader(
	IntPtr mat,
	int rows,
	int cols,
	MAT_DEPTH type,
	IntPtr data,
	int step
)
Public Shared Function cvInitMatHeader ( _
	mat As IntPtr, _
	rows As Integer, _
	cols As Integer, _
	type As MAT_DEPTH, _
	data As IntPtr, _
	step As Integer _
) As IntPtr
public:
static IntPtr cvInitMatHeader(
	IntPtr mat, 
	int rows, 
	int cols, 
	MAT_DEPTH type, 
	IntPtr data, 
	int step
)

Parameters

mat
IntPtr
Pointer to the matrix header to be initialized.
rows
Int32
Number of rows in the matrix.
cols
Int32
Number of columns in the matrix.
type
MAT_DEPTH
Type of the matrix elements.
data
IntPtr
Optional data pointer assigned to the matrix header
step
Int32
Full row width in bytes of the data assigned. By default, the minimal possible step is used, i.e., no gaps is assumed between subsequent rows of the matrix.

Return Value

[Missing <returns> documentation for "M:Emgu.CV.CvInvoke.cvInitMatHeader(System.IntPtr,System.Int32,System.Int32,Emgu.CV.CvEnum.MAT_DEPTH,System.IntPtr,System.Int32)"]

See Also