pub fn binary_opening(
image: &Array2<bool>,
structure: &Array2<bool>,
iterations: usize,
) -> Result<Array2<bool>, ErrorsJSL>Expand description
Opening: erosion then dilation. Removes objects (and protrusions) smaller than the element, and leaves larger ones nearly unchanged.