VPI - Vision Programming Interface

0.4.4 Release

Gaussian Filter

Runs a generic 2D Gaussian filter over the input image. More...

Functions

VPIStatus vpiSubmitGaussianFilter (VPIStream stream, VPIBackend backend, VPIImage input, VPIImage output, uint32_t kernelSizeX, uint32_t kernelSizeY, float sigmaX, float sigmaY, VPIBoundaryCond boundary)
 Runs a 2D Gaussian filter over an image. More...
 

Detailed Description

Runs a generic 2D Gaussian filter over the input image.

Function Documentation

◆ vpiSubmitGaussianFilter()

VPIStatus vpiSubmitGaussianFilter ( VPIStream  stream,
VPIBackend  backend,
VPIImage  input,
VPIImage  output,
uint32_t  kernelSizeX,
uint32_t  kernelSizeY,
float  sigmaX,
float  sigmaY,
VPIBoundaryCond  boundary 
)

#include <vpi/algo/GaussianFilter.h>

Runs a 2D Gaussian filter over an image.

Parameters
[in]streamThe stream where the operation will be queued in.
[in]backendVPI backend that will execute the algorithm.
[in]inputInput image to be filtered.
[out]outputImage where the result will be written to.
[in]kernelSizeX,kernelSizeYGaussian kernel size in X and Y directions respectively. If 0, it'll be 2*ceil(3*sigma) rounded to the next odd size. Limited between 3 and 11, and must be odd.
[in]sigmaX,sigmaYStandard deviation of the Gaussian kernel in the X and Y directions respectively. If kernelSize==0, sigma is limited to 2.
[in]boundaryBoundary condition to be used.
Returns
an error code on failure else VPI_SUCCESS.