/
Histogram Equalization Histogram equalization is a technique for adjusting image i ntensities Histogram Equalization Histogram equalization is a technique for adjusting image i ntensities

Histogram Equalization Histogram equalization is a technique for adjusting image i ntensities - PDF document

tawny-fly
tawny-fly . @tawny-fly
Follow
498 views
Uploaded On 2014-12-11

Histogram Equalization Histogram equalization is a technique for adjusting image i ntensities - PPT Presentation

Let be a given image represented as a by matrix of integer pixel intensities ranging from 0 to 1 is the number of possible intensity values often 256 Let denote the normalized histogram of with a bin for each possible intensity So number of pixels w ID: 22043

Let given

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "Histogram Equalization Histogram equaliz..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

HistogramEqualizationHistogramequalizationisatechniqueforadjustingimageintensitiestoenhancecontrast.Letfbeagivenimagerepresentedasamrbymcmatrixofintegerpixelintensitiesrangingfrom0toL1.Listhenumberofpossibleintensityvalues,often256.Letpdenotethenormalizedhistogramoffwithabinforeachpossibleintensity.Sopn=numberofpixelswithintensityn totalnumberofpixelsn=0;1;:::;L1:Thehistogramequalizedimagegwillbede nedbygi;j=\roor((L1)fi;jXn=0pn);(1)where\roor()roundsdowntothenearestinteger.Thisisequivalenttotransformingthepixelintensities,k,offbythefunctionT(k)=\roor((L1)kXn=0pn):ThemotivationforthistransformationcomesfromthinkingoftheintensitiesoffandgascontinuousrandomvariablesX,Yon[0;L1]withYde nedbyY=T(X)=(L1)ZX0pX(x)dx;(2)wherepXistheprobabilitydensityfunctionoff.TisthecumulativedistributivefunctionofXmultipliedby(L1).AssumeforsimplicitythatTisdi erentiableandinvertible.ItcanthenbeshownthatYde nedbyT(X)isuniformlydistributedon[0;L1],namelythatpY(y)=1 L1.Zy0pY(z)dz=probabilitythat0Yy=probabilitythat0XT1(y)=ZT1(y)0pX(w)dwd dyZy0pY(z)dz=pY(y)=pX(T1(y))d dy(T1(y)):1 original image 0 100 200 0 0.1 0.2 0.3 original histogram transformed image 0 100 200 0 0.1 0.2 0.3 transformed histogram Figure1:HistogramequalizationappliedtolowcontrastimageNotethatd dyT(T1(y))=d dyy=1,sodT dxjx=T1(y)d dy(T1(y))=(L1)pX(T1(y))d dy(T1(y))=1;whichmeanspY(y)=1 L1.OurdiscretehistogramisanapproximationofpX(x)andthetransformationinEquation1approximatestheoneinEquation2.Whilethediscreteversionwon'tresultinexactly\rathistograms,itwill\rattenthemandindoingsoenhancethecontrastintheimage.TheresultofapplyingEquation1totheelvis low contrast.bmptestimageisshowninFigure1.MATLAB:Totesttheaccompanyingcode,hist eq.m,typeg=hist_eq('elvis_low_contrast.bmp');HistogramequalizationisalsobuiltintoMATLAB.Type2 helphisteqtoseehowitworks.Question:WhathappensifEquation1isappliedtwice?Reference:R.C.GonzalezandR.E.Woods,DigitalImageProcessing,ThirdEdition,2008.3