A fast inline substitution for cvInitMatHeader. Namely, it is equivalent to: CvMat mat; cvInitMatHeader( &mat, rows, cols, type, data, CV_AUTOSTEP );

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++ 
[ObsoleteAttribute("The generated header should only be released with Marshal.AllocHGlobal, this is DANGEROUS! Will be removed in the next version. Use CvInvoke.cvInitMatHeader instead")]
public static IntPtr cvMat(
	int rows,
	int cols,
	MAT_DEPTH type,
	IntPtr data
)
<ObsoleteAttribute("The generated header should only be released with Marshal.AllocHGlobal, this is DANGEROUS! Will be removed in the next version. Use CvInvoke.cvInitMatHeader instead")> _
Public Shared Function cvMat ( _
	rows As Integer, _
	cols As Integer, _
	type As MAT_DEPTH, _
	data As IntPtr _
) As IntPtr
[ObsoleteAttribute(L"The generated header should only be released with Marshal.AllocHGlobal, this is DANGEROUS! Will be removed in the next version. Use CvInvoke.cvInitMatHeader instead")]
public:
static IntPtr cvMat(
	int rows, 
	int cols, 
	MAT_DEPTH type, 
	IntPtr data
)

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 (see CreateMat).
data
IntPtr
Optional data pointer assigned to the matrix header.

Return Value

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

See Also