vpc_get_rotation_matrix
c函数原型 |
hi_s32 hi_mpi_vpc_get_rotation_matrix(hi_float_point center_point, hi_double angle, hi_double scale, hi_transform_matrix *matrix) |
---|---|
Python函数 |
matrix, ret = acl.himpi.vpc_get_rotation_matrix(center_point, angle, scale) |
函数功能 |
获取仿射变换需要的旋转矩阵。 Atlas 200/300/500 推理产品,不支持该接口。 Atlas 训练系列产品,不支持该接口。 Atlas 推理系列产品,不支持该接口。 |
输入说明 |
center_point:dict,输入图像的旋转中心点字典,具体请参见hi_float_point。 angle:float,旋转角度,正值表示逆时针旋转。 scale:float,缩放参数,“scale”参数值大于1表示放大图片,参数值小于1表示缩小图片。 |
返回值说明 |
matrix:dict,仿射变换需要的变换矩阵信息字典,其中“matrix_type”参数值请参考实际输入矩阵进行配置,具体参见hi_transform_matrix。 ret:int,错误码。
|
父主题: VPC图像处理接口