| 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 |