hi_mpi_vpc_get_rotation_matrix

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Obtains the rotation matrix required for affine transformation.

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

Resizing parameter.

If the value of scale is greater than 1, the image is upscaled. If the value of scale is less than 1, the image is downscaled.

matrix

Output

Rotation matrix for affine transformation.

Returns