Search Results for

    Show / Hide Table of Contents

    Class SparseMat

    Represents a multi-dimensional sparse multi-channel array.

    Inheritance
    Object
    CVHandle
    Arr
    SparseMat
    Inherited Members
    Arr.ElementType
    Arr.Size
    Arr.GetSubRect(Rect)
    Arr.GetRow(Int32)
    Arr.GetRows(Int32, Int32, Int32)
    Arr.GetCol(Int32)
    Arr.GetCols(Int32, Int32)
    Arr.GetDiag(Int32)
    Arr.GetDims(Int32[])
    Arr.GetDimSize(Int32)
    Arr.Ptr(Int32)
    Arr.Ptr(Int32, Int32)
    Arr.Ptr(Int32, Int32)
    Arr.Ptr(Int32, Int32, Int32)
    Arr.Ptr(Int32, Int32, Int32)
    Arr.Ptr(Int32, Int32, Int32, Int32)
    Arr.Ptr(Int32[])
    Arr.Ptr(Int32[], Int32, Boolean)
    Arr.Item[Int32]
    Arr.Item[Int32, Int32]
    Arr.Item[Int32, Int32, Int32]
    Arr.Item[Int32[]]
    Arr.GetReal(Int32)
    Arr.GetReal(Int32, Int32)
    Arr.GetReal(Int32, Int32, Int32)
    Arr.GetReal(Int32[])
    Arr.SetReal(Int32, Double)
    Arr.SetReal(Int32, Int32, Double)
    Arr.SetReal(Int32, Int32, Int32, Double)
    Arr.SetReal(Int32[], Double)
    Arr.ClearND(Int32[])
    Arr.GetMat(Boolean)
    Arr.GetImage()
    Arr.Reshape(Int32, Int32)
    Arr.SetData(IntPtr, Int32)
    Arr.GetRawData(IntPtr)
    Arr.GetRawData(IntPtr, Int32)
    Arr.GetRawData(IntPtr, Int32, Size)
    Arr.Set(Scalar, Arr)
    Arr.SetZero()
    Arr.CheckRange(CheckArrayFlags, Double, Double)
    Namespace: OpenCV.Net
    Assembly: OpenCV.Net.dll
    Syntax
    public class SparseMat : Arr

    Constructors

    | Improve this Doc View Source

    SparseMat(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 Source

    Channels

    Gets the number of channels per matrix element.

    Declaration
    public int Channels { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Depth

    Gets the bit depth of matrix elements.

    Declaration
    public Depth Depth { get; }
    Property Value
    Type Description
    Depth
    | Improve this Doc View Source

    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 Source

    Clone()

    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.

    | Improve this Doc View Source

    GetSparseNodes()

    Returns an that supports iteration over the element nodes of the sparse array.

    Declaration
    public IEnumerable<SparseNode> GetSparseNodes()
    Returns
    Type Description
    IEnumerable<SparseNode>

    An that supports iteration over the element nodes of the sparse array.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX