NVIDIA 2D Image And Signal Performance Primitives (NPP)
Version 22.3.0.*
|
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... | |
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. *
pSrc | Source-Image Pointer. |
nSrcStep | Source-Image Line Step. |
oSrcSize | Source image width and height in pixels relative to pSrc. |
oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oSizeROI | Region-of-Interest (ROI). |
oMaskSize | Width and Height of the neighborhood region for the local Avg operation. |
oAnchor | X and Y offsets of the kernel origin frame of reference relative to the source pixel. |
eBorderType | The border type operation to be applied at source image border boundaries. |
pBuffer | Pointer to device memory buffer of size hpBufferSize bytes returned by calling nppiFilterBoxBorderAdvancedGetDeviceBufferSize. |
nppStreamCtx | Application Managed Stream Context. |
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.
oSizeROI | Region-of-Interest (ROI). |
nChannels | The number of channels in the image to be filtered (1, 3, or 4). |
hpBufferSize | Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer. |
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.
oSizeROI | Region-of-Interest (ROI). |
nChannels | The number of channels in the image to be filtered (1, 3, or 4). |
hpBufferSize | Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer. |