Skip to main content
. 2016 May 28;16(6):783. doi: 10.3390/s16060783
Algorithm 1 Noise reduction algorithm
  1: procedure Noise Reduction Algorithm
  2:     n#ofpixels
  3:     initializeμSandσS
  4:     initializeSSoID(Sumofsquareofintensitydifference)
  5:     defindtheneighboringareadx,dy
  6:     for each i#pixeloftheverticaldirection do
  7:         for each j#pixelofthehorizontaldirection do
  8:            for each pixelintheneighboringarea do
  9:                μSμS+c[i,j]c[i+dx,j+dy]n
  10:                SSoID1nc[i,j]c[i+dx,j+dy]2
  11:                σS=μsSSoID
  12:                Findλ1andλ2fromμs,σS
  13:            end for
  14:         end for
  15:     end for
  16:     adjusttheintensityofeachpixel
  17: end procedure