Search Results for

    Show / Hide Table of Contents

    Class MatND

    Represents a multi-dimensional dense multi-channel array.

    Inheritance
    Object
    CVHandle
    Arr
    MatND
    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 MatND : Arr

    Constructors

    | Improve this Doc View Source

    MatND(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.

    | Improve this Doc View Source

    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 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 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.

    | Improve this Doc View Source

    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.

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