---
title: hi_mpi_vpc_get_affine_transform
description: "| 产品 | 是否支持 |"
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/dvpp/aclcppdevg_03_0678.html"
---

# hi_mpi_vpc_get_affine_transform

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | ☓ |
| Atlas 训练系列产品 | ☓ |


#### 功能说明

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


#### 函数原型

```
hi_s32
hi_mpi_vpc_get_affine_transform(
hi_point_pair_info
*point_pair_info,
hi_transform_matrix
*matrix)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| point\_pair\_info | 输入 | 三对输入、输出图片中的像素点坐标信息，每对中分别包含一个输入图片像素点坐标、一个输出图片像素点坐标。 |
| matrix | 输出 | 仿射变换需要的变换矩阵。 |


#### 返回值说明

- 0：成功
- 非0：失败，  VPC图像处理返回码
