---
title: hi_isp_demosaic_manual_attr
description: "定义ISP DEMOSAIC手动属性。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0344.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0344.html
indexId: a50851fc5b7a8ce7a46954c00e1b4e192bb99541bfeddfde0ef26cab20234a6365
---
# hi_isp_demosaic_manual_attr

#### 说明

定义ISP DEMOSAIC手动属性。


#### 定义

```
typedef struct {
hi_u8
nddm_strength;
hi_u8
nddm_mf_detail_strength;
hi_u8
nddm_hf_detail_strength;
hi_u8
detail_smooth_range;
hi_u8
color_noise_f_threshold;
hi_u8
color_noise_f_strength;
hi_u8
color_noise_y_threshold;
hi_u8
color_noise_y_strength;
} hi_isp_demosaic_manual_attr;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| nddm\_strength | 无方向插值强度，值越大，无方向插值所占比重越大。 取值范围：[0x0,0xFF]。 |
| nddm\_mf\_detail\_strength | 无方向中频纹理增强强度，值越大，无方向中频纹理细节增强越强，对噪声同样有增强。 取值范围：[0x0, 0x7F]。 |
| nddm\_hf\_detail\_strength | 无方向高频纹理增强强度，值越大，无方向高频纹理细节增强越强，对噪声均匀性有提升。 取值范围：[0x0,0x10]。 |
| detail\_smooth\_range | 细节平滑范围，值越大，做平滑处理的细节范围越大，能够抑制更多伪细节。 取值范围：[0x1, 0x7]。 |
| color\_noise\_f\_threshold | 根据画面高频程度降低颜色噪声，值越大，则越容易在平坦区域进行去色噪功能。值越小，则影响的像素越少。 取值范围为[0x0, 0xFF]。 |
| color\_noise\_f\_strength | 根据画面高频程度降低颜色噪声的强度，值越大，则降饱和度强度越高。 取值范围为[0x0, 0x8]。 |
| color\_noise\_y\_threshold | 根据亮度和饱和度降低颜色噪声，值越大，对暗处影响越大，对饱和度高的像素影响越大。值越小，影响的像素越少。 取值范围：[0x0, 0xFF]。 |
| color\_noise\_y\_strength | 根据亮度和饱和度降低颜色噪声的强度，值越大，对影响的像素降饱和度越多，值越小，降饱和度程度越少。 取值范围：[0x0, 0xFF]。 |


#### 注意事项

- 在红外模式下，或者在CCM饱和度设定成0，输出灰度图的情况下，需要将color_noise_y_threshold和color_noise_y_strength参数都设定成 0，关闭降低颜色噪声的功能。
- color_noise_y_threshold和color_noise_y_strength参数受降低颜色噪声的功能影响会导致CCM饱和度设定成0时图像不会完全灰色，调节CCM饱和度时，图像饱和度不是线性变化。
- color_noise_f_threshold由于算法采取的是硬钳位方法进行判断是否需要降低饱和度，因此如果这个参数设置的过大，在有一定亮噪的情况下，会出现颜色过渡异常的情况。
