---
title: hi_isp_cmos_demosaic
description: "定义demosaic的CMOS参数。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0112.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0112.html
indexId: af1829d019658b22e6cce4d2b91a6edf8ed55addacc4809105a835f4ec4b8c4165
---
# hi_isp_cmos_demosaic

#### 说明

定义demosaic的CMOS参数。


#### 定义

```
typedef struct {
hi_bool
enable;
hi_u8
non_dir_str[HI_ISP_AUTO_ISO_NUM];
hi_u8
non_dir_mf_detail_ehc_str[HI_ISP_AUTO_ISO_NUM];
hi_u8
non_dir_hf_detail_ehc_str[HI_ISP_AUTO_ISO_NUM];
hi_u8
detail_smooth_range[HI_ISP_AUTO_ISO_NUM];
} hi_isp_cmos_demosaic;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| enable | Demosaic模块使能。取值范围：[0, 1]。 0：禁止； 1：使能。 |
| non\_dir\_str[HI\_ISP\_AUTO\_ISO\_NUM] | 无方向插值强度，值越大，无方向插值所占比重越大。 取值范围：[0x0,0xFF]。 \#define HI\_ISP\_AUTO\_ISO\_NUM 16 |
| non\_dir\_mf\_detail\_ehc\_str | 无方向中频纹理增强强度，值越大，无方向中频纹理细节增强越强，对噪声同样有增强。 取值范围：[0x0, 0x7f]。 |
| non\_dir\_hf\_detail\_ehc\_str | 无方向高频纹理增强强度，值越大，无方向高频纹理细节增强越强，对噪声均匀性有提升。 取值范围：[0x0,0x10]。 |
| detail\_smooth\_range | 细节平滑范围，值越大，做平滑处理的细节范围越大，能够抑制更多伪细节。 取值范围：[0x1, 0x7]。 |
