Show / Hide Table of Contents

    Class NPPNativeMethods.NPPi.CountInRange

    Primitives for computing the amount of pixels that fall into the specified intensity range. The lower bound and the upper bound are inclusive.

    Inheritance
    System.Object
    NPPNativeMethods.NPPi.CountInRange
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ManagedCuda.NPP
    Assembly: NPP.dll
    Syntax
    public static class CountInRange

    Methods

    nppiCountInRange_32f_AC4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Single[], Single[], CUdeviceptr)

    Four-channel 32-bit floating point image CountInRange ignoring alpha channel.

    Declaration
    public static NppStatus nppiCountInRange_32f_AC4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSizeROI, CUdeviceptr aCounts, float[] aLowerBound, float[] aUpperBound, CUdeviceptr pDeviceBuffer)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr aCounts

    Array that contains the number of pixels that fall into the specified range for Three-channels.

    System.Single[] aLowerBound

    Fixed size array of the lower bound of the specified range, one per channel.

    System.Single[] aUpperBound

    Fixed size array of the upper bound of the specified range, one per channel.

    CUdeviceptr pDeviceBuffer

    Pointer to the required device memory allocation.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, or NPP_RANGE_ERROR if the lower bound is larger than the upper bound.

    nppiCountInRange_32f_C1R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Single, Single, CUdeviceptr)

    One-channel 32-bit floating point image CountInRange.

    Declaration
    public static NppStatus nppiCountInRange_32f_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSizeROI, CUdeviceptr pCounts, float nLowerBound, float nUpperBound, CUdeviceptr pDeviceBuffer)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pCounts

    Pointer to the number of pixels that fall into the specified range.

    System.Single nLowerBound

    Lower bound of the specified range.

    System.Single nUpperBound

    Upper bound of the specified range.

    CUdeviceptr pDeviceBuffer

    Pointer to the required device memory allocation.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, or NPP_RANGE_ERROR if the lower bound is larger than the upper bound.

    nppiCountInRange_32f_C3R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Single[], Single[], CUdeviceptr)

    Three-channel 32-bit floating point image CountInRange.

    Declaration
    public static NppStatus nppiCountInRange_32f_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSizeROI, CUdeviceptr aCounts, float[] aLowerBound, float[] aUpperBound, CUdeviceptr pDeviceBuffer)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr aCounts

    Array that contains the number of pixels that fall into the specified range for Three-channels.

    System.Single[] aLowerBound

    Fixed size array of the lower bound of the specified range, one per channel.

    System.Single[] aUpperBound

    Fixed size array of the upper bound of the specified range, one per channel.

    CUdeviceptr pDeviceBuffer

    Pointer to the required device memory allocation.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, or NPP_RANGE_ERROR if the lower bound is larger than the upper bound.

    nppiCountInRange_8u_AC4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Byte[], Byte[], CUdeviceptr)

    Four-channel 8-bit unsigned image CountInRange ignoring alpha channel.

    Declaration
    public static NppStatus nppiCountInRange_8u_AC4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSizeROI, CUdeviceptr aCounts, byte[] aLowerBound, byte[] aUpperBound, CUdeviceptr pDeviceBuffer)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr aCounts

    Array that contains the number of pixels that fall into the specified range for Three-channels.

    System.Byte[] aLowerBound

    Fixed size array of the lower bound of the specified range, one per channel.

    System.Byte[] aUpperBound

    Fixed size array of the upper bound of the specified range, one per channel.

    CUdeviceptr pDeviceBuffer

    Pointer to the required device memory allocation.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, or NPP_RANGE_ERROR if the lower bound is larger than the upper bound.

    nppiCountInRange_8u_C1R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Byte, Byte, CUdeviceptr)

    One-channel 8-bit unsigned image CountInRange.

    Declaration
    public static NppStatus nppiCountInRange_8u_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSizeROI, CUdeviceptr pCounts, byte nLowerBound, byte nUpperBound, CUdeviceptr pDeviceBuffer)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pCounts

    Pointer to the number of pixels that fall into the specified range.

    System.Byte nLowerBound

    Lower bound of the specified range.

    System.Byte nUpperBound

    Upper bound of the specified range.

    CUdeviceptr pDeviceBuffer

    Pointer to the required device memory allocation.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, or NPP_RANGE_ERROR if the lower bound is larger than the upper bound.

    nppiCountInRange_8u_C3R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Byte[], Byte[], CUdeviceptr)

    Three-channel 8-bit unsigned image CountInRange.

    Declaration
    public static NppStatus nppiCountInRange_8u_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSizeROI, CUdeviceptr aCounts, byte[] aLowerBound, byte[] aUpperBound, CUdeviceptr pDeviceBuffer)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr aCounts

    Array that contains the number of pixels that fall into the specified range for Three-channels.

    System.Byte[] aLowerBound

    Fixed size array of the lower bound of the specified range, one per channel.

    System.Byte[] aUpperBound

    Fixed size array of the upper bound of the specified range, one per channel.

    CUdeviceptr pDeviceBuffer

    Pointer to the required device memory allocation.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, or NPP_RANGE_ERROR if the lower bound is larger than the upper bound.

    nppiCountInRangeGetBufferHostSize_32f_AC4R(NppiSize, ref Int32)

    Device scratch buffer size (in bytes) for nppiCountInRange_32f_AC4R.

    Declaration
    public static NppStatus nppiCountInRangeGetBufferHostSize_32f_AC4R(NppiSize oSizeROI, ref int hpBufferSize)
    Parameters
    Type Name Description
    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Int32 hpBufferSize

    Required buffer size. Important: hpBufferSize is a

    Returns
    Type Description
    NppStatus

    NPP_NULL_POINTER_ERROR if hpBufferSize is 0 (NULL), StepError, SizeError.

    nppiCountInRangeGetBufferHostSize_32f_C1R(NppiSize, ref Int32)

    Device scratch buffer size (in bytes) for nppiCountInRange_32f_C1R.

    Declaration
    public static NppStatus nppiCountInRangeGetBufferHostSize_32f_C1R(NppiSize oSizeROI, ref int hpBufferSize)
    Parameters
    Type Name Description
    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Int32 hpBufferSize

    Required buffer size. Important: hpBufferSize is a

    Returns
    Type Description
    NppStatus

    NPP_NULL_POINTER_ERROR if hpBufferSize is 0 (NULL), StepError, SizeError.

    nppiCountInRangeGetBufferHostSize_32f_C3R(NppiSize, ref Int32)

    Device scratch buffer size (in bytes) for nppiCountInRange_32f_C3R.

    Declaration
    public static NppStatus nppiCountInRangeGetBufferHostSize_32f_C3R(NppiSize oSizeROI, ref int hpBufferSize)
    Parameters
    Type Name Description
    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Int32 hpBufferSize

    Required buffer size. Important: hpBufferSize is a

    Returns
    Type Description
    NppStatus

    NPP_NULL_POINTER_ERROR if hpBufferSize is 0 (NULL), StepError, SizeError.

    nppiCountInRangeGetBufferHostSize_8u_AC4R(NppiSize, ref Int32)

    Device scratch buffer size (in bytes) for nppiCountInRange_8u_AC4R.

    Declaration
    public static NppStatus nppiCountInRangeGetBufferHostSize_8u_AC4R(NppiSize oSizeROI, ref int hpBufferSize)
    Parameters
    Type Name Description
    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Int32 hpBufferSize

    Required buffer size. Important: hpBufferSize is a

    Returns
    Type Description
    NppStatus

    NPP_NULL_POINTER_ERROR if hpBufferSize is 0 (NULL), StepError, SizeError.

    nppiCountInRangeGetBufferHostSize_8u_C1R(NppiSize, ref Int32)

    Device scratch buffer size (in bytes) for nppiCountInRange_8u_C1R.

    Declaration
    public static NppStatus nppiCountInRangeGetBufferHostSize_8u_C1R(NppiSize oSizeROI, ref int hpBufferSize)
    Parameters
    Type Name Description
    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Int32 hpBufferSize

    Required buffer size. Important: hpBufferSize is a

    Returns
    Type Description
    NppStatus

    NPP_NULL_POINTER_ERROR if hpBufferSize is 0 (NULL), StepError, SizeError.

    nppiCountInRangeGetBufferHostSize_8u_C3R(NppiSize, ref Int32)

    Device scratch buffer size (in bytes) for nppiCountInRange_8u_C3R.

    Declaration
    public static NppStatus nppiCountInRangeGetBufferHostSize_8u_C3R(NppiSize oSizeROI, ref int hpBufferSize)
    Parameters
    Type Name Description
    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Int32 hpBufferSize

    Required buffer size. Important: hpBufferSize is a

    Returns
    Type Description
    NppStatus

    NPP_NULL_POINTER_ERROR if hpBufferSize is 0 (NULL), StepError, SizeError.

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