Perspective Warp. More...
Macros | |
#define | VPI_WARP_INVERSE (1u) |
Flag to inform that the matrix used in warp operation is already inverted. More... | |
Typedefs | |
typedef float | VPIPerspectiveTransform[3][3] |
Represents a 2D perspective transform. More... | |
Functions | |
VPIStatus | vpiCreatePerspectiveWarp (VPIBackend backend, VPIPayload *payload) |
Creates a payload for Perspective Warp algorithm. More... | |
VPIStatus | vpiSubmitPerspectiveWarp (VPIStream stream, VPIPayload payload, VPIImage input, const VPIPerspectiveTransform xform, VPIImage output, VPIInterpolationType interp, VPIBoundaryCond bcond, uint32_t flags) |
Submits the Perspective Warp operation to the stream associated with the payload. More... | |
Perspective Warp.
#define VPI_WARP_INVERSE (1u) |
#include <vpi/algo/PerspectiveWarp.h>
Flag to inform that the matrix used in warp operation is already inverted.
If user has the transform matrix already inverted, setting this flag allows the warp operation to use it directly instead of inverting it itself prior processing. This is particularly useful if matrix inversion would result in large numerical errors, such as when its determinant is close to zero.
Definition at line 90 of file PerspectiveWarp.h.
typedef float VPIPerspectiveTransform[3][3] |
#include <vpi/Types.h>
Represents a 2D perspective transform.
[vx] [a11 a12 tx] [ux] [vy] = [a21 a22 ty] [uy] [vw] [ p0 p1 p] [ 1] u'x = vx/vw u'y = vy/vw
In these equations,
VPIStatus vpiCreatePerspectiveWarp | ( | VPIBackend | backend, |
VPIPayload * | payload | ||
) |
#include <vpi/algo/PerspectiveWarp.h>
Creates a payload for Perspective Warp algorithm.
This function allocates all resources needed by the algorithm and ties the returned payload to the given stream.
[in] | backend | VPI backend which the algorithm will be used. |
[out] | payload | Pointer to a payload handle with the created payload. |
VPIStatus vpiSubmitPerspectiveWarp | ( | VPIStream | stream, |
VPIPayload | payload, | ||
VPIImage | input, | ||
const VPIPerspectiveTransform | xform, | ||
VPIImage | output, | ||
VPIInterpolationType | interp, | ||
VPIBoundaryCond | bcond, | ||
uint32_t | flags | ||
) |
#include <vpi/algo/PerspectiveWarp.h>
Submits the Perspective Warp operation to the stream associated with the payload.
[in] | stream | The stream where the operation will be queued in. |
[in] | payload | Payload created by vpiCreatePerspectiveWarp. |
[in] | input | Input image to be warped. |
[in] | xform | Transform to be applied. |
[out] | output | Output image where warped image is written to. |
[in] | interp | Interpolation mode to be used. Valid values: |
[in] | bcond | Boundary condition to use for samples that fall outsize input's bounds. Value values: |
[in] | flags | Flags to modify algorithm behavior. Valid values:
|