Class SparseMat
Represents a multi-dimensional sparse multi-channel array.
Inherited Members
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public class SparseMat : Arr
Constructors
| Improve this Doc View SourceSparseMat(Int32[], Depth, Int32)
Initializes a new instance of the SparseMat class with the
specified dimension sizes, element bit depth
and
channels
per element.
Declaration
public SparseMat(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. |
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 SparseMat that is a copy of the current instance.
Declaration
public SparseMat Clone()
Returns
Type | Description |
---|---|
SparseMat | A new SparseMat that is a copy of this instance. |
GetSparseNodes()
Returns an
Declaration
public IEnumerable<SparseNode> GetSparseNodes()
Returns
Type | Description |
---|---|
IEnumerable<SparseNode> | An |
ReleaseHandle()
Executes the code required to free the native SparseMat 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. |