Show / Hide Table of Contents

    Struct NppiHOGConfig

    The NppiHOGConfig structure defines the configuration parameters for the HOG descriptor

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: ManagedCuda.NPP
    Assembly: NPP.dll
    Syntax
    public struct NppiHOGConfig

    Fields

    | Improve this Doc View Source

    cellSize

    square cell size (pixels).

    Declaration
    public int cellSize
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    detectionWindowSize

    detection window size (pixels).

    Declaration
    public NppiSize detectionWindowSize
    Field Value
    Type Description
    NppiSize
    | Improve this Doc View Source

    histogramBlockSize

    square histogram block size (pixels).

    Declaration
    public int histogramBlockSize
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    nHistogramBins

    required number of histogram bins.

    Declaration
    public int nHistogramBins
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    HistogramOfGradientsBorderGetBufferSize(NppiPoint[], NppiSize)

    Validates requested HOG configuration and calculates scratch buffer size needed for the HistogramOfGradientsBorder function based on requested HOG configuration, source image ROI, and number and locations of descriptor window locations.

    Declaration
    public int HistogramOfGradientsBorderGetBufferSize(NppiPoint[] hpLocations, NppiSize oSizeROI)
    Parameters
    Type Name Description
    NppiPoint[] hpLocations

    Host pointer to array of NppiPoint source pixel starting locations of requested descriptor windows. Important: hpLocations is a

    NppiSize oSizeROI

    Region-of-Interest (ROI) of source image.

    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    HistogramOfGradientsBorderGetDescriptorsSize(Int32)

    Validates requested HOG configuration and calculates output window descriptors buffer size needed for the HistogramOfGradientsBorder function based on requested HOG configuration, and number of descriptor window locations, one descriptor window is output for each location. Descriptor windows are located sequentially and contiguously in the descriptors buffer. The number of horizontal overlapping block histogram bins per descriptor window width is determined by (((oHOGConfig.detectionWindowSize.width / oHOGConfig.histogramBlockSize) /// 2) - 1) /// oHOGConfig.nHistogramBins. The number of vertical overlapping block histograms per descriptor window height is determined by (((oHOGConfig.detectionWindowSize.height / oHOGConfig.histogramBlockSize) /// 2) - 1) The offset of each descriptor window in the descriptors output buffer is therefore horizontal histogram bins per descriptor window width /// vertical histograms per descriptor window height floating point values relative to the previous descriptor window output.

    Declaration
    public int HistogramOfGradientsBorderGetDescriptorsSize(int nLocations)
    Parameters
    Type Name Description
    System.Int32 nLocations

    Number of NppiPoint in pLocations array.

    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX