acl.himpi.vpc_get_affine_transform

C Prototype

hi_s32 hi_mpi_vpc_get_affine_transform(hi_point_pair_info *point_pair_info, hi_transform_matrix *matrix)

Python Function

matrix, ret = acl.himpi.vpc_get_affine_transform(point_pair_info)

Function Usage

Obtains the 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

point_pair_info: dict, dictionary that contains three pairs of pixel coordinates in the input and output images. Each pair contains pixel coordinates of an input image and an output image, respectively. For details, see hi_point_pair_info.

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.