Skip to main content

measure_max_smoothed

Function measure_max_smoothed 

Source
pub fn measure_max_smoothed<S: PixelSource + ?Sized>(
    src: &S,
    white: DiffuseWhite,
    hlg_rendering: Option<HlgRendering>,
    method: LightLevelMethod,
) -> Result<ContentLightLevel, At<ConvertError>>
Expand description

Measure defect-tolerant ContentLightLevel using a 3-tap horizontal mirror-padded box filter on per-pixel light levels ((m[i-1] + m[i] + m[i+1]) / 3) in O(1) row memory.

Suppresses isolated stuck/hot pixels by 3× while preserving bright features spanning ≥2 horizontal pixels; MaxFALL remains the exact arithmetic mean across all pixels.