gives the morphological closing of image with respect to the structuring element ker.
gives the closing with respect to a range-r square.
applies closing to an array of data.
- Closing works with arbitrary 2D and 3D images, operating separately on each channel, as well as data arrays of any rank.
- The structuring element ker is a matrix containing 0s and 1s.
- Closing automatically pads structuring elements to have odd dimensions.
- Closing[image,r] is equivalent to Closing[image,BoxMatrix[r]].
Examplesopen allclose all
Basic Examples (3)
Closing of a binary image with a diamond-shaped structuring element:
Close with radius , equivalent to BoxMatrix[r]:
Closing removes holes that are smaller than the structuring elements: