http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Create a Matrix (only header is allocated) using the Pinned/Unmanaged data. The data is not freed by the disposed function of this class
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public Matrix( int rows, int cols, IntPtr data, int step ) |
Visual Basic |
---|
Public Sub New ( _ rows As Integer, _ cols As Integer, _ data As IntPtr, _ step As Integer _ ) |
Visual C++ |
---|
public: Matrix( int rows, int cols, IntPtr data, int step ) |
Parameters
- rows
- Type: System..::..Int32
The number of rows
- cols
- Type: System..::..Int32
The number of cols
- data
- Type: System..::..IntPtr
The Pinned/Unmanaged data, the data must not be release before the Matrix is Disposed
- step
- Type: System..::..Int32
The step (row stride in bytes)
Remarks
The caller is responsible for allocating and freeing the block of memory specified by the data parameter, however, the memory should not be released until the related Matrix is released.