VPI - Vision Programming Interface

0.3.7 Release

Image Resample

Functions

VPIStatus vpiSubmitImageResampler (VPIStream stream, VPIImage input, VPIImage output, VPIInterpolationType interpolationType, VPIBoundaryCond boundary)
 Runs a generic resampling algorithm on a 2D image. More...
 

Detailed Description

Resamples the input image based on the output dimensions.

Function Documentation

◆ vpiSubmitImageResampler()

VPIStatus vpiSubmitImageResampler ( VPIStream  stream,
VPIImage  input,
VPIImage  output,
VPIInterpolationType  interpolationType,
VPIBoundaryCond  boundary 
)

#include <vpi/algo/ImageResampler.h>

Runs a generic resampling algorithm on a 2D 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
interpolationType[in] interpolation type bicubic/bilinear
boundary[in] boundary condition zero/clamp
output[out] output image
Returns
an error code on failure else VPI_SUCCESS