vpc_get_affine_transform

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

x

Atlas inference products

x

Atlas 200I/500 A2 inference products

√

Description

Obtains the matrix required for affine transformation.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_vpc_get_affine_transform(hi_point_pair_info *point_pair_info, hi_transform_matrix *matrix)
    
  • Python Function
    1
    matrix, ret = acl.himpi.vpc_get_affine_transform(point_pair_info)
    

Parameters

Parameter

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

Return Value

Description

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.
  • 0 indicates success.
  • Other values indicate failure. For details, see VPC Return Codes.