hi_mpi_vpc_get_rotation_matrix

Description

Obtains the rotation matrix required for affine transformation.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

The Ascend 310P AI Processor does not support this API in the current version.

Prototype

hi_s32 hi_mpi_vpc_get_rotation_matrix(hi_float_point center_point, hi_double angle, hi_double scale, hi_transform_matrix *matrix)

Parameters

Parameter

Input/Output

Description

center_point

Input

Rotation center point of the input image.

angle

Input

Rotation angle. A positive value indicates anticlockwise rotation.

scale

Input

Scaling parameter.

If the value of scale is greater than 1, the image is scaled up. If the value of scale is less than 1, the image is scaled down.

matrix

Output

Rotation matrix for affine transformation.

Returns