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

Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients with upsampling and border control. More...

Functions

NppStatus nppiGetFilterGaussPyramidLayerUpBorderDstROI (int nSrcROIWidth, int nSrcROIHeight, NppiSize *pDstSizeROIMin, NppiSize *pDstSizeROIMax, Npp32f nRate)
 Calculate destination image minimum and maximum SizeROI width and height from source image ROI width and height and upsampling rate. More...
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C1R_Ctx (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 Single channel 8-bit unsigned Gauss filter with upsampling and border control. More...
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType)
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C3R_Ctx (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 Three channel 8-bit unsigned Gauss filter with upsampling and border control. More...
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C3R (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType)
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C1R_Ctx (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 Single channel 16-bit unsigned Gauss filter with upsampling and border control. More...
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C1R (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType)
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C3R_Ctx (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 Three channel 16-bit unsigned Gauss filter with upsampling and border control. More...
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C3R (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType)
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C1R_Ctx (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 Single channel 32-bit floating-point Gauss filter upsampling and with border control. More...
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C1R (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType)
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C3R_Ctx (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 Three channel 32-bit floating-point Gauss filter with upsampling and border control. More...
 
NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C3R (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, Npp32f nRate, const int nFilterTaps, const Npp32f *pKernel, NppiBorderType eBorderType)
 

Detailed Description

Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients with upsampling and border control.

If the upsampling rate is equivalent to an integer value then unnecessary source pixels are just skipped. 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.

Currently only the NPP_BORDER_MIRROR and NPP_BORDER_REPLICATE border type operations are supported.

Common parameters for nppiFilterGaussPyramidLayerUpBorder 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).
nRateThe upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F.
nFilterTapsThe number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1.
pKernelPointer to an array of nFilterTaps kernel coefficients which sum to 1.0F.
eBorderTypeThe border type operation to be applied at source image border boundaries.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Function Documentation

NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C1R ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType 
)
NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C1R_Ctx ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

Single channel 16-bit unsigned Gauss filter with upsampling and border control.

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

NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C3R ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType 
)
NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C3R_Ctx ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

Three channel 16-bit unsigned Gauss filter with upsampling and border control.

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

NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C1R ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType 
)
NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C1R_Ctx ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

Single channel 32-bit floating-point Gauss filter upsampling and with border control.

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

NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C3R ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType 
)
NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C3R_Ctx ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

Three channel 32-bit floating-point Gauss filter with upsampling and border control.

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

NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType 
)
NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C1R_Ctx ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

Single channel 8-bit unsigned Gauss filter with upsampling and border control.

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

NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C3R ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType 
)
NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C3R_Ctx ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
Npp32f  nRate,
const int  nFilterTaps,
const Npp32f pKernel,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

Three channel 8-bit unsigned Gauss filter with upsampling and border control.

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

NppStatus nppiGetFilterGaussPyramidLayerUpBorderDstROI ( int  nSrcROIWidth,
int  nSrcROIHeight,
NppiSize pDstSizeROIMin,
NppiSize pDstSizeROIMax,
Npp32f  nRate 
)

Calculate destination image minimum and maximum SizeROI width and height from source image ROI width and height and upsampling rate.

It is highly recommended that this function be use to determine the best destination image ROI for consistent results.

Parameters
nSrcROIWidthThe desired source image ROI width, must be <= oSrcSize.width.
nSrcROIHeightThe desired source image ROI height, must be <= oSrcSize.height.
pDstSizeROIMinHost memory pointer to the minimum recommended destination image roi_specification.
pDstSizeROIMaxHost memory pointer to the maximum recommended destination image roi_specification.
nRateThe upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Copyright © 2009-2021 NVIDIA CORPORATION AND AFFILIATES