pub fn otsu_threshold(image: &Array2<u8>) -> Result<u8, ErrorsJSL>
Computes the Otsu threshold of an 8-bit image.