Skip to main content

binary_dilation

Function binary_dilation 

Source
pub fn binary_dilation(
    image: &Array2<bool>,
    structure: &Array2<bool>,
    iterations: usize,
) -> Result<Array2<bool>, ErrorsJSL>
Expand description

Binary dilation: a pixel turns on if the reflected structure, centred on it, touches the foreground (SciPy’s binary_dilation).