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 > MorphologicalEulerNumber >

MorphologicalEulerNumber

Updated In 8 Graphic
MorphologicalEulerNumber[image]
computes the morphological Euler number of regions in a binary image.
MorphologicalEulerNumber
treats values above t as foreground.
  • MorphologicalEulerNumber[image] by default gives the total number of connected white regions in image, minus the number of black holes that occur inside those regions.
  • The option setting CornerNeighbors->False treats only the four pixels in the coordinate directions as adjacent.
Count the number of white objects minus the number of holes:
Count the number of bright spots, specifying an explicit thresholding value:
Count the number of white objects minus the number of holes:
In[1]:=
Click for copyable input
Out[1]=
 
Count the number of bright spots, specifying an explicit thresholding value:
In[1]:=
Click for copyable input
Out[1]=
By default, all eight neighbors around a given pixel are treated as being neighbors:
Treat only the four non-corner pixels as neighbors:
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