Skip to main content
. 2021 Feb 3;21(4):1033. doi: 10.3390/s21041033
Algorithm 3 Non-Maximum Suppression
Input:
    Bounding boxesB={b1,…,b200} ,  bi∈R4; Nt
    Scores=s1,…,s200, si∈R1;
Output:
    Bounding boxes D,score S;
1: function NMSB,S,Nt
2: D←{ }
3: while  B # empty  do
4:    m←argmaxS
5:    M←bm:
6:    D←D∪M:
7:    B←B−M:
8:    for bi in B  do
9:        if IoUM,bi>Nt then
10:            B←B−bi:
11:            S←S−Si:
12:        end if
13:    end for
14: end while
15: return D,S
16: end function