pub fn binary_closing( image: &Array2<bool>, structure: &Array2<bool>, iterations: usize, ) -> Result<Array2<bool>, ErrorsJSL>
Closing: dilation then erosion. Fills gaps and holes smaller than the element.