VPI - Vision Programming Interface

1.2 Release

Rescale

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

Functions

VPIStatus vpiSubmitRescale (VPIStream stream, uint32_t backend, VPIImage input, VPIImage output, VPIInterpolationType interpolationType, VPIBorderExtension border, uint32_t flags)
 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,
uint32_t  backend,
VPIImage  input,
VPIImage  output,
VPIInterpolationType  interpolationType,
VPIBorderExtension  border,
uint32_t  flags 
)

#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]borderBorder extension to be used when sampling pixels outside the image border.
[in]flagsControl flags.
  • 0: default, negation of all other flags.
  • VPI_PRECISE : precise, but potentially slower implementation.
Returns
an error code on failure else VPI_SUCCESS.