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: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic Mat(
Size size,
DepthType type,
int channels,
IntPtr data,
int step
)
Public Sub New (
size As Size,
type As DepthType,
channels As Integer,
data As IntPtr,
step As Integer
)
public:
Mat(
Size size,
DepthType type,
int channels,
IntPtr data,
int step
)
new :
size : Size *
type : DepthType *
channels : int *
data : IntPtr *
step : int -> Mat
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