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

Closing

Closing
gives the morphological closing of image with respect to the structuring element ker.
Closing
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 s and s.
  • 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 features 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 features 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