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... | |
Remaps the input image, effectively warping it using a user-provided mapping.
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.
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. |
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.
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: |