pub fn optical_density_rgb(
rgb: &[u8],
out: &mut [f32],
) -> Result<(), HistoError>Expand description
Convert packed RGB8 intensities to optical density (f32, same layout).
rgb and out are interleaved RGB (length multiple of 3). Uses (I+1)/255
so pure black does not produce +∞.