Skip to main content
. 2020 Sep 2;20(17):4976. doi: 10.3390/s20174976
Algorithm 1 Fast strip clustering algorithm.
  • 1:

    Initialize cluster set C1={S1}, R=1.

  • 2:

    foru=1 to U do

  • 3:

     for each Si in column u do

  • 4:

      Calculate the distance di,Cr from this strip to the last inserted strip in each cluster Cr, where

    r∈{1,...,R}.

  • 5:

      if minrdi,Cr<dth then

  • 6:

       Insert strip Si into cluster Cr.

  • 7:

      else

  • 8:

       R=R+1, create a new cluster CR.

  • 9:

       Insert strip Si into the new cluster CR.

  • 10:

      end if

  • 11:

     end for

  • 12:

    end for