pub fn measure_histogram<S: PixelSource + ?Sized>(
src: &S,
white: DiffuseWhite,
hlg_rendering: Option<HlgRendering>,
method: LightLevelMethod,
) -> Result<LightLevelHistogram, At<ConvertError>>Expand description
Measure a full LightLevelHistogram over any PixelSource in O(1) row scratch memory.
For LightLevelMethod::MaxRgb, RGB inputs are measured in their native RGB primaries
(CTA-861.3 / ITU-T H.274 MaxCLL definition); for LightLevelMethod::LuminanceBt2020,
pixels are linearized into BT.2020 to compute CIE Y luminance.