This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Closing

Closing[image, ker]
gives the morphological closing of image with respect to the structuring element ker.
Closing[image, r]
gives the closing with respect to a range r square.
  • Closing works with binary, grayscale and other images.
  • The structuring element ker is a matrix containing 0s and 1s.
  • Closing automatically pads structuring elements to have odd dimensions.
  • If multiple image channels are present, Closing operates on each of them separately.
Remove thin dark feature by morphological closing:
Use morphological closing to remove pepper noise from a color photo:
Closing removes holes that are smaller than the structuring elements:
Remove small holes in foreground objects:
Specify an explicit structuring element:
Remove thin dark feature by morphological closing:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
 
Use morphological closing to remove pepper noise from a color photo:
In[1]:=
Click for copyable input
Out[1]=
 
Closing removes holes that are smaller than the structuring elements:
In[1]:=
Click for copyable input
Out[1]=
 
Remove small holes in foreground objects:
In[1]:=
Click for copyable input
Out[1]=
 
Specify an explicit structuring element:
In[1]:=
Click for copyable input
Out[1]=
Clean an astronomical image:
New in 7