Click or drag to resize

Mat Constructor (Size, 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(
	Size size,
	DepthType type,
	int channels,
	IntPtr data,
	int step


Type: System.DrawingSize
Size of the Mat
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