VPI - Vision Programming Interface

0.4.4 Release

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

Functions

VPIStatus vpiCreateRemap (VPIBackend backend, const VPIWarpMap *warpMap, VPIPayload *payload)
 Create a payload for Remap algorithm. More...
 
VPIStatus vpiSubmitRemap (VPIStream stream, VPIPayload payload, VPIImage input, VPIImage output, VPIInterpolationType interp, VPIBoundaryCond bcond)
 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 ( VPIBackend  backend,
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]backendVPI backend that will execute the algorithm.
[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,
VPIPayload  payload,
VPIImage  input,
VPIImage  output,
VPIInterpolationType  interp,
VPIBoundaryCond  bcond 
)

#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]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]bcondWhat value to pick if remapped coordinated falls outside input image. Valid values:
Returns
VPI_SUCCESS if algorithm was submitted successfully, or some other VPIStatus value in case of error.