Module morphology

Source
Expand description

Functions for computing morphological operators.

Functionsยง

close
Dilation followed by erosion.
close_mut
Dilation followed by erosion.
dilate
Sets all pixels within distance k of a foreground pixel to white.
dilate_mut
Sets all pixels within distance k of a foreground pixel to white.
erode
Sets all pixels within distance k of a background pixel to black.
erode_mut
Sets all pixels within distance k of a background pixel to black.
open
Erosion followed by dilation.
open_mut
Erosion followed by dilation.