Skip to main content
. 2019 Sep 21;19(19):4092. doi: 10.3390/s19194092
Algorithm 1: Intersection object filtering algorithm
Ω: the number of objects in the database
D: the array of subscripts that need to be deleted in the database
1: ε=0;
2: for σ = 0; σ < Ω; σ++ do
3:  for τ = σ + 1; τ< Ω; τ++ do
4:   Calculate the intersection V between object φσ and φτ;
5:   ησ=V/Vσ;
6:   ητ=V/Vτ;
7:  end for
8:  ξ=argmaxτ(ησ+1,,ητ,,ηΩ);
9:  if (ησ>ηξ)(ησ>ΓV) then
10:   D(ε)=σ;
11:   ε++;
12:  elseif (ησηξ)(ηξ>ΓV) then
13:   D(ε)=ξ;
14:   ε++;
15:  end if
16: end for
17: ε=0;
18: for σ = 0; σ < Ω; σ++ do
19:  if D(ε)=σ then
20:   Delete the object φσ in the database ;
21:  end if
22: end for