hbVPWarpPerspective

typedef struct { float transformMatrix[9]; int8_t interpolation; int8_t borderType; uint8_t borderValue; int8_t isInverse; } hbVPWarpPerspectiveParam;

WarpPerspective operator parameter.

  • Member

    Member NameDescription
    transformMatrix[9]WarpPerspective transformation matrix, 3X3 matrix.
    interpolationInterpolation types in WarpPerspective, support NEAREST and LINEAR types in hbVPInterpolationType.
    borderTypeReserved parameter.
    borderValueReserved parameter.
    isInverseFlag whether transformMatrix is an inverse matrix, non-zero means inverse matrix (src = M * dst), 0 means positive matrix (dst = M * src)
int32_t hbVPWarpPerspective(hbUCPTaskHandle_t *taskHandle, hbVPImage *dstImg, hbVPImage const *srcImg, hbVPPerspectiveParam const *perspectiveParam);

The API for calling the WarpPerspective.

  • Parameter
    • [out] taskHandle Task handles are responsible for the interaction of the operator with the UCP architecture.
    • [out] dstImg The output picture, type, format and size are the same as the input picture.
    • [in] srcImg The input picture type supports U8C1 and format supports Y and nv12.
    • [in] perspectiveParam Operator parameter pointer.
  • Return Value
    • Return 0 means the API was successfully executed, otherwise the execution failed.