---
title: hi_stiching_ipm_table
description: "定义畸变矫正表的结构体。即每个输出图片像素点，是怎么由2幅输入图片融合成的。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1383.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1383.html
indexId: 4ae075cd6827e5b82779066b750368ee21666468d9927922489cd698a5519a5f105
---
# hi_stiching_ipm_table

#### 说明

定义畸变矫正表的结构体。即每个输出图片像素点，是怎么由2幅输入图片融合成的。


#### 定义

```
typedef struct {
hi_u32
pic1_index;
hi_u32
pic2_index;
hi_float
weight1;
hi_float
weight2;
hi_float
offset1_x;
hi_float
offset1_y;
hi_float
offset2_x;
hi_float
offset2_y;
}hi_stiching_ipm_table;
```


#### 成员

设置输入图片编号时，如果pic1_index、pic2_index设置为同一个编号，则表示图像融合时参考的是同一张输入图片。

设置图像融合的比重时，要求weight2 + weight1 = 1。

如果weight1、weight2都设置为0 ，无论pic1_index、pic2_index配置什么，硬件都不会进行融合。

| 成员名称 | 描述 |
| --- | --- |
| pic1\_index | 对应输入图片1的编号，取值范围[0, 3]。 |
| pic2\_index | 对应输入图片2的编号，取值范围[0, 3]。 |
| weight1 | 图像融合时图片1的比重，取值范围[0, 1]。 |
| weight2 | 图像融合时图片2的比重，取值范围[0, 1]。 |
| offset1\_x | 图片1插值点x坐标。 |
| offset1\_y | 图片1插值点y坐标。 |
| offset2\_x | 图片2插值点x坐标。 |
| offset2\_y | 图片2插值点y坐标。 |
