VPI - Vision Programming Interface

0.4.4 Release

Rescale

Changes the dimensions of the input image while stretching/squeezing it. More...

Functions

VPIStatus vpiSubmitRescale (VPIStream stream, VPIBackend backend, VPIImage input, VPIImage output, VPIInterpolationType interpolationType, VPIBoundaryCond boundary)
 Changes the size and scale of a 2D image. More...
 

Detailed Description

Changes the dimensions of the input image while stretching/squeezing it.

Function Documentation

◆ vpiSubmitRescale()

VPIStatus vpiSubmitRescale ( VPIStream  stream,
VPIBackend  backend,
VPIImage  input,
VPIImage  output,
VPIInterpolationType  interpolationType,
VPIBoundaryCond  boundary 
)

#include <vpi/algo/Rescale.h>

Changes the size and scale of a 2D 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 rescaled.
[out]outputOutput image with the desired resulting dimensions.
[in]interpolationTypeInterpolation method to be used.
[in]boundaryBoundary condition to be used when sampling pixels outside the image boundary.
Returns
an error code on failure else VPI_SUCCESS.