Emgu CV Library Documentation
cvInitMatHeader Method (mat, rows, cols, type, data, step)
NamespacesEmgu.CVCvInvokecvInitMatHeader(IntPtr, Int32, Int32, MAT_DEPTH, IntPtr, Int32)

www.emgu.com/wiki
Initializes already allocated CvMat structure. It can be used to process raw data with OpenCV matrix functions.
Declaration Syntax
C#Visual BasicVisual 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)]

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.3.0.0 (1.3.0.0)