---
title: hi_stiching_ipm_table
description: 定义拼接表的结构体。即每个输出图片像素点，是怎么由2幅输入图片融合成的。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/dvpp/aclcppdevg_03_1072.html"
---

# 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坐标。 |
