<<

ImageRemoval– TheNewApproach AnnaFabijańska,DominikSankowski Abstract –This paper is about reducing noise in digital rapidly.Moreoverincaseofrealtimeprocessingallaveraged images. Traditional methods of random noise removal are imageshavetobestoredinimageprocessingsystemmemory. discussed. New algorithm is proposed. In the following part of this paper the new approach to Results of introduced method are presented and compared imagenoiseremovalispresented. with results achieved with traditional approach. Keywords – Processing, SNR, Random II. SIGNAL TONOISE RATIO Noise, Noise Reduction, Image Enhancement. Each digital image has two main components: a stable signalandarandomnoise[8][9]inaccordancewithequation: I. INTRODUCTION L'(x, y) = L(x, y) + N(x, y) (1) Noisecanseriouslyaffectqualityofdigitalimages.There where: are numerous potential sources of noise. However, three L' digitalimage(noisyimage); primary components of noise in CCD imaging systems [14] are: L signalcomponent(signalonlyimage); • photonnoise N noisecomponent; isfundamentalpropertyofthequantumnatureofand x, y is irreducible due to poissonian nature of counting coordinates. photons; Incaseofmultipleexposuresthesignalcomponentofthe • readoutnoise imageremainsthesamebutthenoisecomponentdiffersfrom is generated by the onchip output ; can not be oneimageframetoanother. completelyremovedfromimage; Inordertoquantifynoiselevelsignaltonoiseratio(SNR) is used. The higher SNR value the better quality of the • darknoise analyzed image. Signaltonoise ratio can be defined as is thermally generated charge that can be measured and follows: subtractedformtheoutputimage. σ 2 (L) Photon noise and readout noise in connection with SNR(L, L )' = 10log [dB] (2) erroneous signal fluctuations (due to CCD camera electronic 10 MSE(L, L )' componentsproperties)canbeconsideredasarandomnoise where: becauseitvariesfromimagetoimage.Randomnoisepresence 2 can seriouslydegradethespatialresolutionofdigitalimages σ imagevariance; and can be a problem that often arises in case of low light MSE squareerrordefinedbyequation3. images. 1 Methods of random noise removal are to reconstruct the MSE(L, L )' = ∑ d 2 ()L(x, y), L (' x, y) (3) original (signalonly) image. They can be divided into two K K main groups: image filtration and image averaging [57]. In Symbolsusedinequation3denotesrespectively: thefirstmethodimageiseitherconvolvedwithGaussianmask numberofintheimage; or nonlinearly filtered (for example with filter). K However, filtration affects with blurred appearance of an d thedistancebetweensignalonlyimage image and in result compromises the level of details. andnoisyimage. Averaging the second method of random noise removal is In the following part of this paper signaltonoise ratio is said to reduce noise level without compromising details. used to quantify and compare qualities of different noise Howeveritinvolvesatleastseveralimagesofobservedscene removalalgorithms. andinconsequencecannotbeusedwhenviewfieldchanges III.ITERATIVENOISE REMOVAL ALGORITHM Anna Fabijańska Technical University of Lodz, Computer Noiseindigitalimagesisintensityfluctuations.Itmanifests Engineering Department, Stefanowskiego Str., 18/22, Lodz, itselfassinglepixelsmuchbrighterormuchdarkerthanthe 90924,POLAND,Email: [email protected] neighborhood. It that erroneous pixels can be DominikSankowskiTechnicalUniversityofLodzComputer considered aslocalextremesofimageintensity.Particularly, Engineering Department, Stefanowskiego Str., 18/22, Lodz, pixels much brighter than their neighbors are local intensity 90924,POLAND,Email: [email protected] maxima and pixels much darker than their surrounding are

CADSM’2007, February 20-24, 2007, Polyana, UKRAINE localintensityminima.Thenewapproachtonoiseremovalis Experiments led to conclusion that the smaller the mask based upon afore mentioned remark. The algorithm block size,thefasteralgorithmworks.Inconsequencemasksizewas diagramispresentedinfigure1. setto3x3. Proposed algorithm works iteratively. Every iteration Maps of local extremes indicate pixels which intensity consists of two stages. In the first stage maps of image should be changed. In consequence, intensities of local intensity local extremes are built. The first map ( Lmax ) maxima are decreased and analogously intensities of local indicates local maxima of image intensity, the second one minimaareincreased. ( L ) – local minima. Themapsaregivenbyequations(4) In successive iterations, processes of local extremes maps min constructionandintensityvaluescorrectionarerepeateduntil and(5)respectively. therequiredimagequalityisachieved. 1 for L(x, y) ≥ L(x + i, y + j) max IV.RESULTS AND DISCUSSION  −a≤i≤a;−b≤ j≤b (4) Lmax (x, y) =  0 for L(x, y) < max L(x + i, y + j) Results of iterative noise removal algorithm applied to  −a≤i≤a;−b≤ j≤b exemplaryimageareshowninfigure2.Subfigure2apresents original(signalonly)image.Insubfigure2bimagecorrupted 1 for L(x, y) ≤ min L(x + i, y + j) bynoiseispresented.Followingsubfigurespresentresultsof  −a≤i≤a;−b≤ j≤b noise removal. Different number of iterations is considered. L (x, y) = (5) min  Numberofiterationsperformedtoremovenoiseisindicated 0 for L(x, y) > min L(x + i, y + j)  −a≤i≤a;−b≤ j≤b in the figure description. Table 1 presents corresponding values of SNR obtained for increasing number of iterations. where: Iteration0indicatesoriginalnoisyimage(Fig.2b).

m (6) a) b) a =    2 

n (7) b =   2 Symbols m and n denote dimensions of image areas searchedforlocalextremes.Theareasaredeterminedbymask that passes through the whole image rowbyrow (or column by column) in accordance with the image filtration mechanism. c) d) START

Buildmapof intensitylocal minima

Buildmapof intensitylocal maxima Increaseintensity e) f) oflocalminima

Decreaseintensity oflocalmaxima

Satisfyingimage quality YES NO Fig.2.Iterativenoiseremoval;a)originalsignalonlyimage; STOP b)originalnoisyimage;c)noiseremovalresult,3iterations;d)noise removalresult,5iterations;e)noiseremovalresult,7iterations; Fig.1. Blockdiagramofiterativenoiseremovalalgorithm. f)noiseremovalresult,10iterations.

CADSM’2007, February 20-24, 2007, Polyana, UKRAINE Analysis of the results presented in figure 2 and table 1 leadstoconclusionthatforappropriatelyselectednumberof iterations presented algorithm improves significantly SNR SNR = 71.17 dB value.Experimentshaveshownthatmaximumsignaltonoise ratio is achieved for 34 iterations. For higher number of iterationsqualityofreconstructedimagedecreases.Thedetails arelost. (4iterations) TABLE1

Iterativenoiseremoval ITERATIVE NOISE REMOVAL –SNR VALUES OBTAINED FOR DIFFERENT NUMBER OF ITERATIONS .

Number of iterations SNR [dB] SNR=43.16dB 0 47.67 1 56.59 2 64.60 3 69.81 4 71.17 (masksize:3x3) Medianfiltration 5 69.47 7 61.84 10 46.16 Inthefollowingsectionofthispaper,proposedalgorithmis SNR=36.75dB comparedwithcommonmethodsofimagenoiseremoval. V.COMPARISON WITH TRADITIONAL APPROACH Table2presentsresultsofnoisereductionduetodifferent algorithmsusage.Thefirstcolumnindicatesmethodusedfor (masksize:5x5) Medianfiltration noise removal. Author’s method, median filtration and Gaussian filtration are considered. In the second column, resultofalgorithmusagecanbeseen.Exemplaryimagefrom figure2bwasusedasanoriginalnoisyimage.Comparisonof algorithms qualities is made by means of SNR value that is placedinthelastonecolumn. SNR=80.60dB Itcanbeeasilyseenthatauthor’sapproachtonoiseremoval affects with significant signaltonoise ratio improvement. Achievedresultsarefarbetterthanincaseofmedianfiltration (SNR value is almost twicehigher).OnlyGaussianfiltration

using 3x3size mask results with signaltonoise ratio higher (masksize:3x3) Gaussianfiltration than the one achieved with presented method. However, it shouldbepointedoutthatGaussianfiltrationcompromises TABLE2

NOISE REMOVAL ALGORITHMS COMPARISON

SNR=71.09dB Method Noise removal effect SNR

SNR=47.67dB (masksize:5x5) Gaussianfiltration

details much more than the iterative approach. Moreover

Originalnoisyimage Gaussianfiltermakesimagelooksblurry.Incaseofauthor’s method sharpness of reconstructed image is far better. Furthermoremoredetailsarevisible.

CADSM’2007, February 20-24, 2007, Polyana, UKRAINE REFERENCES CONCLUSIONS [1] H. F. Michael, F. Wilkinson, F. Schut (ed): “Digital In this paper problem of noise in digital images was imageanalysisofmicrobes”,JohnWileyandSons,1998. discussed. Particular attention was paid to random noise. [2] R. D. Goldman, D. L. Spector: “Live cell imaging:Custommethodsofrandomnoiseremovalwerementioned. alaboratorymanual”,CSHLPress,2004. The author’s algorithm of random noise removal was [3] S.F.Ray:“ScientificPhotographyandAppliedImaging”, introduced. Proposed method in successive iterations FocalPress,1999. constructs consecutive approximations of image signal [4] J. R Janesick: “Scientific ChargeCoupled Devices” component. Results of author’s method were presented and SPIEInternationalSocietyforOpticalEngine,2001. compared with those achieved with traditional approach to noise removal. Median and Gaussian filtration were [5] R.C.Gonzalez,R.E.Woods:“DigitalImageProcessing considered. (2ndEdition)”,PrenticeHall,2002. Analysis of obtained results leads to conclusion that for [6] B.Jähne:“Digitalimageprocessing“,Springer,1991. appropriately selected number of iterations presented [7] R. A. Schowengerdt: “Remote sensing models and algorithmsignificantlyimprovessignaltonoiseratio.Results methodsforimageprocessing”,Elsevier,1997. arefarbetterthanincaseofmedianfiltration.Moreover,the [8] L. Kurz, M. H. Benteftifa: “Analysis of Variqance in algorithmcompromisesdetailslessthanGaussianfiltration. Statistical Image Processing”, Cambridge University Proposedmethodcanbeparticularlyusefulincaseofnoisy Press,1997. images presenting different details. However, it can be also [9] V. Madisetti, D. B. Williams (ed): “The digital signal successfullyusedinalldigitalimageprocessingandanalysis processinghandbook”,CRCPress,1998. applicationsasapartofimageenhancementprocess.

______ European Social Fund and Polish State have supported this work in the frame of “Mechanizm WIDDOK” programme (contractnumberZ/2.10/II/2.6/04/05/U/2/06) .

CADSM’2007, February 20-24, 2007, Polyana, UKRAINE