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

Primitives for computing the sum of all the pixel values in an image. More...

Sum

Given an image $pSrc$ with width $W$ and height $H$, the sum will be computed as

\[Sum = \sum_{j=0}^{H-1}\sum_{i=0}^{W-1}pSrc(j,i)\]

All the results are stored in a 64-bit double precision format, except for two primitives nppiSum_8u64s_C1R and nppiSum_8u64s_C4R.

The sum functions require additional scratch buffer for computations.

Common parameters for nppiSum functions include:

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppiSumGetBufferHostSize_XX_XXX to determine the minium number of bytes required.
pSumPointer to the computed sum.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSum_8u_C1R_Ctx (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f *pSum, NppStreamContext nppStreamCtx)
 One-channel 8-bit unsigned image sum. More...
 
NppStatus nppiSum_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f *pSum)
 
NppStatus nppiSum_8u64s_C1R_Ctx (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64s *pSum, NppStreamContext nppStreamCtx)
 One-channel 8-bit unsigned image sum. More...
 
NppStatus nppiSum_8u64s_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64s *pSum)
 
NppStatus nppiSum_16u_C1R_Ctx (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f *pSum, NppStreamContext nppStreamCtx)
 One-channel 16-bit unsigned image sum. More...
 
NppStatus nppiSum_16u_C1R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f *pSum)
 
NppStatus nppiSum_16s_C1R_Ctx (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f *pSum, NppStreamContext nppStreamCtx)
 One-channel 16-bit signed image sum. More...
 
NppStatus nppiSum_16s_C1R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f *pSum)
 
NppStatus nppiSum_32f_C1R_Ctx (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f *pSum, NppStreamContext nppStreamCtx)
 One-channel 32-bit floating point image sum. More...
 
NppStatus nppiSum_32f_C1R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f *pSum)
 
NppStatus nppiSum_8u_C3R_Ctx (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3], NppStreamContext nppStreamCtx)
 Three-channel 8-bit unsigned image sum. More...
 
NppStatus nppiSum_8u_C3R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3])
 
NppStatus nppiSum_16u_C3R_Ctx (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3], NppStreamContext nppStreamCtx)
 Three-channel 16-bit unsigned image sum. More...
 
NppStatus nppiSum_16u_C3R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3])
 
NppStatus nppiSum_16s_C3R_Ctx (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3], NppStreamContext nppStreamCtx)
 Three-channel 16-bit signed image sum. More...
 
NppStatus nppiSum_16s_C3R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3])
 
NppStatus nppiSum_32f_C3R_Ctx (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3], NppStreamContext nppStreamCtx)
 Three-channel 32-bit floating point image sum. More...
 
NppStatus nppiSum_32f_C3R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3])
 
NppStatus nppiSum_8u_AC4R_Ctx (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3], NppStreamContext nppStreamCtx)
 Four-channel 8-bit unsigned image sum ignoring alpha channel. More...
 
NppStatus nppiSum_8u_AC4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3])
 
NppStatus nppiSum_16u_AC4R_Ctx (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3], NppStreamContext nppStreamCtx)
 Four-channel 16-bit unsigned image sum ignoring alpha channel. More...
 
NppStatus nppiSum_16u_AC4R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3])
 
NppStatus nppiSum_16s_AC4R_Ctx (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3], NppStreamContext nppStreamCtx)
 Four-channel 16-bit signed image sum ignoring alpha channel. More...
 
NppStatus nppiSum_16s_AC4R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3])
 
NppStatus nppiSum_32f_AC4R_Ctx (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3], NppStreamContext nppStreamCtx)
 Four-channel 32-bit floating point image sum ignoring alpha channel. More...
 
NppStatus nppiSum_32f_AC4R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[3])
 
NppStatus nppiSum_8u_C4R_Ctx (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[4], NppStreamContext nppStreamCtx)
 Four-channel 8-bit unsigned image sum. More...
 
NppStatus nppiSum_8u_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[4])
 
NppStatus nppiSum_8u64s_C4R_Ctx (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64s aSum[4], NppStreamContext nppStreamCtx)
 Four-channel 8-bit unsigned image sum. More...
 
NppStatus nppiSum_8u64s_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64s aSum[4])
 
NppStatus nppiSum_16u_C4R_Ctx (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[4], NppStreamContext nppStreamCtx)
 Four-channel 16-bit unsigned image sum. More...
 
NppStatus nppiSum_16u_C4R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[4])
 
NppStatus nppiSum_16s_C4R_Ctx (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[4], NppStreamContext nppStreamCtx)
 Four-channel 16-bit signed image sum. More...
 
NppStatus nppiSum_16s_C4R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[4])
 
NppStatus nppiSum_32f_C4R_Ctx (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[4], NppStreamContext nppStreamCtx)
 Four-channel 32-bit floating point image sum. More...
 
NppStatus nppiSum_32f_C4R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp64f aSum[4])
 

SumGetBufferHostSize

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

NppStatus nppiSumGetBufferHostSize_8u_C1R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_8u_C1R. More...
 
NppStatus nppiSumGetBufferHostSize_8u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_8u64s_C1R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_8u64s_C1R. More...
 
NppStatus nppiSumGetBufferHostSize_8u64s_C1R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_16u_C1R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_16u_C1R. More...
 
NppStatus nppiSumGetBufferHostSize_16u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_16s_C1R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_16s_C1R. More...
 
NppStatus nppiSumGetBufferHostSize_16s_C1R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_32f_C1R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_32f_C1R. More...
 
NppStatus nppiSumGetBufferHostSize_32f_C1R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_8u_C3R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_8u_C3R. More...
 
NppStatus nppiSumGetBufferHostSize_8u_C3R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_16u_C3R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_16u_C3R. More...
 
NppStatus nppiSumGetBufferHostSize_16u_C3R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_16s_C3R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_16s_C3R. More...
 
NppStatus nppiSumGetBufferHostSize_16s_C3R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_32f_C3R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_32f_C3R. More...
 
NppStatus nppiSumGetBufferHostSize_32f_C3R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_8u_AC4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_8u_AC4R. More...
 
NppStatus nppiSumGetBufferHostSize_8u_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_16u_AC4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_16u_AC4R. More...
 
NppStatus nppiSumGetBufferHostSize_16u_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_16s_AC4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_16s_AC4R. More...
 
NppStatus nppiSumGetBufferHostSize_16s_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_32f_AC4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_32f_AC4R. More...
 
NppStatus nppiSumGetBufferHostSize_32f_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_8u64s_C4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_8u64s_C4R. More...
 
NppStatus nppiSumGetBufferHostSize_8u64s_C4R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_8u_C4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_8u_C4R. More...
 
NppStatus nppiSumGetBufferHostSize_8u_C4R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_16u_C4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_16u_C4R. More...
 
NppStatus nppiSumGetBufferHostSize_16u_C4R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_16s_C4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_16s_C4R. More...
 
NppStatus nppiSumGetBufferHostSize_16s_C4R (NppiSize oSizeROI, int *hpBufferSize)
 
NppStatus nppiSumGetBufferHostSize_32f_C4R_Ctx (NppiSize oSizeROI, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Buffer size for nppiSum_32f_C4R. More...
 
NppStatus nppiSumGetBufferHostSize_32f_C4R (NppiSize oSizeROI, int *hpBufferSize)
 

Detailed Description

Primitives for computing the sum of all the pixel values in an image.

Function Documentation

NppStatus nppiSum_16s_AC4R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3] 
)
NppStatus nppiSum_16s_AC4R_Ctx ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3],
NppStreamContext  nppStreamCtx 
)

Four-channel 16-bit signed image sum ignoring alpha channel.

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

NppStatus nppiSum_16s_C1R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f pSum 
)
NppStatus nppiSum_16s_C1R_Ctx ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f pSum,
NppStreamContext  nppStreamCtx 
)

One-channel 16-bit signed image sum.

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

NppStatus nppiSum_16s_C3R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3] 
)
NppStatus nppiSum_16s_C3R_Ctx ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3],
NppStreamContext  nppStreamCtx 
)

Three-channel 16-bit signed image sum.

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

NppStatus nppiSum_16s_C4R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[4] 
)
NppStatus nppiSum_16s_C4R_Ctx ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[4],
NppStreamContext  nppStreamCtx 
)

Four-channel 16-bit signed image sum.

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

NppStatus nppiSum_16u_AC4R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3] 
)
NppStatus nppiSum_16u_AC4R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3],
NppStreamContext  nppStreamCtx 
)

Four-channel 16-bit unsigned image sum ignoring alpha channel.

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

NppStatus nppiSum_16u_C1R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f pSum 
)
NppStatus nppiSum_16u_C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f pSum,
NppStreamContext  nppStreamCtx 
)

One-channel 16-bit unsigned image sum.

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

NppStatus nppiSum_16u_C3R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3] 
)
NppStatus nppiSum_16u_C3R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3],
NppStreamContext  nppStreamCtx 
)

Three-channel 16-bit unsigned image sum.

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

NppStatus nppiSum_16u_C4R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[4] 
)
NppStatus nppiSum_16u_C4R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[4],
NppStreamContext  nppStreamCtx 
)

Four-channel 16-bit unsigned image sum.

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

NppStatus nppiSum_32f_AC4R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3] 
)
NppStatus nppiSum_32f_AC4R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3],
NppStreamContext  nppStreamCtx 
)

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

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

NppStatus nppiSum_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f pSum 
)
NppStatus nppiSum_32f_C1R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f pSum,
NppStreamContext  nppStreamCtx 
)

One-channel 32-bit floating point image sum.

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

NppStatus nppiSum_32f_C3R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3] 
)
NppStatus nppiSum_32f_C3R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3],
NppStreamContext  nppStreamCtx 
)

Three-channel 32-bit floating point image sum.

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

NppStatus nppiSum_32f_C4R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[4] 
)
NppStatus nppiSum_32f_C4R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[4],
NppStreamContext  nppStreamCtx 
)

Four-channel 32-bit floating point image sum.

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

NppStatus nppiSum_8u64s_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64s pSum 
)
NppStatus nppiSum_8u64s_C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64s pSum,
NppStreamContext  nppStreamCtx 
)

One-channel 8-bit unsigned image sum.

The result is 64-bit long long integer.

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

NppStatus nppiSum_8u64s_C4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64s  aSum[4] 
)
NppStatus nppiSum_8u64s_C4R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64s  aSum[4],
NppStreamContext  nppStreamCtx 
)

Four-channel 8-bit unsigned image sum.

The result is 64-bit long long integer.

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

NppStatus nppiSum_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3] 
)
NppStatus nppiSum_8u_AC4R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3],
NppStreamContext  nppStreamCtx 
)

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

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

NppStatus nppiSum_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f pSum 
)
NppStatus nppiSum_8u_C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f pSum,
NppStreamContext  nppStreamCtx 
)

One-channel 8-bit unsigned image sum.

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

NppStatus nppiSum_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3] 
)
NppStatus nppiSum_8u_C3R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[3],
NppStreamContext  nppStreamCtx 
)

Three-channel 8-bit unsigned image sum.

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

NppStatus nppiSum_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[4] 
)
NppStatus nppiSum_8u_C4R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp64f  aSum[4],
NppStreamContext  nppStreamCtx 
)

Four-channel 8-bit unsigned image sum.

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

NppStatus nppiSumGetBufferHostSize_16s_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_16s_AC4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_16s_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_16s_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_16s_C1R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_16s_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_16s_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_16s_C3R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_16s_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_16s_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_16s_C4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_16s_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_16u_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_16u_AC4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_16u_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_16u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_16u_C1R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_16u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_16u_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_16u_C3R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_16u_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_16u_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_16u_C4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_16u_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_32f_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_32f_AC4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_32f_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_32f_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_32f_C1R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_32f_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_32f_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_32f_C3R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_32f_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_32f_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_32f_C4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_32f_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_8u64s_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_8u64s_C1R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_8u64s_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_8u64s_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_8u64s_C4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_8u64s_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_8u_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_8u_AC4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_8u_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_8u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_8u_C1R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_8u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_8u_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_8u_C3R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_8u_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSumGetBufferHostSize_8u_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)
NppStatus nppiSumGetBufferHostSize_8u_C4R_Ctx ( NppiSize  oSizeROI,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Buffer size for nppiSum_8u_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.


Copyright © 2009-2022 NVIDIA CORPORATION AND AFFILIATES