Skip to main content
. 2023 Sep 30;23(19):8185. doi: 10.3390/s23198185
Algorithm 1 Structure of proposed scheme to estimate adaptive PSF
1:  Input: Initial matrix IMG1, IMG2
2:  Output: Complete matrix FSFσ
3:  FunctionInitialize ():
4:    Sigmaval = 0.01 to end (empirically);
5:    Preallocation (SSIMval, FSIMval);
6:  END
7:  Function Main ():
8:    For val = Sigmaval (start): Sigmaval (end) do
9:         PSFval  Input sigma in Equation (2) (val);
10:       IMG1_blur = IMG1  PSFval;
11:       SSIMval (val) Calculate the Equation (5) (IMG1_blur, IMG2);
12:       FSIMval (val) Calculate the Equation (6) (IMG1_blur, IMG2);
13:    END For
14:    SSIMσ = find the index (max (SSIMval));
15:    FSIMσ = find the index (max (FSIMval));
16:    FSFσ = average (SSIMσ, FSIMσ);
17: Return FSFσ
18: END