VPI - Vision Programming Interface

0.2.0 Release

GaussianFilter

Functions

VPIStatus vpiSubmitGaussianImageFilter (VPIStream stream, 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

◆ vpiSubmitGaussianImageFilter()

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

#include <vpi/algo/GaussianImageFilter.h>

Runs a 2D Gaussian filter over an image.

The type of the input and output images have to match the image type specified by the payload.

Parameters
stream[in] a stream handle
input[in] input image
output[in] output image
kernelSizeX[in] Gaussian kernel size in X direction, if 0, it'll be 2*ceil(3*sigmaX) rounded to the next odd size. Limited between 3 and 11, and must be odd.
kernelSizeY[in] Gaussian kernel size in Y direction, if 0, it'll be 2*ceil(3*sigmaY) rounded to the next odd size. Limited between 3 and 11, and must be odd.
sigmaX[in] standard deviation of the Gaussian kernel in the X direction. If kernelSizeX==0, sigmaX is limited to 2.
sigmaY[in] standard deviation of the Gaussian kernel in the Y direction. If kernelSizeY==0, sigmaY is limited to 2.
boundary[in] boundary condition
Returns
an error code on failure else VPI_SUCCESS