Expand description

Functions for computing morphological operators.

Functions

Dilation followed by erosion.

Dilation followed by erosion.

Sets all pixels within distance k of a foreground pixel to white.

Sets all pixels within distance k of a foreground pixel to white.

Sets all pixels within distance k of a background pixel to black.

Sets all pixels within distance k of a background pixel to black.

Erosion followed by dilation.

Erosion followed by dilation.