Professional Documents
Culture Documents
Euler Number Computation: by Kishore Kulkarni
Euler Number Computation: by Kishore Kulkarni
By
Kishore Kulkarni
(Under the Guidance of Dr. Longin Jan Latecki)
1
Outline
Connected Components & Holes
Euler Number & its significance
For Binary Images
For Graphs
Analogy between Euler number for graphs & binary
images
Concavities and Convexities
Relation between Euler Number, Concavities & Convexities
Euler Number computation for test images.
Justification of correctness of algorithm used for computing
Euler Number
Euler Number
The Euler Number (also called as the connectivity
factor) is defined as the difference between
connected components and holes.
Formally, Euler Number is given by
ncomp
E = ncomp - nihole
where
i=1
Euler Number
E = 11 4 = 7
E = 5 11 = -6
N2-(X, 90) = 2
11
12
0 1
1 1
13
15
16
17
18
Proof - Contd.
Euler number for component is given by
Ei = 1 nihole
where nihole is the number of holes in component i
Consider
ncomp ncomp
Ei = (1 - nihole)
i=1
i=1
ncomp
= ncomp - nihole
i=1
= Eimage
22
Proof - Contd.
0 0
0 1
23
Proof - Contd.
If it is a background pixel then we have an extra concavity
count. Hence we need to prove that there exists an
equivalent convexity to balanced the same. Now if it a
background pixel, then the two edges in the 2*2 mask
(referring to graphical representation of a binary image)
should not form a cycle with any of the previously visited
black pixels (otherwise we get a hole). If0 this
is the case
0
there should be a pixel with the mask [ 0 1 ]. Hence we can
prove that number of concavities exceeding number of holes
and convexities exceeding 1 are equal by similar argument.
Thus they cancel out. Hence the result.
24