pub fn otsu(image: &Array2<u8>) -> Result<OtsuResult, ErrorsJSL>
Thresholds an 8-bit image with Otsu’s method.