Emgu CV Library Documentation
cvGetMat Method (arr, header, coi, allowND)
NamespacesEmgu.CVCvInvokecvGetMat(IntPtr, IntPtr, Int32%, Int32)

www.emgu.com/wiki
Returns matrix header for the input array that can be matrix - CvMat, image - IplImage or multi-dimensional dense array - CvMatND* (latter case is allowed only if allowND != 0) . In the case of matrix the function simply returns the input pointer. In the case of IplImage* or CvMatND* it initializes header structure with parameters of the current image ROI and returns pointer to this temporary structure. Because COI is not supported by CvMat, it is returned separately.
Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr cvGetMat(
	IntPtr arr,
	IntPtr header,
	out int coi,
	int allowND
)
Public Shared Function cvGetMat ( _
	arr As IntPtr, _
	header As IntPtr, _
	<OutAttribute> ByRef coi As Integer, _
	allowND As Integer _
) As IntPtr
public:
static IntPtr cvGetMat(
	IntPtr arr, 
	IntPtr header, 
	[OutAttribute] int% coi, 
	int allowND
)
Parameters
arr (IntPtr)
Input array
header (IntPtr)
Pointer to CvMat structure used as a temporary buffer
coi ( Int32 %)
Optional output parameter for storing COI
allowND (Int32)
If non-zero, the function accepts multi-dimensional dense arrays (CvMatND*) and returns 2D (if CvMatND has two dimensions) or 1D matrix (when CvMatND has 1 dimension or more than 2 dimensions). The array must be continuous
Return Value
Returns matrix header for the input array

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