|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
MorphologicalEulerNumber
MorphologicalEulerNumber[image]
computes the morphological Euler number of regions in a binary image.
MorphologicalEulerNumber[image, t]
treats values above t as foreground.
Details and OptionsDetails and Options
- 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.
- MorphologicalEulerNumber[image] is equivalent to MorphologicalEulerNumber[image, 0].
- MorphologicalEulerNumber by default treats all eight pixels surrounding a given pixel as adjacent.
- The option setting CornerNeighbors->False treats only the four pixels in the coordinate directions as adjacent.
- MorphologicalEulerNumber works with binary, grayscale, and other images.
- MorphologicalEulerNumber takes a Padding option. The default setting is Padding->0, corresponding to a black background.
New in 7 | Last modified in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


