View full-text article in PMC Sensors (Basel). 2016 May 28;16(6):783. doi: 10.3390/s16060783 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2016 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC-BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice 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: SSoID←1nc[i,j]−c[i+dx,j+dy]2 11: σS=μs−SSoID 12: Findλ1andλ2fromμs,σS 13: end for 14: end for 15: end for 16: adjusttheintensityofeachpixel 17: end procedure