NVIDIA 2D Image And Signal Performance Primitives (NPP)  Version 11.3.0.*
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Count In Range

Calculates the number of elements from specified range in the samples of a signal. More...

Functions

NppStatus nppsCountInRangeGetBufferSize_32s_Ctx (int nLength, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Device-buffer size (in bytes) for nppsCountInRange_32s. More...
 
NppStatus nppsCountInRangeGetBufferSize_32s (int nLength, int *hpBufferSize)
 
NppStatus nppsCountInRange_32s_Ctx (const Npp32s *pSrc, int nLength, int *pCounts, Npp32s nLowerBound, Npp32s nUpperBound, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
 Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array. More...
 
NppStatus nppsCountInRange_32s (const Npp32s *pSrc, int nLength, int *pCounts, Npp32s nLowerBound, Npp32s nUpperBound, Npp8u *pDeviceBuffer)
 

Detailed Description

Calculates the number of elements from specified range in the samples of a signal.

Function Documentation

NppStatus nppsCountInRange_32s ( const Npp32s pSrc,
int  nLength,
int *  pCounts,
Npp32s  nLowerBound,
Npp32s  nUpperBound,
Npp8u pDeviceBuffer 
)
NppStatus nppsCountInRange_32s_Ctx ( const Npp32s pSrc,
int  nLength,
int *  pCounts,
Npp32s  nLowerBound,
Npp32s  nUpperBound,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array.

Parameters
pSrcSource Signal Pointer.
nLengthSignal Length.
pCountsPointer to the number of elements.
nLowerBoundLower bound of the specified range.
nUpperBoundUpper bound of the specified range.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsCountInRangeGetBufferSize_32s to determine the minium number of bytes required.
nppStreamCtxApplication Managed Stream Context.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsCountInRangeGetBufferSize_32s ( int  nLength,
int *  hpBufferSize 
)
NppStatus nppsCountInRangeGetBufferSize_32s_Ctx ( int  nLength,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Device-buffer size (in bytes) for nppsCountInRange_32s.

Parameters
nLengthSignal Length.
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtxApplication Managed Stream Context.
Returns
NPP_SUCCESS

Copyright © 2009-2020 NVIDIA Corporation