NVIDIA Performance Primitives (NPP)  Version 9.1
Functions
FilterBorder

General purpose 2D convolution filter with border control. More...

Functions

NppStatus nppiFilterBorder_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Single channel 8-bit unsigned convolution filter with border control. More...
 
NppStatus nppiFilterBorder_8u_C3R (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Three channel 8-bit unsigned convolution filter with border control. More...
 
NppStatus nppiFilterBorder_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Four channel channel 8-bit unsigned convolution filter with border control. More...
 
NppStatus nppiFilterBorder_8u_AC4R (const Npp8u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Four channel 8-bit unsigned convolution filter with border control, ignoring alpha channel. More...
 
NppStatus nppiFilterBorder_16u_C1R (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Single channel 16-bit unsigned convolution filter with border control. More...
 
NppStatus nppiFilterBorder_16u_C3R (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Three channel 16-bit unsigned convolution filter with border control. More...
 
NppStatus nppiFilterBorder_16u_C4R (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Four channel channel 16-bit unsigned convolution filter with border control. More...
 
NppStatus nppiFilterBorder_16u_AC4R (const Npp16u *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Four channel 16-bit unsigned convolution filter with border control, ignoring alpha channel. More...
 
NppStatus nppiFilterBorder_16s_C1R (const Npp16s *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Single channel 16-bit convolution filter with border control. More...
 
NppStatus nppiFilterBorder_16s_C3R (const Npp16s *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Three channel 16-bit convolution filter with border control. More...
 
NppStatus nppiFilterBorder_16s_C4R (const Npp16s *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Four channel channel 16-bit convolution filter with border control. More...
 
NppStatus nppiFilterBorder_16s_AC4R (const Npp16s *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor, NppiBorderType eBorderType)
 Four channel 16-bit convolution filter with border control, ignoring alpha channel. More...
 
NppStatus nppiFilterBorder_32f_C1R (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32f *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
 Single channel 32-bit float convolution filter with border control. More...
 
NppStatus nppiFilterBorder_32f_C2R (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32f *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
 Two channel 32-bit float convolution filter with border control. More...
 
NppStatus nppiFilterBorder_32f_C3R (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32f *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
 Three channel 32-bit float convolution filter with border control. More...
 
NppStatus nppiFilterBorder_32f_C4R (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32f *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
 Four channel 32-bit float convolution filter with border control. More...
 
NppStatus nppiFilterBorder_32f_AC4R (const Npp32f *pSrc, Npp32s nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32f *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
 Four channel 32-bit float convolution filter with border control, ignoring alpha channel. More...
 

Detailed Description

General purpose 2D convolution filter with border control.

Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. 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_REPLICATE border type operation is supported.

Common parameters for nppiFilterBorder 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).
pKernelPointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.
oKernelSizeWidth and Height of the rectangular kernel.
oAnchorX and Y offsets of the kernel origin frame of reference relative to the source pixel.
nDivisorThe factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.
eBorderTypeThe border type operation to be applied at source image border boundaries.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Function Documentation

NppStatus nppiFilterBorder_16s_AC4R ( const Npp16s pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

Four channel 16-bit convolution filter with border control, ignoring alpha channel.

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

NppStatus nppiFilterBorder_16s_C1R ( const Npp16s pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

Single channel 16-bit convolution filter with border control.

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

NppStatus nppiFilterBorder_16s_C3R ( const Npp16s pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

Three channel 16-bit convolution filter with border control.

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

NppStatus nppiFilterBorder_16s_C4R ( const Npp16s pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

Four channel channel 16-bit convolution filter with border control.

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

NppStatus nppiFilterBorder_16u_AC4R ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

Four channel 16-bit unsigned convolution filter with border control, ignoring alpha channel.

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

NppStatus nppiFilterBorder_16u_C1R ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

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

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

NppStatus nppiFilterBorder_16u_C3R ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

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

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

NppStatus nppiFilterBorder_16u_C4R ( const Npp16u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

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

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

NppStatus nppiFilterBorder_32f_AC4R ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32f pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType 
)

Four channel 32-bit float convolution filter with border control, ignoring alpha channel.

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

NppStatus nppiFilterBorder_32f_C1R ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32f pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType 
)

Single channel 32-bit float convolution filter with border control.

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

NppStatus nppiFilterBorder_32f_C2R ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32f pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType 
)

Two channel 32-bit float convolution filter with border control.

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

NppStatus nppiFilterBorder_32f_C3R ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32f pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType 
)

Three channel 32-bit float convolution filter with border control.

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

NppStatus nppiFilterBorder_32f_C4R ( const Npp32f pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32f pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
NppiBorderType  eBorderType 
)

Four channel 32-bit float convolution filter with border control.

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

NppStatus nppiFilterBorder_8u_AC4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

Four channel 8-bit unsigned convolution filter with border control, ignoring alpha channel.

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

NppStatus nppiFilterBorder_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

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

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

NppStatus nppiFilterBorder_8u_C3R ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

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

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

NppStatus nppiFilterBorder_8u_C4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor,
NppiBorderType  eBorderType 
)

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

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


Copyright © 2009-2017 NVIDIA Corporation