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

Examples

open allclose all

Basic Examples  (1)

Count the number of white objects minus the number of holes:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

Options  (4)

Properties & Relations  (1)

See Also

MorphologicalComponents  MorphologicalPerimeter

Introduced in 2008
(7.0)
| Updated in 2014
(10.0)