VPI - Vision Programming Interface

0.2.0 Release

Convolve2D

Functions

VPIStatus vpiSubmitImageConvolver (VPIStream stream, VPIImage input, VPIImage output, const float *kernelData, uint32_t kernelWidth, uint32_t kernelHeight, VPIBoundaryCond boundary)
 Runs a generic 2D convolution over an image. More...
 

Detailed Description

Runs a generic 2D convolution over the input image.

Function Documentation

◆ vpiSubmitImageConvolver()

VPIStatus vpiSubmitImageConvolver ( VPIStream  stream,
VPIImage  input,
VPIImage  output,
const float *  kernelData,
uint32_t  kernelWidth,
uint32_t  kernelHeight,
VPIBoundaryCond  boundary 
)

#include <vpi/algo/ImageConvolver.h>

Runs a generic 2D convolution 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
kernelWidth[in] kernel width
kernelHeight[in] kernel height
kernelData[in] convolution kernel
boundary[in] boundary condition
Returns
an error code on failure else VPI_SUCCESS