Skip to main content
. 2022 Dec 6;22(23):9539. doi: 10.3390/s22239539
Algorithm 2: Adversarial Process of Parameter Agent Network (PAN) and Recognizer
Input: input image P, selected region A
Output: optimized PAN
 1: sample transformation state s1
 from predicted distribution:
s1PAN(A)
 2: generate random transformation states from s2 to state s11, based on state s1
 3: all states including s1s11 contain anchor points
 4: obtain augmented images from x1 and x11 based on states s1 to state s11:
 5: The following i all represent 1 to 11
 6: xiPT(P,si)
 7: identify images:
RegRecognizer(P)
RegiRecognizer(xi)
 8: if  ID[Regi]=ID[Reg] then
 9:    test distance Δ between Regi and Reg
10:    if maxΔ(Regi,Reg) then
11:      PAN = update PAN with si
12:    end if
13: else
14:   PAN = PAN
15: end if