Skip to main content
. 2023 Mar 20;23(6):3292. doi: 10.3390/s23063292
Algorithm 2 Neighborhood recognition of feature points
Input: pi,pi PF;
Output: pi‘s mollification neighborhood N¯i;
1: for i=0 to PF.size() do
2:   Seek S˜ nearest neighborhood N˜;
3:   View every point p1,p2,...pS˜ as a single cluster {N˜1,N˜2,...,N˜S˜};
   //see Section 5.1 and Figure 4
4:   for j=1 to S˜ do
5:     Compute similarity: Dave(N˜p,N˜q),   pq based on Equation (4);
6:     T=min{Dave(N˜p,N˜q)};
7:     if (T<δ) then
8:      Find two cluster N˜m,   N˜n with minimum similarity;
9:      Merge (N˜m,N˜n);
10:     else
11:      Obtain the ultimate cluster result: {N¯1,N¯2,...,N¯K};
12:      break;
13:   end For
14:   {ε1,ε2,...,εS}=computeResidual (pi,{N¯1,N¯2,...,N¯S}); //see Section 5.2
15:   N¯i=min{ε1,ε2,...,εS}corresponding to N¯c, c{1,2,...,S};
16: end for
17: return N¯i with S¯i neighbors;