Class MatND
Represents a multi-dimensional dense multi-channel array.
Inherited Members
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public class MatND : Arr
Constructors
| Improve this Doc View SourceMatND(Int32[], Depth, Int32)
Initializes a new instance of the MatND class with the
specified dimension sizes, element bit depth
and
channels
per element.
Declaration
public MatND(int[] dimSizes, Depth depth, int channels)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | dimSizes | The size of each of the multi-dimensional array dimensions. |
Depth | depth | The bit depth of matrix elements. |
Int32 | channels | The number of channels per element. |
MatND(Int32[], Depth, Int32, IntPtr)
Initializes a new instance of the MatND class with the
specified dimension sizes, element bit depth
and
channels
per element. A pointer to the matrix
raw element data
is provided.
Declaration
public MatND(int[] dimSizes, Depth depth, int channels, IntPtr data)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | dimSizes | The size of each of the multi-dimensional array dimensions. |
Depth | depth | The bit depth of matrix elements. |
Int32 | channels | The number of channels per element. |
IntPtr | data | A pointer to the matrix raw element data. |
Properties
| Improve this Doc View SourceChannels
Gets the number of channels per matrix element.
Declaration
public int Channels { get; }
Property Value
Type | Description |
---|---|
Int32 |
Depth
Gets the bit depth of matrix elements.
Declaration
public Depth Depth { get; }
Property Value
Type | Description |
---|---|
Depth |
ElementSize
Gets the size of each matrix element in bytes.
Declaration
public int ElementSize { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceClone()
Creates a new MatND that is a copy of the current instance.
Declaration
public MatND Clone()
Returns
Type | Description |
---|---|
MatND | A new MatND that is a copy of this instance. |
ReleaseHandle()
Executes the code required to free the native MatND handle.
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
Boolean | true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. |