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