Euler number of binary image

`eul = bweuler(BW,n)`

example

returns
the Euler number for the binary image `eul`

= bweuler(`BW`

,`n`

)`BW`

. The Euler
number is the total number of objects in the image minus the total
number of holes in those objects. `n`

specifies
the connectivity. Objects are connected sets of `on`

pixels,
that is, pixels having a value of 1.

This function supports code generation (see Tips).

[1] Horn, Berthold P. K., *Robot
Vision,* New York, McGraw-Hill, 1986, pp. 73-77.

[2] Pratt, William K., *Digital
Image Processing*, New York, John Wiley & Sons, Inc.,
1991, p. 633.

Was this topic helpful?