Skip to main content
. 2021 Dec 23;12(1):22. doi: 10.3390/diagnostics12010022
Algorithm 3. Enhacing the IS-OS layer.
  • 1:

    function Seg2(IM,ws,enh,smooth)

  • 2:

        IM=denoise(IM,smooth)

  • 3:

        mIM=averagefilter(IM,ws)

  • 4:

        sIM=mIMIMenh

  • 5:

        bw=threshold(sIM,0);

  • 6:

        bw=complement(bw)

  • 7:

        return[bw]

  • 8:

    end function