Morphological Filtering
Morphological image processing is a collection of non-linear operations related to the shape or morphology of features in an image, such as boundaries, skeletons, etc. In any given technique, we probe an image with a small shape or template called a structuring element, which defines the region of interest or neighborhood around a pixel.
In this document we outline the following basic morphological operations:
Erosion
Dilation
Opening
Closing
White Tophat
Black Tophat
Skeletonize
Convex Hull
To get started, let’s load an image using io.imread. Note that morphology
functions only work on gray-scale or binary images, so we set as_gray=True.
import matplotlib.pyplot









