Algorithm 2. Filtering based on NKNN |
Input:
|
Output:
|
1:
|
2: for
do
|
3:
|
4:
|
5: end for
|
6: for
do
|
7:
|
8:
|
9:
|
10:
|
11:
|
12: end for
|
13: for
do
|
14: for
do |
15:
|
16: if
then
|
17:
|
18:
|
19: end if
|
20: end for
|
21: if
then
|
22:
|
23: end if
|
24: end for
|
25: for
do
|
26:
|
27:
|
28: end for
|
29: if
then
|
30:
|
31: else
|
32:
|
33: end if
|