NVIDIA Performance Primitives (NPP)  Version 9.1

Primitives for computing both the integral and the squared integral images of a given image. More...

SqrIntegral

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)\]

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

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

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

NppStatus nppiSqrIntegral_8u32s_C1R (const Npp8u *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, Npp32s *pSqr, int nSqrStep, NppiSize oSrcROI, Npp32s nVal, Npp32s nValSqr)
 One-channel 8-bit unsigned image SqrIntegral. More...
 
NppStatus nppiSqrIntegral_8u32s64f_C1R (const Npp8u *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, Npp64f *pSqr, int nSqrStep, NppiSize oSrcROI, Npp32s nVal, Npp64f nValSqr)
 One-channel 8-bit unsigned image SqrIntegral. More...
 
NppStatus nppiSqrIntegral_8u32f64f_C1R (const Npp8u *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, Npp64f *pSqr, int nSqrStep, NppiSize oSrcROI, Npp32f nVal, Npp64f nValSqr)
 One-channel 8-bit unsigned image SqrIntegral. More...
 

Detailed Description

Primitives for computing both the integral and the squared integral images of a given image.

Function Documentation

NppStatus nppiSqrIntegral_8u32f64f_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
Npp64f pSqr,
int  nSqrStep,
NppiSize  oSrcROI,
Npp32f  nVal,
Npp64f  nValSqr 
)

One-channel 8-bit unsigned image SqrIntegral.

Destination integral image is 32-bit floating point. Destination square integral image is 64-bit double floating point.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
pSqrDestination-Image Pointer.
nSqrStepDestination-Image Line Step.
oSrcROIRegion-of-Interest (ROI).
nValThe value to add to pDst image pixels
nValSqrThe value to add to pSqr image pixels
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSqrIntegral_8u32s64f_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
Npp64f pSqr,
int  nSqrStep,
NppiSize  oSrcROI,
Npp32s  nVal,
Npp64f  nValSqr 
)

One-channel 8-bit unsigned image SqrIntegral.

Destination integral image is 32-bit signed int. Destination square integral image is 64-bit double floating point.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
pSqrDestination-Image Pointer.
nSqrStepDestination-Image Line Step.
oSrcROIRegion-of-Interest (ROI).
nValThe value to add to pDst image pixels
nValSqrThe value to add to pSqr image pixels
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSqrIntegral_8u32s_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
Npp32s pSqr,
int  nSqrStep,
NppiSize  oSrcROI,
Npp32s  nVal,
Npp32s  nValSqr 
)

One-channel 8-bit unsigned image SqrIntegral.

Destination integral image and square integral image are 32-bit signed int.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
pSqrDestination-Image Pointer.
nSqrStepDestination-Image Line Step.
oSrcROIRegion-of-Interest (ROI).
nValThe value to add to pDst image pixels
nValSqrThe value to add to pSqr image pixels
Returns
Image Data Related Error Codes, ROI Related Error Codes

Copyright © 2009-2017 NVIDIA Corporation