VPI - Vision Programming Interface

0.3.7 Release

Image Remap

Functions

VPIStatus vpiCreateImageRemap (VPIStream stream, const VPIWarpMap *warpMap, VPIPayload *payload)
 Create a payload for Image Remap algorithm. More...
 
VPIStatus vpiSubmitImageRemap (VPIPayload payload, VPIImage input, VPIImage output, VPIInterpolationType interp, VPIBoundaryCond bcond)
 Submits the Image 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

◆ vpiCreateImageRemap()

VPIStatus vpiCreateImageRemap ( VPIStream  stream,
const VPIWarpMap warpMap,
VPIPayload payload 
)

#include <vpi/algo/ImageRemap.h>

Create a payload for Image Remap algorithm.

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

Parameters
stream[in] VPI stream the algorithm will be submitted to. Currently only PVA stream is supported.
warpMap[in] Mapping of output into input. It must define a grid with the same size as output image.
payload[out] Pointer to a payload handle with the create payload.

◆ vpiSubmitImageRemap()

VPIStatus vpiSubmitImageRemap ( VPIPayload  payload,
VPIImage  input,
VPIImage  output,
VPIInterpolationType  interp,
VPIBoundaryCond  bcond 
)

#include <vpi/algo/ImageRemap.h>

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

Parameters
payload[in] Payload created by vpiCreateImageRemap.
input[in] Image to be remapped. In a lens distortion correction context, this would correspond to the distorted image. Valid image types:
output[out] Stores 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.
interp[in] Interpolation method to be used. Valid values:
bcond[in] What value to pick if remapped coordinated falls outside input image. Valid values: