pub fn binary_opening<S>(
    mask: &ArrayBase<S, Ix3>,
    kernel: &Kernel3d<'_>,
    iterations: usize
) -> Maskwhere
    S: Data<Elem = bool>,
Expand description

Binary opening of a 3D binary image.

The opening of an input image by a structuring element is the dilation of the erosion of the image by the structuring element.

  • mask - Binary image to be opened.
  • kernel - Structuring element used for the opening.
  • iterations - The erosion step of the opening, then the dilation step are each repeated iterations times.