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

MorphologicalPerimeter

MorphologicalPerimeter[image]
picks out the morphological perimeter of regions of foreground in image.
MorphologicalPerimeter[image, t]
treats values above t as foreground.
  • MorphologicalPerimeter[image, ...] yields a binary image in which pixels considered to be on the morphological perimeter have value 1 and others have value 0.
  • The morphological perimeter is defined to consist of foreground pixels that are directly adjacent to the background.
  • The option setting CornerNeighbors->False treats only the four pixels in the coordinate directions as adjacent.
Find the boundary of foreground objects:
Specify an intensity threshold:
Find the boundary of foreground objects:
In[1]:=
Click for copyable input
Out[1]=
 
Specify an intensity threshold:
In[1]:=
Click for copyable input
Out[1]=
Boundary of 4-connected foreground objects:
New in 7