NVIDIA Performance Primitives (NPP)  Version 9.1

Primitives for computing the amount of pixels that fall into the specified intensity range. More...

CountInRange

The lower bound and the upper bound are inclusive.

The functions require additional scratch buffer for computations.

Common parameters for nppiCountInRange functions include:

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pCountsPointer to the number of pixels that fall into the specified range.
nLowerBoundLower bound of the specified range.
nUpperBoundUpper bound of the specified range.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes, or NPP_RANGE_ERROR if the lower bound is larger than the upper bound.
NppStatus nppiCountInRange_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, int *pCounts, Npp8u nLowerBound, Npp8u nUpperBound, Npp8u *pDeviceBuffer)
 One-channel 8-bit unsigned image CountInRange. More...
 
NppStatus nppiCountInRange_32f_C1R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, int *pCounts, Npp32f nLowerBound, Npp32f nUpperBound, Npp8u *pDeviceBuffer)
 One-channel 32-bit floating point image CountInRange. More...
 
NppStatus nppiCountInRange_8u_C3R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, int aCounts[3], Npp8u aLowerBound[3], Npp8u aUpperBound[3], Npp8u *pDeviceBuffer)
 Three-channel 8-bit unsigned image CountInRange. More...
 
NppStatus nppiCountInRange_32f_C3R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, int aCounts[3], Npp32f aLowerBound[3], Npp32f aUpperBound[3], Npp8u *pDeviceBuffer)
 Three-channel 32-bit floating point image CountInRange. More...
 
NppStatus nppiCountInRange_8u_AC4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, int aCounts[3], Npp8u aLowerBound[3], Npp8u aUpperBound[3], Npp8u *pDeviceBuffer)
 Four-channel 8-bit unsigned image CountInRange ignoring alpha channel. More...
 
NppStatus nppiCountInRange_32f_AC4R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, int aCounts[3], Npp32f aLowerBound[3], Npp32f aUpperBound[3], Npp8u *pDeviceBuffer)
 Four-channel 32-bit floating point image CountInRange ignoring alpha channel. More...
 

CountInRangeGetBufferHostSize

Companion primitives for computing the device buffer size (in bytes) required by the CountInRange primitives.

NppStatus nppiCountInRangeGetBufferHostSize_8u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Device scratch buffer size (in bytes) for nppiCountInRange_8u_C1R. More...
 
NppStatus nppiCountInRangeGetBufferHostSize_32f_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Device scratch buffer size (in bytes) for nppiCountInRange_32f_C1R. More...
 
NppStatus nppiCountInRangeGetBufferHostSize_8u_C3R (NppiSize oSizeROI, int *hpBufferSize)
 Device scratch buffer size (in bytes) for nppiCountInRange_8u_C3R. More...
 
NppStatus nppiCountInRangeGetBufferHostSize_32f_C3R (NppiSize oSizeROI, int *hpBufferSize)
 Device scratch buffer size (in bytes) for nppiCountInRange_32f_C3R. More...
 
NppStatus nppiCountInRangeGetBufferHostSize_8u_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 Device scratch buffer size (in bytes) for nppiCountInRange_8u_AC4R. More...
 
NppStatus nppiCountInRangeGetBufferHostSize_32f_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 Device scratch buffer size (in bytes) for nppiCountInRange_32f_AC4R. More...
 

Detailed Description

Primitives for computing the amount of pixels that fall into the specified intensity range.

Function Documentation

NppStatus nppiCountInRange_32f_AC4R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
int  aCounts[3],
Npp32f  aLowerBound[3],
Npp32f  aUpperBound[3],
Npp8u pDeviceBuffer 
)

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

For common parameter descriptions, see Common parameters for nppiCountInRange functions.

NppStatus nppiCountInRange_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
int *  pCounts,
Npp32f  nLowerBound,
Npp32f  nUpperBound,
Npp8u pDeviceBuffer 
)

One-channel 32-bit floating point image CountInRange.

For common parameter descriptions, see Common parameters for nppiCountInRange functions.

NppStatus nppiCountInRange_32f_C3R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
int  aCounts[3],
Npp32f  aLowerBound[3],
Npp32f  aUpperBound[3],
Npp8u pDeviceBuffer 
)

Three-channel 32-bit floating point image CountInRange.

For common parameter descriptions, see Common parameters for nppiCountInRange functions.

NppStatus nppiCountInRange_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
int  aCounts[3],
Npp8u  aLowerBound[3],
Npp8u  aUpperBound[3],
Npp8u pDeviceBuffer 
)

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

For common parameter descriptions, see Common parameters for nppiCountInRange functions.

NppStatus nppiCountInRange_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
int *  pCounts,
Npp8u  nLowerBound,
Npp8u  nUpperBound,
Npp8u pDeviceBuffer 
)

One-channel 8-bit unsigned image CountInRange.

For common parameter descriptions, see Common parameters for nppiCountInRange functions.

NppStatus nppiCountInRange_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
int  aCounts[3],
Npp8u  aLowerBound[3],
Npp8u  aUpperBound[3],
Npp8u pDeviceBuffer 
)

Three-channel 8-bit unsigned image CountInRange.

For common parameter descriptions, see Common parameters for nppiCountInRange functions.

NppStatus nppiCountInRangeGetBufferHostSize_32f_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Device scratch buffer size (in bytes) for nppiCountInRange_32f_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiCountInRangeGetBufferHostSize_32f_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Device scratch buffer size (in bytes) for nppiCountInRange_32f_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiCountInRangeGetBufferHostSize_32f_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Device scratch buffer size (in bytes) for nppiCountInRange_32f_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiCountInRangeGetBufferHostSize_8u_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Device scratch buffer size (in bytes) for nppiCountInRange_8u_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiCountInRangeGetBufferHostSize_8u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Device scratch buffer size (in bytes) for nppiCountInRange_8u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiCountInRangeGetBufferHostSize_8u_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Device scratch buffer size (in bytes) for nppiCountInRange_8u_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.


Copyright © 2009-2017 NVIDIA Corporation