hi_isp_demosaic_manual_attr
Description
Defines the ISP demosaic attribute in manual mode.
Definition
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;
Members
Member |
Description |
|---|---|
nddm_strength |
Non-directional interpolation strength. A larger value indicates a higher proportion of non-directional interpolations. Value range: [0x0, 0xFF] |
nddm_mf_detail_strength |
Non-directional IF texture enhancement strength. A larger value indicates stronger enhancement of non-directional IF texture details and noise. Value range: [0x0, 0x7F] |
nddm_hf_detail_strength |
Non-directional HF texture enhancement strength. A larger value indicates stronger enhancement of non-directional HF texture details and noise uniformity. Value range: [0x0, 0x10] |
detail_smooth_range |
Detail smoothness range. A larger value indicates that a greater range of details are smoothed and more false details are suppressed. Value range: [0x1, 0x7] |
color_noise_f_threshold |
Color noise reduction (NR) threshold based on the high frequency of the image. A larger value indicates easier color NR in the flat region. A smaller value indicates fewer affected pixels. Value range: [0x0, 0xFF] |
color_noise_f_strength |
Color NR strength based on the high frequency of the image. A larger value indicates stronger saturation reduction. Value range: [0x0, 0x8] |
color_noise_y_threshold |
Color NR threshold based on the luminance and saturation. A larger value indicates greater impact on dark regions and highly-saturated pixels. A smaller value indicates fewer affected pixels. Value range: [0x0, 0xFF] |
color_noise_y_strength |
Color NR strength based on the luminance and saturation. A larger value indicates stronger pixel saturation reduction. Value range: [0x0, 0xFF] |
Restrictions
- In infrared mode or when the saturation of the color correction matrix (CCM) is set to 0 and grayscale images are output, you need to set color_noise_y_threshold and color_noise_y_strength to 0 to disable the color NR function.
- color_noise_y_threshold and color_noise_y_strength are affected by the color NR function. The image is not completely gray when the CCM saturation is set to 0. In addition, the image saturation is not linearly related to the CCM saturation.
- The algorithm determines whether to reduce the saturation by using a hardware-based clamping method. If color_noise_f_threshold is set to a too large value, a color transition exception may occur when there is certain luminance noise.