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

Computes the average pixel values of the pixels under a rectangular mask with border control. More...

Functions

NppStatus nppiFilterBoxBorderAdvancedGetDeviceBufferSize (NppiSize oSizeROI, int nChannels, int *hpBufferSize)
 Returns the required size of host memory buffer needed by most nppiFilterBoxBorderAdvanced functions. More...
 
NppStatus nppiFilterBoxBorderAdvancedGetDeviceBufferSize_64 (NppiSize oSizeROI, int nChannels, int *hpBufferSize)
 Returns the required size of host memory buffer needed by nppiFilterBoxBorderAdvanced functions with 64-bit image data. More...
 
NppStatus nppiFilterBoxBorderAdvanced_8u_C1R_Ctx (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Single channel 8-bit unsigned box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_8u_C3R_Ctx (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Three channel 8-bit unsigned box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_8u_C4R_Ctx (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Four channel 8-bit unsigned box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_16u_C1R_Ctx (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Single channel 16-bit unsigned box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_16u_C3R_Ctx (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Three channel 16-bit unsigned box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_16u_C4R_Ctx (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Four channel 16-bit unsigned box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_16s_C1R_Ctx (const Npp16s *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Single channel 16-bit box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_16s_C3R_Ctx (const Npp16s *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Three channel 16-bit box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_16s_C4R_Ctx (const Npp16s *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Four channel 16-bit box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_32f_C1R_Ctx (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Single channel 32-bit floating-point box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_32f_C3R_Ctx (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Three channel 32-bit floating-point box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_32f_C4R_Ctx (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 Four channel 32-bit floating-point box filter with border control. More...
 
NppStatus nppiFilterBoxBorderAdvanced_64f_C1R_Ctx (const Npp64f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp64f *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType, Npp8u *pBuffer64, NppStreamContext nppStreamCtx)
 Single channel 64-bit floating-point box filter with border control. More...
 

Detailed Description

Computes the average pixel values of the pixels under a rectangular mask with border control.

If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image. These versions of the functions are intended to significantly improve performance when very large mask sizes are used.

Currently only the NPP_BORDER_REPLICATE border type operation is supported. *

Common parameters for nppiFilterBoxBorderAdvanced functions include:

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
oSrcSizeSource image width and height in pixels relative to pSrc.
oSrcOffsetThe pixel offset that pSrc points to relative to the origin of the source image.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
oMaskSizeWidth and Height of the neighborhood region for the local Avg operation.
oAnchorX and Y offsets of the kernel origin frame of reference relative to the source pixel.
eBorderTypeThe border type operation to be applied at source image border boundaries.
pBufferPointer to device memory buffer of size hpBufferSize bytes returned by calling nppiFilterBoxBorderAdvancedGetDeviceBufferSize.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Function Documentation

NppStatus nppiFilterBoxBorderAdvanced_16s_C1R_Ctx ( const Npp16s pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Single channel 16-bit box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_16s_C3R_Ctx ( const Npp16s pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Three channel 16-bit box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_16s_C4R_Ctx ( const Npp16s pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Four channel 16-bit box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_16u_C1R_Ctx ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Single channel 16-bit unsigned box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_16u_C3R_Ctx ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Three channel 16-bit unsigned box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_16u_C4R_Ctx ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Four channel 16-bit unsigned box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_32f_C1R_Ctx ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Single channel 32-bit floating-point box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_32f_C3R_Ctx ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Three channel 32-bit floating-point box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_32f_C4R_Ctx ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Four channel 32-bit floating-point box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_64f_C1R_Ctx ( const Npp64f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp64f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer64,
NppStreamContext  nppStreamCtx 
)

Single channel 64-bit floating-point box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_8u_C1R_Ctx ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Single channel 8-bit unsigned box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_8u_C3R_Ctx ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Three channel 8-bit unsigned box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvanced_8u_C4R_Ctx ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

Four channel 8-bit unsigned box filter with border control.

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

NppStatus nppiFilterBoxBorderAdvancedGetDeviceBufferSize ( NppiSize  oSizeROI,
int  nChannels,
int *  hpBufferSize 
)

Returns the required size of host memory buffer needed by most nppiFilterBoxBorderAdvanced functions.

Parameters
oSizeROIRegion-of-Interest (ROI).
nChannelsThe number of channels in the image to be filtered (1, 3, or 4).
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiFilterBoxBorderAdvancedGetDeviceBufferSize_64 ( NppiSize  oSizeROI,
int  nChannels,
int *  hpBufferSize 
)

Returns the required size of host memory buffer needed by nppiFilterBoxBorderAdvanced functions with 64-bit image data.

Parameters
oSizeROIRegion-of-Interest (ROI).
nChannelsThe number of channels in the image to be filtered (1, 3, or 4).
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Copyright © 2009-2022 NVIDIA CORPORATION AND AFFILIATES