|
Algorithm 1 Fast strip clustering algorithm. |
-
1:
Initialize cluster set , .
-
2:
for to U
do
-
3:
for each in column u
do
-
4:
Calculate the distance from this strip to the last inserted strip in each cluster , where
.
-
5:
if
then
-
6:
Insert strip into cluster .
-
7:
else
-
8:
, create a new cluster .
-
9:
Insert strip into the new cluster .
-
10:
end if
-
11:
end for
-
12:
end for
|