Skip to main content

otsu_threshold_from_hist

Function otsu_threshold_from_hist 

Source
pub fn otsu_threshold_from_hist(bins: &[u32; 256]) -> u8
Expand description

Otsu threshold for a Gray8 histogram (returns 0 if image empty / single-tone).