Skip to main content
. 2022 Oct 7;22(19):7607. doi: 10.3390/s22197607
Algorithm 1. Pseudo-Code of the Algorithm
Input: N1 is the number of pictures to be processed.
Output: H is the definition of the evaluation value.
  • 1:

    L1

  • 2:

    N3 Decomposition series

  • 3:

    forL to N1 by 1 do

  • 4:

      imimread(image path)

  • 5:

      imrgb2gray(im)

  • 6:

      imim2double(im)

  • 7:

     The image is decomposed by NSST to obtain low-frequency component f1 and high-frequency components f2k,f3k, and f4k.

  • 8:

      [V1,V2,V3,V4]get_variance(im,f1,f2k,f3k,f4k)

  • 9:

     The energy coefficients of each high-frequency sub-band are processed and added to obtain E1,E2, and E3. The low-frequency coefficient is EL.

  • 10:

      EHsE2+(1s)(E3+E4)/N

  • 11:

      HEH/EL

  • 12:

    end for