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... | |
Remaps the input image, effectively warping it using a user-provided mapping.
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.
[in] | backend | VPI backend that will execute the algorithm. |
[in] | warpMap | Mapping of output into input. It must define a grid with the same size as output image. |
[out] | payload | Pointer to a payload handle with the create payload. |
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.
[in] | stream | The stream where the operation will be queued in. |
[in] | payload | Payload created by vpiCreateRemap. |
[in] | input | Image to be remapped. In a lens distortion correction context, this would correspond to the distorted image. Valid image types: |
[out] | output | 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. |
[in] | interp | Interpolation method to be used. Valid values: |
[in] | bcond | What value to pick if remapped coordinated falls outside input image. Valid values: |