Mathematica > Data Manipulation > Image Processing & Analysis > Mathematical Morphology > MorphologicalPerimeter >

MorphologicalPerimeter

Updated In 8 Graphic
MorphologicalPerimeter[image]
picks out the morphological perimeter of regions of foreground in image.
MorphologicalPerimeter
treats values above t as foreground.
  • MorphologicalPerimeter 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.
  • MorphologicalPerimeter works with binary, grayscale, and multichannel images, as well as real arrays of any rank.
  • 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]=
This returns only foreground pixels that are 4-connected to the background, effectively finding an 8-connected perimeter:
New in 7 | Last modified in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF