Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Mathematical Morphology >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team