hi_mpi_vpc_get_rotation_matrix

函数功能

获取仿射变换需要的旋转矩阵。

Atlas 200/300/500 推理产品,不支持该接口。

Atlas 训练系列产品,不支持该接口。

Atlas 推理系列产品(Ascend 310P处理器),不支持该接口。

函数原型

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

参数说明

参数名

输入/输出

说明

center_point

输入

输入图像的旋转中心点。

angle

输入

旋转角度,正值表示逆时针旋转。

scale

输入

缩放参数。

scale参数值大于1表示放大图片,参数值小于1表示缩小图片。

matrix

输出

仿射变换的旋转矩阵。

返回值说明