Mat Constructor (Int32, Int32, 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(
int rows,
int cols,
DepthType type,
int channels,
IntPtr data,
int step
)
Public Sub New (
rows As Integer,
cols As Integer,
type As DepthType,
channels As Integer,
data As IntPtr,
step As Integer
)
public:
Mat(
int rows,
int cols,
DepthType type,
int channels,
IntPtr data,
int step
)
new :
rows : int *
cols : int *
type : DepthType *
channels : int *
data : IntPtr *
step : int -> Mat
Parameters
- rows
- Type: SystemInt32
Number of rows in a 2D array. - cols
- Type: SystemInt32
Number of columns in a 2D array. - 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