Skip to main content

binary_erosion

Function binary_erosion 

Source
pub fn binary_erosion(
    mask: &ArrayRef3<bool>,
    kernel: &ArrayRef3<bool>,
    iterations: usize,
) -> Mask
Expand description

Binary erosion of a 3D binary image.

  • mask - Binary image to be eroded.
  • kernel - Structuring element used for the erosion. Must be of odd length. The center must be true.
  • iterations - The erosion is repeated iterations times.