Академический Документы
Профессиональный Документы
Культура Документы
algorithms
Abstract—The contrast enhancement is an important part of the are included in the indirect category. A linear contrast
image enhancement process. The visual details become more modification technique can be adopted to improve the image
visible in an image with a high level of contrast. There are more details. The contrast transformation is made on piecewise.
techniques to improve a contrast image. In this paper we analyze Another technique is the non-linear contrast modification that
the contrast modification by three main methods: the histogram takes into account different mathematic functions like power,
equalization method, local histogram equalization (LHE) method logarithm and some filters [3]. One of the most well-known
and contrast limited adaptive histogram equalization (CLAHE) methods to change the contrast of an image is the histogram
method. The degree of contrast enhancement is measured using equalization. It can be divided in: global histogram equalization
the root-mean-square (RMS) parameter.
and local histogram equalization [4]. To the second method, a
Keywords - image processing; image enhancement; image
condition with which a user can control the intensity of the
contrast enhancement; contrast measurement. contrast can be added. This procedure is named CLAHE
(Contrast Limited Adaptive Histogram Equalization) [5]. The
I. INTRODUCTION histogram of an image has a statistical meaning which
represents the density probability of pixel values in an image. It
In order to improve a digital image, it is necessary to
can be graphically represented. The X axis symbolizes the
change the pixel values. Image enhancement is a subjective
maximum value that a pixel could have and the Y axis
term that depends on what interests us from a digital image. It
represents the number of pixels of an image with the same
can be considered as a process that makes the information of an
values. The histogram equalization is a common method to
image more determinable and perceptible by a human observer
modify the contrast. The data processing is made based on the
and also a good input for other methods of image processing.
image histogram information. The method attempts to uniform
In this way any image can be improved for a specific
the histogram and the color levels are better distributed on the
application. Any digital image processing finally results in the
whole image. Using the histogram equalization applied on a
deterioration of the initial image information. The most used
grey image results in a global improvement of the contrast and
methods to improve an image can be classified in two domains:
brightness normalization. This does not work well when we
spatial domain and frequency domain. The frequency domain
want to increase the contrast on low regions. By analyzing the
methods use the Fourier Transform to transfer the data from the
global histogram equalization, LHE and CLAHE, we want to
space domain into the frequency domain where these are
observe the changes of the image contrast and brightness,
processed. The Inverse Fourier Transform is used to bring the
focusing on the small patches such as the eye region on a
modified data back to the space domain. The time domain
human face. The image contrast will be assessed using the
methods work directly with the pixel values to enhance the
root-mean-square (RMS) parameter[6].
image. Many of these methods are used to perform changes on
the contrast and brightness of an image and others are used to II. TOTAL HISTOGRAM EQUALIZATION, LHE AND
eliminate the image noises. CLAHE ALGORITHMS
The contrast is one of the most used parameter to improve a A. Total histogram equalization algorithm
digital image. It can be defined as the brightness differences in
an image that make a good perceptual quality of the image Our study focuses on the grey image. The flowchart of this
details [1]. The changes of contrast can make a particular algorithm is shown in Fig. 1.
region to be more visible and more detailed in order to provide
the information of an image, in part or in whole. The methods
that modify the image contrast can be divided into two
dominant categories: direct and indirect methods [2]. The direct
methods improve the image contrast based on the contrast
measurement. The second ones try to improve the image
contrast without knowing its value. The most common methods
TOTAL HISTOGRAM
EQUALIZATION
B. Local histogram equalizatioon algorithm
Frequency of pixels calculation To improve the contrast of o small patches, we can use a
variant of the histogram equualization named LHE (Local
Probability of pixel frequency andd
Histogram Equalization). Its floowchart is shown below:
normalization calculation
LOCAL HISTOGRAM
H
EQUAL
LIZATION
Cumulative normalized histogram
m
calculation
Border im
mage creation
Cumulative distribution function
calculation
Templatte creation
Patch T, T p (5)
(3) T / T /
CNH f CNH
VP For the processing of everyy pixel we must create a border
on the initial image. For a tem mplate by TxT size, the border
whereVP represents the smallest pixeel value from the must be of (T-1+T)x(T-1+T) dimension,
d because we want to
image. The cumulative distribution function (CDF) of the change all image pixels. The TxT T matrix will be moved over
NH of this pixel to
target pixel is calculated by dividing the CN the entire initial matrix and thee middle pixel value of the patch
the number of all pixels and the result is multiplied by the is changed. For each templatte the occurrence frequency of
number of bins (NB ) (4). pixels is calculated by meanns of (1) where M=N=T. The
CDF CHN ⁄MxN NB (4) probability of pixel frequency anda normalization are calculated
In Fig. 3 we can see that the contrastt of the Fig. 2 is with (2), where the number off template elements is given by
increased and some image areas are more visible. the square of T. The cumuulative distribution function is
calculated for the pixel values that are less or equal to the
middle pixel value of the tem mplate. Because the target pixel
value can be less than other pixel values, for these is not
necessary to calculate their CDF.C The initial pixel will be
changed with the value of its CD DF described in (4).
In the Fig. 5 and Fig. 6 we
w can see a very well contrast
improvement of the Fig. 2. Thiis image enhancement parameter
is changed when the size of the template is modified.
200 200
D. Contrast and brightness measurement 100
100
To assess the degree of the contrast of an
a image, we used 0
0
the RMS contrast parameter given by (6). pixel value
0 50 100 150
pixel value
200 250
0 50 100 150 200 250
M N Figure 11. Histogram of the Fig.9 Figure 12. Histogram of the Fig.10
1
RMSC P P (6)
M N
M N
1
P P (7)
M N
Figure 13. LHE with Figure 14. LH
HE with Figure 17. CLAHE with Figure 18. CLAHE with
RMSc= 0.261 RMSc= 0.2388 RMSc = 0.236, = 48.30%, RMSc= 0.257, = 50.51%,
= 50.87 %, Patch = 5x5 = 51.92%, Patch = 21x21 Patch = 5x5, Clip limit = 3 Patch = 5x5,Clip limit = 11
1000 1000 1200 900
pixel number pixel number
n pixel number pixel number
900 900 800
800 800 1000
700
700 700
800 600
600 600
500
500 500 600
400
400 400
300 300 400 300
Figure 15. Histogram of the fig.13 Figure 16. Hiistogram of the fig.14 Figure 19. Histogram of the fig.17 Figure 20. Histogram of the fig.18
Brightness
45.98 46.59 46.82 47.61 48.53 49.33 49.95 50.49 50.80
(%)