acl.himpi.vpc_get_rotation_matrix

C Prototype

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

Python Function

matrix, ret = acl.himpi.vpc_get_rotation_matrix(center_point, angle, scale)

Function Usage

Obtains the rotation matrix required for affine transformation.

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Input Description

center_point: dict, dictionary of the rotation center point of the input image. For details, see hi_float_point.

angle: float, rotation angle. A positive value indicates anticlockwise rotation.

scale: float, resizing parameter. If the value of scale is greater than 1, the image is resized up. If the value of scale is less than 1, the image is resized down.

Return Value

matrix: dict, dictionary of the matrix required for affine transformation. Set matrix_type based on the actual input matrix. For details, see hi_transform_matrix.

ret: int, error code.