Real-Time Image Histogram Equalization Using FPGA
Real-Time Image Histogram Equalization Using FPGA
net/publication/253010753
Article in Proceedings of SPIE - The International Society for Optical Engineering · August 1998
DOI: 10.1117/12.319719
CITATIONS READS
11 1,066
5 authors, including:
Tian Pu
University of Electronic Science and Technology of China
19 PUBLICATIONS 150 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Tian Pu on 24 November 2016.
ABSTRACT
A new hardware hnp1ementa1ion of histogram equalization by means ofField Programmable Gate Array (FPGA) is presentI. Histogram
equalization is an effective means ofimage enhancemea Its Real-time processing requires a great deal ofmemory and very high processing
s_. The kjc cell natureofXC4000 làmily's FPGA is nest suitable forpfomiing aI-thne pixel-level image pmcessing operations such as
1stogram equalization A core is constmctedto completethe Fñstogram statistics and histogram equalizatioa As aresult the chip makes ciiuiits
aixi system nre effetive than ev and it takes very short time to compide the calailation and generate the look-up table (LUT). The
equalizingtechnique is described and p1ementationresu1tsusingaXiIinx XC4OIO FPGAare presented.
1. INTRODUCTION
Histogram modification is one ofthe most wmmon mdhods usedto enhance imageby scaling image gray. A simple arxl effeiive way ofit is
histogram eualizañon, which can increase iforniation by compressingthe gray levels that have few pixels, aed exteixlingthe gray levels
that have more pixels The processing speed must be very fast in real-time pmcessing systeim Sofiware processing is not fast enc and
hardware processing is necessary
Somecircuits for equalizing bistomuse micropmcessortowmulate histogramand cakthte look-uptable 1LUT). The hardwam of histogm
statistics3 usually consists ofRAM full adda aklress regjster and clock controll c. The LUT is usually stored in two additional RAMs or a
double poIt RAM to rewiite or slxw. The separate arcuit is also used for read/write controL So the cñuit is very large and complex and the
microprocessor doesn't mn quickly. The separate circuit thcrses processmg time aix! makes much instability. Ifthe system intendsto cany out
uthp1Dcessing fimctions the speed can't metheneed ofreal-lime processing.
Inorderto implement real-time processing twt ways should be taken account of One isusing VLSI cirouit, which can greatly decreasethe data
teansmitsingtime from IC to IC and avokithe instability ofthe process. The oth is using ASIC to implement histogram mOdificatiOn (&ich as
lstogram iualization). The funthons of these two ys can be realized by using Field Programmable Gate Aimy FPGA). FPGA can
implement tFfunctions constitutedby different ICs (TFL 74 families orCMOS 4000 families) . Sothecimit canbe simplified. The Xilinx
XC4000E$amily combines architectural veiaüIity on-chip Sekct-RAM memory with edge-iriggered and dual-poit modes, vy high speed,
and aixindant routing resources. Its clock rate can reach more than 100 MHz, and the delay bween internal configurable logic block (CLB) is
less than iOns so that FPGA can implement high speed calculation Hardware design canbe flexible and convenient as software.
In the present pap an overview of the ciiuut of image histogram equalization is first described. Then, the circuit fbi cumulating and taking
histogram statistics is desaibed, and the implementation of histogram equalization based on FPGA is presented and finally, for a 256 multiplied
by 256 pixels image, simulationresoltsofhistogram equalization inaXllinx XC4O1OE G191-4 device are given
Histogram rrodification(Gmy scale nxxlification)is a simple aix! effectivewayto changethe dynamic range cr connstofan image. Inthis way,
thegray scaleofinpit imageis changedtotheother differentgray scale foroutpit image. 11 expressionofchange isg=T(f), wherefisthe input
gray value, OfL-1, aix!gisthe output gray value, OgM4, VAIICMIS thetal mimberoftransfonned graylevels. A curve, atable or a
formula can express ii CaIOJIatingaIXI nalyzingtheltistogramofinput image can getthe suitabletiunsibim equation.
WhentF are a seiiesofimages required to process, we conk! choose a required histogram ofoutput image in advance, then seek the transform
between input and output images. At fi'* we calculate th& cumulative histogram c(f) and cg) according to the histogramp9) of the input
images and the histogramp(g) ofther red output images reeively:
f
c(f)=p(k)=c(f—l)+p(f) (2)
c(g)= Ph(k). c(g — l)÷ p(g)
I
Then, we choice one ofgibreachfin ordthat cjg) is closet to c(f), and the equationg=T() is achieved The quanmy of calculation is little, but
the effect is satisfied.
294
o;f;;L-1 (3)
f
wfxe k cumulative number ofpixels whose gray value is between zo and/f For atypical image of256x256x8bit. equation (3)
canbe\Mittenas
256—1
g= 256x256 ''k (4)
if
g=j-nk (5)
I
To simplifythe following calculation, we 9JbstienkforJ4) ashistogram, and substitite k forc(9 astheaiinulalivehistograiu
The Xllinx XC4000E family devices are the first programmable logic devices with edge-triggered (synchronous) and dual-poit RAM accessible
to the user Depending onthe selected mode, a singte CLB can be configured as 16x2, 32x1, or 16x1 bit anay. We use 128 CLBsto configure a
295
296
297
3. SIMULATION
2000 --—-..-- ,
1500
1000
L 500
100
2000
300
(c) Equalized Image (d) Histogram of Equalized Image
Figure 5 (c) is the resiilt of equalizing the histogram of the original image shown in Figure 5 (a). Tbeir histograms are shown in Figure 5 (b) and
(d), recty The effect is vy obvious. Output images are delayed in a flame time and no flame is lost, if we don't wish anydelay fbi output
images, we can use the first LU1 as the next image's LU1 and meantime the flame memory can be tak off Only the first frame is kst, but
298
4. ACKNOWLEDGMENTS
The authocs gratefully acknowledgetI support from NatiOnaiHigh Th. R&DPnects ofChina They would liketo thank Prof Zhoc Liwei
forvaluable guidmforthispape The authors also gratefully acknowledgethe suppoit fitmDt WangYiforthe expimea
5. REFERENCES
1. W. K Pratt, Digital lnige Pmcessiig, Wiley, New York, 1991.
2. Li Dexiong, DigiInxzge Pmass71rg, Publishing House of Bepng 1n eofTechnokgy, Beijing, 1990.
3. Histrcün c7m11 r-thwurofimzgepricescing Oio-EIectmnicEngineenng, v 19, n 2.
4. Fukukshima, Tadisbi,A &uwyofInePtrice&cngISlsoiiajxvi,Proc hit ConfPatternRecognit, v2, Proceiings of
the 10th Intationa1 Confence onPatternRecognmon, Ailantic City NJ, USA, 1990, IEEE.
5. XC4()OOEFPGA Fa —TethnicalThulaliwk, Xilirix mc, San Jose, 1995.
6. Meng Xlanyuan, Teth dC iea,iJ&mirnrSenes, Publishing House ofElectitñcs indusUy Beijing, 1995.
299
DownloadedViewFrom:
publicationhttp://spiedigitallibrary.org/
stats on 11/23/2016 Terms of Use: http://spiedigitallibrary.org/ss/termsofuse.aspx