Click or drag to resize
Mat Constructor (Int32, Int32, DepthType, Int32, IntPtr, Int32)
Create a Mat header from existing data

Namespace: Emgu.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public Mat(
	int rows,
	int cols,
	DepthType type,
	int channels,
	IntPtr data,
	int step


Type: SystemInt32
Number of rows in a 2D array.
Type: SystemInt32
Number of columns in a 2D array.
Type: Emgu.CV.CvEnumDepthType
Mat element type
Type: SystemInt32
Number of channels
Type: SystemIntPtr
Pointer to the user data. Matrix constructors that take data and step parameters do not allocate matrix data. Instead, they just initialize the matrix header that points to the specified data, which means that no data is copied. This operation is very efficient and can be used to process external data using OpenCV functions. The external data is not automatically deallocated, so you should take care of it.
Type: SystemInt32
Number of bytes each matrix row occupies. The value should include the padding bytes at the end of each row, if any.
See Also