pub fn otsu_threshold_from_hist(bins: &[u32; 256]) -> u8
Otsu threshold for a Gray8 histogram (returns 0 if image empty / single-tone).