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 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 works with 3D as well as 2D binary, grayscale, and other images.
- The following options can be specified:
-
CornerNeighbors True whether to include corner neighbors Padding 0 padding method to use
Examples
open allclose allScope (5)
2D Images (1)
Options (4)
Text
Wolfram Research (2008), MorphologicalEulerNumber, Wolfram Language function, https://reference.wolfram.com/language/ref/MorphologicalEulerNumber.html (updated 2014).
CMS
Wolfram Language. 2008. "MorphologicalEulerNumber." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/MorphologicalEulerNumber.html.
APA
Wolfram Language. (2008). MorphologicalEulerNumber. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MorphologicalEulerNumber.html