|
Algorithm 1 Labeling using Fuzzy C-means |
|
Input: FM1/FM2
Output: Labels
-
1:
Initialize cluster centers , , ...,
-
2:
fordo
-
3:
Repeat until convergence: {
-
4:
Calculate the membership values
-
5:
-
6:
for do
-
7:
-
8:
end for
-
9:
}
-
10:
-
11:
end for
-
12:
fordo
-
13:
if close to origin then
-
14:
-
15:
else
-
16:
-
17:
end if
-
18:
end for
|