pub fn grey_opening( image: &Array2<f64>, footprint: &Array2<bool>, mode: Mode, ) -> Result<Array2<f64>, ErrorsJSL>
Greyscale opening (erosion then dilation): removes bright features smaller than the footprint.