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

Primitives for computing the integral image of a given image. More...

Integral

Given an input image $pSrc$ and the specified value $nVal$, the pixel value of the integral image $pDst$ at coordinate (i, j) will be computed as

\[pDst(j,i) = nVal + \sum_{l=0}^{j-1}\sum_{k=0}^{i-1}pSrc(l,k)\]

If the size of the input image is $W \times H$, the size of the integral image will be $(W+1) \times (H+1)$.

NppStatus  nppiIntegral_8u32s_C1R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oROI, Npp32s nVal, NppStreamContext nppStreamCtx)
  One-channel 8-bit unsigned image Integral with 32-bit signed output. More...
 
NppStatus  nppiIntegral_8u32s_C1R (const Npp8u *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oROI, Npp32s nVal)
 
NppStatus  nppiIntegral_8u32f_C1R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oROI, Npp32f nVal, NppStreamContext nppStreamCtx)
  One-channel 8-bit unsigned image Integral with 32-bit floating point output. More...
 
NppStatus  nppiIntegral_8u32f_C1R (const Npp8u *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oROI, Npp32f nVal)
 

Detailed Description

Primitives for computing the integral image of a given image.

Function Documentation

NppStatus nppiIntegral_8u32f_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oROI,
Npp32f  nVal 
)
NppStatus nppiIntegral_8u32f_C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oROI,
Npp32f  nVal,
NppStreamContext  nppStreamCtx 
)

One-channel 8-bit unsigned image Integral with 32-bit floating point output.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
nVal The value to add to pDst image pixels
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes.
NppStatus nppiIntegral_8u32s_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oROI,
Npp32s  nVal 
)
NppStatus nppiIntegral_8u32s_C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oROI,
Npp32s  nVal,
NppStreamContext  nppStreamCtx 
)

One-channel 8-bit unsigned image Integral with 32-bit signed output.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
nVal The value to add to pDst image pixels
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes.