Click or drag to resize
Mat Constructor (Size, DepthType, Int32, IntPtr, Int32)
http://www.emgu.com
Create a Mat header from existing data

Namespace: Emgu.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax
public Mat(
	Size size,
	DepthType type,
	int channels,
	IntPtr data,
	int step
)

Parameters

size
Type: System.DrawingSize
Size of the Mat
type
Type: Emgu.CV.CvEnumDepthType
Mat element type
channels
Type: SystemInt32
Number of channels
data
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.
step
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