A Comparative Study on Image Contrast Enhancement Techniques

Page 1

A Comparative Study on Image Contrast Enhancement Techniques

Amanpreet Kaur1 , Kamaljit Singh2

1Assistant Professor, Dept of CSE, SSIET, Derabassi, Punjab, India

2Assistant Professor, Dept of CSE, SSIET, Derabassi, Punjab, India

Abstract - Intheprocessofenhancementofimagequalityof different types of images which have huge applications in the number ofareasofreal worldthecontrastandbrightnessare two main concerns. For the sake of human interpretation not only the objective as well as subjective quality also matters. For subjective quality evaluation main parameter is the contrast present in every part of the image. Contrast rises if there is a contrast variation in the amount of luminance reflected from the two adjacent surfaces. Researchers have proposed various techniques for contrast enhancement in image processing while ignoring the illumination parameter present in the digital images. Main aim for the contrast enhancement of the images is for enhancing the details present of the objects present in the image. Image contrast enhancement is possible if stretching of pixel values is performedofaparticularrangewherecontrastimprovement is needed. In tonal enhancement, there are many regions present in the digital image where darkness and brightened regions are more prone to variations and this scenario accurateandsmoothcontrastenhancementisrequired.Inthis present research work, there is a comparative analysis of various contrast enhancement of different color images is performed. Various techniques like Histogram equalization, brightness preserving technique and other techniques outcomes are discussed in detail with the help of various objective parameters.

Key Words: Image contrast enhancement, image processing,colorimages,histogramequalization,entropy

1. INTRODUCTION

Therearevariouscolorspacesintherealworldandoutof thesetwoprimecolorspacesareRGBandCMYKandwhich are intended for various engineering and science communications.

1.1 RGB

ThisRGBcolormodelisassociatedwiththered,greenand blue receptor is the retina of the eye of living beings. This color model is based on the additive color process where mixingofthesecolorsproducesothercomplimentarycolors oftherealworld.Itisthefundamentalcolormodelandwhich istheintegralpartofthecolorprojectedwiththesunlight.In the world of digital electronics, this model is used for graphics and also in printing applications. The secondary colorlike cyan, magenta and yellowarecreatedby mixing twocolorsatatimefromthered,greenandbluecolors.Cyan

isproducedbymixinggreenandblue,magentaisproduced bymixingblueandred,yellowisproducedbymixingredand green. If red, green and blue are mixed in full proportions thenwhitecolorisproducedandifthereisnovalueofthese colorsthenblackcolorisproduced.

Therearevarioustechniqueswhichareutilizedtoimprove thecontrastofthedigitalimage.Someofthetechniquesthat are utilized for implementation of present research work havebeendiscussedbelow.

1.2 HE (Histogram Equalization)

Histogram equalization is one of the contrast adjustment techniquesthatisutilizedindigitalimageprocessing.Inthis processpixelvaluesareadjustedsothathistogramoforiginal imageisuniformedandnormalized.Thistechniqueisusedto improvetheoverallcontrastoftheinternalpartsoftheimage whereeitherthepixelshaveloworhighvaluesregions.Since this method normalized the pixel values with the help of histogram way so this method is known as histogram equalization.Thismethodisgenerallyusedtoimprovethe overallcontrastofthedigitalimageincomparisontoother region-basedcontrastimprovementmethods.

1.3 Gamma Correction

Gamma correction is a methodology that is helpful in obtainingenhancedbrightnessandluminanceofthepixelby using some mathematical functions. This mathematical functionisnonlinearinnatureandmonotonicthatisusedto affectthewhiteandgreyvaluesaswellasdarkshadowspixel valuesinthedigitalimage.Gammacorrectionisoneofthe testedtechniquesforparticularapplications.

1.4 Brightness Preserving Bi-Histogram Equalization (BBHE)

ThistechniquewasproposedbyY.T.Kim.Inthismethod, author used the concept of dividing the histogram of the inputdigitalimageintotwodifferentparts.Thisprocessis basedontheaverageoftheimage.So,thistechniquetriesto equalizethetwopartsbasedontheirrespectivehistograms independently.Thismethodisusedtoincreasethecontrast of the image where output image has brightness near to averageandmeangreylevel.Thistechniquehasnumerous applications in various areas of image processing. This techniqueisprimarilyusedtoenhancingthecontrastofthe imageinadditiontopreservingthemeanbrightnessofthe inputdigitalimage.

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page672
***

1.5 Brightness Preserving Dynamic Histogram Equalization

Thistechniqueisimplementedtosolvethelimitationsofthe histogram equalization method. Histogram equalization showssaturationeffectinelectronicsdevicessothiscanbe solvedbypreservingthebrightnessoftheinputimageinthe outputimagealso.BPDHEtriestopreservethebrightnessof inputimageintotheoutputimagealso.Methodusesgaussian filterandthenusespartitionmethodbasedonlocalmaxima. Here each partition of the image will have new dynamic range.Inthefinalstage,outputimageisnormalizedbasedon theinputimagemeanbrightnessvalue.

1.6 Region Based Adaptive Contrast Enhancement (RACE)

Thiswholealgorithmissplitintofollowingsteps

1)Acentralpointisconsideredbasedonthresholdofeach regionthatwillactasaseedpointforthatregion

2) Now this central point is used to split image into foregroundandbackgroundregions.

3) Foreground region is then enhanced by equalizing histogramadaptivelyandthenbackgroundregionisaddedto theenhancedforeground.

4)Inthelaststep,gradientoftheoriginalimageiscalculated and added to the step 3 output so that enhanced image is obtained.

2. LITERATURE SURVEY

A. M et al. [2] proposed an automatic transformation techniquethatimprovedthebrightnessofdimmedimages via the gamma correction and probability distribution of luminancepixelswhichusedanefficientmethodforcontrast andcolorenhancementofdigitalimagesascontrastofimage isveryimportantcharacteristicbywhichthequalityofimage canbejudgedasgoodorpoorquality.It wascomposedof three major steps. In the first primary step, histogram analysisprocesswasappliedontheoriginalimagesuchthat it was used to present the pixel data of the original image which was relied on probability as well as statistical transformation.Inthesubsequentsecondstep,theprocessof distribution of weights was followed which is helpful in smoothingthefluctuationofintensitiesandcomputingthe threshold of histogram so that stretching of pixels was achieved. In the third and final step, Adaptive gamma correctionandAdaptiveHistogramStretchingwithrespectto color constraint can automatically enhance the image contrast and color through use of a smoothing curve. The techniqueproposedhereperformedefficientlyindifferent dark and bright images by adjusting their contrast very frequentlyandproducedenhancedimagesofcomparableor higherqualitythanconventionalmethod.

A.Aggarwaletal.[3]proposedanalgorithmwhichachieves contrastenhancement,alsopreservesthebrightnesslevelof the images. It included the discussion regarding the developmentoftheimageenhancementtechniquesandtheir application in the field of image processing. To process an inputimagesothattheresultantimage wasmoresuitable thantheoriginalimageforspecificapplicationisaprincipal objective of image enhancement techniques. This new algorithm was developed to overcome the problems of excessivecontrastenhancementcausedbyTraditionalglobal histogram equalization and block effect caused by local histogramequalization.Inthis,theweightedaverageofthe histogramequalized,gammacorrectedandtheoriginalimage werecombinedtoobtainedtheenhancedprocessedimage.It had been shown by experimental results that proposed algorithmhadgoodperformanceonenhancingcontrastand visibilityforamajorityofimages.

S.C.Huangetal.[5]proposedanefficientmethodtomodify histograms and enhance contrast in digital images. Since enhancement plays a significant role in digital image processing, computer vision, and pattern recognition they presented an automatic transformation technique that improvesthebrightnessofdimmedimageswiththehelpof methods like gamma correction as well as the probability distribution of luminant image pixels. For improving the qualityoftheinputvideo,performtemporalinformationso thatcomputationalcomplexitycouldbelowered.Fromthe outcomeoftheexperiments,itwasshowedtheworthinessof the proposed method. They had presented a novel enhancementmethodforbothimagesandvideosequences.

T.Celiketal.[6]suggestedanalgorithmwhichimprovesthe contrast of the digital image by performing adaptive equalizationprocessonhistogramoftheoriginalimage.This method utilized the Gaussian mixture model on the image greylevelpixels.TheseGaussiancomponentswereutilizedto sectionedthedynamicrangeofinputoriginalimageintogrey level intervals of the pixels. From the outcome of the suggested algorithms, it was shown that the algorithm performedbetterincomparisontootheralgorithms.Theone of the most significant methods was not setting any parametermanuallyforsettingaparticulardynamicrangeas wellasitsapplicabilityonvarioustypesofdigitalimages.

3. PARAMETERS USED FOREVALUATIONOFIMAGE ENHANCEMENT TECHNIQUES

Fortheobjectivemeasurementofanyalgorithmforimage enhancement,therearevariousparametersonthebasisof which performance of the algorithms is evaluated. The various parameters that are used to evaluate the performanceoftechniquesareasfollows.

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page673

(i)

where,h(s)isthenormalizedhistogramoftheoutputdigital image.Thisparameterisutilizedtomeasurethecontentof theimage,withhavinghigherrangevaluesshowingdigital imagesarericherininformation.

(ii)

Absolute Contrast Error is the difference between the deviationsoftheoriginalimageandtheenhancedimage.ACE shouldbeaslessaspossible;itmeansthedeviationofthe output image should be more means the contrast enhancementismore.

(iii) PeakSignalto

2 10 255 10log

(PSNR) MSE

PeakSignaltoNoiseRatioparametervalueshouldbehigh.It meansthatthecontentofimageintheoutputishighwith lessnoise.

4. RESULTS AND CONCLUSIONS

Thischapteraimsatprovidingtheresultsofthealgorithmsof imageenhancementtechniqueslikeHistogramEqualization (HE),GammaCorrection(GC),BBHE,BPDHE,Regionbased Adaptive Contrast Enhancement (RACE Approach), which have been described in previously and determine the best oneforimageenhancement.

All the enhancement techniques are implemented using MATLAB-2009a and its image processing toolbox. Enhancementtechniquesareappliedonxrayboneimagesof differentsizelike512512,256256,etc.

4.1 ResultsforHSVColor Model for ‘Landscape’ Image

Table -1: ResultsofVariousParametersfor“LANDSCAPE” ImageusingHSVColorModel

Input entropy of Landscape Image: R=7.2382, G=7.3182, B=7.4802

IntheTable1,differenttechniquesarecomparedonthebasis ofvariousparametersforHSVcolormodel.Fromthistable,it is clear that value of error color for BPDHE is less as comparedtotheothertechniques.Itmeansthatthereisvery littledifferenceinthecolorsoftheoutputimageascompared to the input image even after enhancement. The value of CPSNR is more for BPDHE which is also desirable for any techniquetoworkefficiently.MoreCPSNRmeanslessnoise enteredduringenhancement.Intermsofentropy,theoutput entropy of R and G components are more as compared to input entropyincase ofall the techniques exceptBBHEin which all component output entropy is less than input entropy.

FromtheFig.1,itisclearthatthevisualqualityofHE,BPDHE andRACEapproachisgoodascomparedtotheothers.But, only BPDHE is showing the best quality image in terms of colorasthecolorsoftheinputandoutputimagearealmost same,whileinothersthereislotofvariationinthecolorof theoutputimage.

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page674
   256 1 2 ) ( log ) ( s s h s h
Entropy AbsoluteContrastErrororColorError NoiseRatio
Parameter Vs Techniques Error Color CPSNR (dB) Out Entropy R G B HE 0.0035 20.3588 7.6067 7.8049 7.2463 GC 0.0092 16.8459 7.8348 7.7362 7.8154 BBHE 0.2143 8.4782 6.3576 6.6669 4.1230 BPDHE 0.0029 26.5237 7.3836 7.5731 7.4151 RACE 0.0031 20.1979 7.6252 7.8005 7.2431
(a)HEImage (b)GCImage (c)BBHEImage (d)BPDHEImage (e)RACEApproach Fig.-1: Imagesof“LANDSCAPE”afterEqualizationUsing HSVColorModel

Input entropy of Landscape Image: R=7.2382, G=7.3182, B=7.4802

IntheTable2,differenttechniquesarecomparedonthebasis ofvariousparametersforG-Channelcolormodel.Fromthis table,itisclearthatvalueoferrorcolorforBPDHEislessas comparedtotheothertechniques.Itmeansthatthereisvery littledifferenceinthecolorsoftheoutputimageascompared totheinputimageevenafterenhancement.Eventhevalueof CPSNR is more for BPDHE which is also desirable for any techniquetoworkefficiently.MoreCPSNRmeanslessnoise enteredduringenhancement.Intermsofentropy,theoutput entropy of R component is more as compared to input entropyincaseofallthetechniquesexceptBBHEinwhichall componentoutputentropyislessthaninputentropyandin caseofBPDHE,inwhichoutputentropyofBcomponentis alsomore.ItmeansonlyRcomponentshowmoredetailsin theimageafterenhancementusingG-Channelcolormodel.

FromtheFig.2,itisclearthatthevisualqualityofHE,GC, BPDHE and RACE approach is good and particularly only BPDHEisshowingthebestqualityimageintermsofcoloras the colors of the inputand output image are almost same, while in others there is lot of variation in the color of the outputimage.

4.3

Table -3: ResultsofVariousParametersfor“BONESCAN” ImageusingHSVColorModel

Input entropy of Bonescan Image: R=6.9825, G=6.6600, B=6.8148

IntheTable3,differenttechniquesarecomparedonthebasis ofvariousparametersforHSVcolormodel.Fromthistable,it is clear that value of error color for BPDHE is less as comparedtotheothertechniques.Itmeansthatthereisvery littledifferenceinthecolorsoftheoutputimageascompared totheinputimageevenafterenhancement.Eventhevalueof CPSNR is more for BPDHE which is also desirable for any techniquetoworkefficiently.MoreCPSNRmeanslessnoise enteredduringenhancement.Intermsofentropy,theoutput entropyofR,GandBcomponentsismoreascomparedto input entropyincase ofall the techniques exceptBBHEin which all component output entropy is less than input entropy.Itmeansallthecomponentsshowmoredetailsin the image after enhancement using HSV Color model for medicalimage.

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page675
4.2 Results for G-channel of RGB Color Model for ‘Landscape’ Image
Parameter Vs Techniques Error Color CPSNR (dB) Out Entropy R G B HE 0.1021 15.813 7.846 7.121 7.376 GC 0.0853 15.198 7.825 7.816 7.763 BBHE 0.3986 7.193 6.532 5.424 6.112 BPDHE 0.0001 35.024 7.328 7.052 7.507 RACE 0.1124 15.373 7.835 7.096 7.302
Table -2: ResultsofVariousParametersfor“LANDSCAPE” ImageusingG-ChannelofRGBColorModel (a)HEImage (b)GCImage (c)BBHEImage (d)BPDHEImage (e)RACEApproach Fig.- 2: Imagesof“LANDSCAPE”afterEqualizationUsing G-ChannelofRGBColorModel Results for HSV Color Model for ‘Bonescan’ Image
Parameter Vs Techniques Error Color CPSNR (dB) Out Entropy R G B HE 0.1757 12.4926 7.6759 6.6663 7.1984 GC 0.0200 21.3532 7.3809 7.3478 7.3660 BBHE 0.2015 2.4323 2.4306 2.4611 2.6086 BPDHE 0.0008 25.1299 7.2345 6.7085 7.0175 RACE 0.1644 12.8430 7.7065 6.6823 7.2057
(a)HEImage (b)GCImage (c)BBHEImage

(d)BPDHEImage (e)RACEApproach

FromtheFig.3,itisclearthatthevisualqualityofBPDHEis goodascomparedtotheothers.TheresultsfromBPDHEis showingthebestqualityimageintermsofcolorasthecolors of the input and output image are almost same, while in others there is lot of variation in the color of the output image.

4.4 Results for G-channel of RGB Color Model for ‘Bonescan’ Image

IntheTable4,differenttechniquesarecomparedonthebasis ofvariousparametersforG-Channelcolormodel.Fromthis table,itisclearthatvalueoferrorcolorforBPDHEislessas comparedtotheothertechniques.Itmeansthatthereisvery littledifferenceinthecolorsoftheoutputimageascompared totheinputimageevenafterenhancement.Eventhevalueof CPSNR is more for BPDHE which is also desirable for any techniquetoworkefficiently.MoreCPSNRmeanslessnoise enteredduringenhancement.Intermsofentropy,theoutput entropy of component R is more as compared to input entropyincaseofallthetechniquesexceptBBHE,incaseof which all the output entropy values are less than input entropyvalues.OnlyincaseofGCandBPDHEallcomponents are having more value. It means only component R show moredetailsintheimageafterenhancementusingG-Channel Colormodel

(d)BPDHEImage (e)RACEApproach

Fig.-4: Imagesof“BONESCAN”AfterEqualizationUsingGChannelofRGBColorModel

FromtheFig.4,itisclearthatthevisualqualityofBPDHEand GCisgoodascomparedtotheothers.But,theresultsfrom BPDHEisshowingthebestqualityimageintermsofcoloras the colors of the inputand output image are almost same, while in others there is lot of variation in the color of the outputimage.

4.5 Analysis of Computation Time of Image EnhancementTechniquesfor ColorImages

Table -5: ComputationTimeforColorImages

ItisclearfromtheTable 5thattheHSVcolormodel takes more time for processing than the G-Channel color model. This is because, for using HSV color model, first the RGB imageisconvertedintoHSVcolormodelusinglargenumber ofequationsandthenenhancementtechniqueisappliedon it.Then,afterthecompletionoftheenhancementtechnique HSVmodelisbackconvertedintoRGBcolormodel.Thus,the processingtimeismore.ButincaseofG-Channelcolormodel processingisdirectlydoneonRGBmodel.Thisisthereason that the processing time of HSV color model is more as comparedtotheG-Channelcolormodel.

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page676
Fig.-3: Imagesof“BONESCAN”afterEqualizationUsing HSVColorModel
Parameter Vs Techniques Error Color CPSNR (dB) Out Entropy R G B HE 0.1605 13.9661 7.6853 6.3785 6.0567 GC 0.0079 21.6900 7.3583 7.3660 7.0666 BBHE 0.6726 2.6097 3.1047 3.0431 4.0653 BPDHE 0.0009158 25.5270 7.2895 6.7104 6.9729 RACE 0.1436 14.6066 7.6672 6.3425 6.1842
Table -4: ResultsofVariousParametersfor“BONESCAN” ImageusingG-ChannelofRGBColorModel (a)HEImage (b)GCImage (c)BBHEImage
ENHANCEMENT TECHNIQUES Units of Time (Seconds) HSV Model (512 512) G-Channel RGB Model (512 512) HE 3.375 2.953 GC 3.969 3.296 BBHE 11.219 5.422 BPDHE 12.141 5.828 RACEAPPROACH 11.078 5.594

3. CONCLUSIONS

Therearevarioustechniquesforenhancingthecontrastof thedigitalimage.Afterimplementingsomeofthesecontrast enhancement techniques, it is concluded that the enhancement of different types of digital images is dependentontypeofapplication.Fromthetableswhichare shown above, it is concluded that Brightness Preserving Dynamic Histogram Equalization is the most suitable techniqueintermsofAbsoluteContrastErrororErrorColor, Contrast Peak Signal to Noise Ratio (CPSNR). The visual qualityoftheimagesusingBPDHEisgoodascomparedto others with a limitation of high computation time for the implementation of BPDHE in comparison to all other techniques.

For color images, two different models are considered, they are HSV and G-Channel color model. All techniques are implemented on these two-color models. BPDHE technique provides good result both in terms of visual quality and objective performance parameters like Error Color and CPSNR. The computation time for implementinganytechniqueinthecaseofG-Channelisless ascomparedtoHSVcolormodel.Hence,itisconcludedthat enhancement techniques are dependent on type of application

Inthefuturework,forthecontrastenhancementpurpose, moretypesofdigitalimagescanbetakenfromthedifferent applicationfields,sothatitbecomesclearerthatforwhich applicationwhichparticulartechniqueispreferredbothfor gray scale images as well as color images. More new parameters can also be considered for the evaluation of enhancementtechniques.Newothercolormodelscanalso be chosen for better comparison purpose and also optimization techniques can be utilized to lower the complexity.

REFERENCES

[1] H. Mzoughi, I. Njeh, M. Ben Slima and A. Ben Hamida, "Histogramequalization-basedtechniquesforcontrast enhancement of MRI brain Glioma tumor images: Comparative study," 4th International Conference on AdvancedTechnologiesforSignalandImageProcessing (ATSIP),pp.1-6,2018.

[2] A. M and J. Simon, “Color Sensitive Adaptive Gamma CorrectionforImageColorandContrastEnhancement,” InternationalConferenceonHummingBird,2014.

[3] A. Aggarwal, R.S. Chauhan and K. Kaur,” An Adaptive ImageEnhancementTechniquePreserving,Brightness LevelUsingGammaCorrection,”AdvanceinElectronic andElectricEngineering,Vol.3,No.9,pp.1097-1108, 2013.

[4] T.CelikandT.Tjahjadi,“AutomaticImageEqualization and Contrast Enhancement Using Gaussian Mixture Modelling,”IEEETransactionsonImageProcessing,Vol. 21,No.1,2012.

[5] S.C.Huang,F.C.ChengandY.S.Chiu,“Efficientcontrast enhancementusingadaptive gammacorrectionwith weighting distribution,” IEEE Transactions on Image Processing,Vol.22,Issue3,2012.

[6] T. Celik and T. Tjahjadi, “Contextual and Variational Contrast Enhancement,” IEEE transactions on image processing,Vol.20,No.12,2011.

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page677

Turn static files into dynamic content formats.

Create a flipbook