VPI - Vision Programming Interface

1.0 Release

Remaps the input image, effectively warping it using a user-provided mapping. More...

Functions

VPIStatus vpiCreateRemap (uint32_t backends, const VPIWarpMap *warpMap, VPIPayload *payload)
 Create a payload for Remap algorithm. More...
 
VPIStatus vpiSubmitRemap (VPIStream stream, uint32_t backend, VPIPayload payload, VPIImage input, VPIImage output, VPIInterpolationType interp, VPIBorderExtension border, uint32_t flags)
 Submits the Remap operation to the stream associated with the payload. More...
 

Detailed Description

Remaps the input image, effectively warping it using a user-provided mapping.

Function Documentation

◆ vpiCreateRemap()

VPIStatus vpiCreateRemap ( uint32_t  backends,
const VPIWarpMap warpMap,
VPIPayload payload 
)

#include <vpi/algo/Remap.h>

Create a payload for Remap algorithm.

This function allocates all resources needed by the Remap algorithm and ties the returned payload to the given stream.

Parameters
[in]backendsVPI backends that are eligible to execute the algorithm. Currently only one backend is accepted.
[in]warpMapMapping of output into input. It must define a grid with the same size as output image.
[out]payloadPointer to a payload handle with the create payload.
Returns
VPI_SUCCESS if payload was created successfully, or some other VPIStatus value in case of error.

◆ vpiSubmitRemap()

VPIStatus vpiSubmitRemap ( VPIStream  stream,
uint32_t  backend,
VPIPayload  payload,
VPIImage  input,
VPIImage  output,
VPIInterpolationType  interp,
VPIBorderExtension  border,
uint32_t  flags 
)

#include <vpi/algo/Remap.h>

Submits the Remap operation to the stream associated with the payload.

Parameters
[in]streamThe stream where the operation will be queued in.
[in]backendBackend that will execute the algorithm. Must be one of the backends specified during payload creation. If 0, VPI will select one of the eligible backends from the payload that accepts the given parameters, usually the fastest one.
[in]payloadPayload created by vpiCreateRemap.
[in]inputImage to be remapped. In a lens distortion correction context, this would correspond to the distorted image. Valid image types:
[out]outputStores the remapped image. In a lens distortion correction context, this would correspond to the corrected (distortion-free) image. Must have the same type as input.
[in]interpInterpolation method to be used. Valid values:
[in]borderWhat value to pick if remapped coordinated falls outside input image. Valid values:
[in]flagsControl flags.
  • 0: default, negation of all other flags.
  • VPI_PRECISE : precise, but potentially slower implementation.
Returns
VPI_SUCCESS if algorithm was submitted successfully, or some other VPIStatus value in case of error.