CvGetMat Method (CvArr, CvMat, Int32, Boolean) OpenCvSharp Class Library
Returns matrix header for arbitrary array

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static CvMat GetMat(
	CvArr arr,
	out CvMat header,
	out int coi,
	bool allowND
)

Parameters

arr
Type: OpenCvSharpCvArr
Input array.
header
Type: OpenCvSharpCvMat
Pointer to CvMat structure used as a temporary buffer.
coi
Type: SystemInt32
Optional output parameter for storing COI.
allowND
Type: SystemBoolean
If true, 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

Type: CvMat
returns a matrix header for the input array that can be a matrix
See Also

Reference