binary_closing
-
skimage.morphology.binary_closing(image, selem=None, *args, **kwargs)
[source] -
Return fast binary morphological closing of an image.
This function returns the same result as greyscale closing but performs faster for binary images.
The morphological closing on an image is defined as a dilation followed by an erosion. Closing can remove small dark spots (i.e. “pepper”) and connect small bright cracks. This tends to “close” up (dark) gaps between (bright) features.
Parameters: image : ndarray
Binary input image.
selem : ndarray, optional
The neighborhood expressed as a 2-D array of 1’s and 0’s. If None, use cross-shaped structuring element (connectivity=1).
out : ndarray of bool, optional
The array to store the result of the morphology. If None, is passed, a new array will be allocated.
Returns: closing : ndarray of bool
The result of the morphological closing.
Please login to continue.