Homework#3 Color Image Segmentation by Clustering Algorithm
Yingru Tian
Color Image Segmentation by Clustering Algorithm
1. K-means Clustering (HCM)
K-means Clustering is based on classification , the idea of which is to make sure the similarity
between ones from the same family is as large as possible, while that between ones from different
family is as small as possible . Its core idea is: classify n vectors
)..., 2 ,1 (
nx
j
into c groups
),... 2 ,1(
ciG
i
=
, and calculate the clustering center for each group, to make a value function
achieve minimum value.
To
understand HCM, we should introduce the concept of m embership function , which is a
function representing th e membership between the feature vectors and the clusterings. The
classified groups are generally defined using a
nc
×
membership matrix U. If the
jth
vector
belongs to group
i
, the element
ij
u
in U is set to 1; if not, it's set to 0. Once the clustering center
is decided, we can have the following equation:
⎩
⎨
⎧
=
−≤−≠
22
,1
)1 .(0
kjij
vxvxifikevery for
Eqotherwiseij
u
On the other hand, if
ij
u
is set, then the optimum clustering center is the mean vector in
group
i
:
)2 .(
1
,
Eqx
G
v
ik
Gxk
k
i
i
∑
∈
=
Where
∑
=
=
n
j
iji
uG
1
.
Since HCM applies a rigid membership matrix (the elements of the membership matrix are
either 0 or 1), the classification results of this method are not perfect. Thus I will apply Fuzzy
C-mean method (FCM) to classified the original images.
2. Fuzzy C-mean method ( FCM )
2.1 Theory background
FCM has been improved compared with common C-mean method (HCM) . For HCM , it
applies rigid classification while FCM is not. FCM is a clustering algorithm which determines the
possibility when one point belong to a specified class, applying the degree of membership.
The membership function in FCM, which is a function representing the degree how sample x
belongs to set A, usually is written as
)(
x
A
µ
, where its argument can be any sample having the
probability belonging to set A. The value 1 means it belongs to set
A
completely. A membership
defined at space X={x} determines a fuzzy set A . For finite sample
n
xxx
......, ,,
21
, this fuzzy
set A can be expressed as:
})),({(
XxxxA
tttA
∈=
µ
According to the concept of fuzzy set , every degree of the sample points belong to its