---
title: hi_isp_cr_attr
description: "定义ISP Crosstalk属性。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0366.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0366.html
indexId: 5011392892bf24c10919c10ff3576eb353332e354fa04ddf1a75c38c15e5f09b65
---
# hi_isp_cr_attr

#### 说明

定义ISP Crosstalk属性。


#### 定义

```
typedef struct {
hi_bool
enable;
hi_u8
slope;
hi_u8
sensi_slope;
hi_u16
sensi_threshold;
hi_u16
strength[HI_ISP_AUTO_ISO_NUM];
hi_u16
threshold[HI_ISP_AUTO_ISO_NUM];
hi_u16
np_offset[HI_ISP_AUTO_ISO_NUM];
} hi_isp_cr_attr;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| enable | 是否使能Crosstalk功能。 取值范围：HI\_FALSE：关闭， HI\_TRUE：使能。 |
| slope | 设置Crosstalk门限之上的处理强度。值越大，表示在门限值threshold之上整体处理强度衰减得越慢。 取值范围：[0, 14]。 |
| sensi\_slope | 设置Crosstalk敏感度值。值越大，表示在门限值sensi\_threshold之上，边沿上的处理强度衰减得越慢。 取值范围：[0, 14]。 |
| sensi\_threshold | 设置Crosstalk敏感度门限值。值越大，表示在更强的边沿上也会有绿平衡处理。 取值范围：[0, 16383]。 |
| strength[HI\_ISP\_AUTO\_ISO\_NUM] | 设置Crosstalk强度值。值越大，处理强度越大。该数组的16个值分别对应sensor在不同增益情况下的不同设置值。具体请参见表1。 取值范围：[0, 0x100]。 \#define HI\_ISP\_AUTO\_ISO\_NUM 16 |
| threshold[HI\_ISP\_AUTO\_ISO\_NUM] | 设置Crosstalk门限值。值越大，表示整体处理的强度越大。该数组的16个值分别对应sensor在不同增益情况下的不同设置值。 取值范围：[0, 16383]。 |
| np\_offset[HI\_ISP\_AUTO\_ISO\_NUM] | 设置Noise Profile值。值越大，表示抗噪能力越大。该数组的16个值分别对应sensor在不同增益情况下的不同设置值。 取值范围：[512, 16383]。 |


**表1 strength[HI_ISP_AUTO_ISO_NUM]在不同的增益情况下的设置值**

| strength | a\_gain\*d\_gain\*isp\_d\_gain (times) |
| --- | --- |
| strength [0] | 100 |
| strength [1] | 200 |
| strength [2] | 400 |
| strength [3] | 800 |
| strength [4] | 1600 |
| strength [5] | 3200 |
| strength [6] | 6400 |
| strength [7] | 12800 |
| strength [8] | 25600 |
| strength [9] | 51200 |
| strength [10] | 102400 |
| strength [11] | 204800 |
| strength [12] | 409600 |
| strength [13] | 819200 |
| strength [14] | 1638400 |
| strength [15] | 3276800 |


#### 注意事项

sensi_threshold参数变化会影响threshold参数的表现，建议先调节sensi_threshold，再调节threshold。
