VPI - Vision Programming Interface

1.2 Release

Gaussian Filter

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

Functions

VPIStatus vpiSubmitGaussianFilter (VPIStream stream, uint32_t backend, VPIImage input, VPIImage output, int32_t kernelSizeX, int32_t kernelSizeY, float sigmaX, float sigmaY, VPIBorderExtension border)
 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,
uint32_t  backend,
VPIImage  input,
VPIImage  output,
int32_t  kernelSizeX,
int32_t  kernelSizeY,
float  sigmaX,
float  sigmaY,
VPIBorderExtension  border 
)

#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]backendBackend 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]borderBorder extension to be used.
Returns
an error code on failure else VPI_SUCCESS.