Abstract

The fundamental and important preprocessing stage in image processing is the image contrast enhancement technique. Histogram equalization is an effective contrast enhancement technique. In this paper, a histogram equalization based technique called quadrant dynamic with automatic plateau limit histogram equalization (QDAPLHE) is introduced. In this method, a hybrid of dynamic and clipped histogram equalization methods are used to increase the brightness preservation and to reduce the overenhancement. Initially, the proposed QDAPLHE algorithm passes the input image through a median filter to remove the noises present in the image. Then the histogram of the filtered image is divided into four subhistograms while maintaining second separated point as the mean brightness. Then the clipping process is implemented by calculating automatically the plateau limit as the clipped level. The clipped portion of the histogram is modified to reduce the loss of image intensity value. Finally the clipped portion is redistributed uniformly to the entire dynamic range and the conventional histogram equalization is executed in each subhistogram independently. Based on the qualitative and the quantitative analysis, the QDAPLHE method outperforms some existing methods in literature.

1. Introduction

An important challenge in the field of digital image processing is contrast enhancement. Compared to the original image, contrast enhancement produces better image by changing the pixel intensities. Of the many techniques available for image contrast enhancement, histogram equalization (HE) is a widely used technique. The fundamental idea of histogram equalization is to flatten the histogram and stretch the dynamic range of the gray levels by using the cumulative density function of the image. Nowadays, histogram equalization is applied in various applications such as medical image processing and radar image processing [1]. In histogram equalization, the brightness of an input image is significantly changed and causes undesirable artifacts. This is not suitable for some applications where brightness preservation is necessary. To overcome the aforementioned problem, several brightness preserving methods have been proposed [25].

Generally, these enhancement methods can be classified into two types: partitioned histogram equalization (PHE) and dynamic partitioned histogram equalization (DPHE). In these methods, the original histogram is divided into several subhistograms based on the histogram statistical information. The difference between the PHE and DPHE is that, in the DPHE, each subhistogram is assigned to a new enhanced dynamic range instead of using the original dynamic range. One of the popular PHE based methods is mean brightness preserving bihistogram equalization (BBHE). BBHE segments the original histogram into two portions by the mean of the input histogram. BBHE has been analyzed both experimentally and mathematically that this technique is capable of achieving the brightness preservation [1]. Later, dualistic subimage histogram equalization (DSIHE) has been proposed. This algorithm separates the input image’s histogram into two subhistograms based on median of the input image [2]. This technique has been claimed to outperform BBHE in terms of both brightness preservation and also entropy (image content) preservation. BBHE and DSIHE methods can preserve the mean brightness of original image to some extent. In order to provide scalable brightness preservation, recursive mean-separate histogram equalization (RMSHE) and minimum mean brightness error bihistogram equalization (MMBEBHE) have been proposed [3].

In RMSHE algorithm, the original image is recursively segmented into some subimages based on their mean brightness and equalized them separately. The better mean brightness will be preserved when the recursive degrees have been increased. If the recursive levels tend to infinity, the output image will be equal to input image [3].

For DPHE, there are two methods existing in literature: dynamic histogram equalization (DHE) [6] and brightness preserving dynamic histogram equalization (BPDHE) [7]. The DHE partitions the histogram of input image based on local minimal gray level and assigns a new dynamic range for each subhistogram. To ensure many dominating portions, the DHE further segments the large subhistogram through a repartitioning test. As the DHE does not consider the mean brightness preservation, it neglects the mean brightness preserving and tends to intensity saturation artifact.

To overcome the drawbacks of the DHE, brightness preserving dynamic histogram equalization (BPDHE) has been introduced [7]. The BPDHE uses the local maximal gray level as the separating point rather than the local minimal gray level. For this reason, Ibrahim and Kong [7] claim that choosing the local maximal gray levels are better for mean brightness preservation. Finally in BPDHE, histogram equalization is implemented after assigning a new dynamic range for each subhistogram. In order to maintain the mean brightness, brightness normalization is applied to ensure that the enhanced image has similar mean brightness to that of the input image.

Research by Praveen and Sathik [8] has done comparison between original image and image enhanced by histogram equalization and contrast limited adaptive histogram equalization (CLAHE) for bone fracture crack detection using pixel value measurement. They concluded that CLAHE is better than histogram equalization. CLAHE had been claimed also to improve the contrast better in the application of automated segmentation of blood vessels in retinal images when compared to histogram equalization [9].

Kokufuta and Maruyama [10] described an approach for real time processing of the contrast limited adaptive histogram equalization (CLAHE) using an FPGA. In this approach, a histogram is generated for each pixel in an image for remapping the pixel, and each histogram is speculatively distributed without iterations by feeding back the distribution result of its previous pixel. But the computational complexity of this approach is very high [10, 11].

Ooi et al. [12] proposed a bihistogram equalization plateau limit (BHEPL) as the hybrid of the BBHE and clipped histogram equalization. BHEPL divides the histogram of input image by the value of mean brightness of the input image. Both subhistograms are clipped by each mean of histograms of the occupied intensity, respectively. At last, conventional histogram equalization methods are able to control the enhancement rate. Also these methods can avoid overamplification of noise in the image.

Recently, Wayalun [13] presented an enhancement algorithm for chromosome images based on histogram equalization (HE). Underwater imaging is quite challenging in the area of photography especially for low resolution and ordinary digital camera. Mean values of the stretched histogram are used to improve the contrast of the image [14]. An advance multiband satellite colour, contrast improvement technique of a poor-contrast satellite images, is proposed based on discrete cosine transform (DCT) in [15], the retinal images are preprocessed using adaptive histogram equalization (AHE), and the blood vessels are enhanced by applying top-hat and bottom-hat transforms in [16]. Based on the inspiration of the local contrast range transform, a new general form of fast dynamic range compression with a local-contrast-preservation (FDRCLCP) algorithm is developed to resolve image enhancement problems directly in the spatial domain [17]. Although these methods perform well for image enhancement, the enhancement process requires high computational costs with a large memory requirement, usually leading to an inefficient algorithm and requiring hardware acceleration.

In this paper, a modified method is proposed as the extension of the BHEPL and RMSHE, called quadrant dynamic with automatic plateau limit histogram equalization (QDAPLHE). First, the input image is passed through a median filter to remove the noises present in the image. Then the proposed method divides the histogram of the filtered image into four subhistograms while maintaining second separated point as the mean brightness. Then the clipping process is implemented by automatically calculating the plateau limit as the clipped level. The clipped portion of the histogram is modified to reduce the loss of image intensity value. Finally, the clipped portion is redistributed uniformly to the entire dynamic range and the conventional histogram equalization is executed in each subhistogram independently. The rest of this paper is organized as follows. In Section 2, the methodology of the proposed quadrant dynamic with automatic plateau limit histogram equalization (QDAPLHE) will be discussed in detail. Then, Section 3 presents the qualitative and quantitative analysis of existing and proposed methods. Finally, Section 4 serves as the conclusion of this work.

2. Quadrant Dynamic with Automatic Plateau Limit Histogram Equalization (QDAPLHE)

The proposed QDAPLHE method uses the fundamental idea of the RMSHE. In RMSHE the number of decomposed subhistograms increases in powers of two. Although it will produce better brightness preservation, it declines the effectiveness of the histogram equalization and yields an output image without a good enhancement; that is, the output will be the same as the input. Thus in this work, the input histogram is divided into four subhistograms. The proposed QDAPLHE consists of four processes, namely, filtering process, histogram partitioning process, clipping process, redistribution process, and histogram equalization.

2.1. Filtering Process

In many signal and image processing applications, it is necessary to smooth the noisy signals while at the same time preserving the edge information. The most commonly used smoothing techniques are linear filtering, averaging filtering, and median filtering. The linear filters smooth the noisy signals and also the sharp edges.

2.1.1. Median Filtering

A median filter finds the median of a number of elements at its input. In the standard median filtering applications, the size of the window is , where is odd. It is moved along the sampled values of the image or the signal. For each position of the window, the median of the elements within the windows are computed and then written at the output pixel located at the same position as the central element of the window. The median computed at this operation is called the running or the moving median. Since the size of the window is constant, the number of incoming elements is equal to the number of outgoing elements [18]. The dimensions of the filter mask must be odd. Mask sizes may be , , or . In many cases minimum mask size is preferred. In this paper, the mask size chosen for analysis is .

2.1.2. Padding

When the center of the mask moves closer to the border, one or more rows or columns of the mask will be located outside the image plane. There are several ways to handle this situation. One such approach is padding. Padding is the process of adding rows and columns of “0”s. Padding is stripped off at the end of the process so that the size of the filtered image is the same as the original image.

2.2. Histogram Partitioning Process

Each image has different histogram, which depends on the brightness and darkness of the image (intensity value), and this histogram is partitioned to enhance the image. The proposed QDAPLHE method divides the histogram into four subhistograms based on mean value. The mean-based partition approach tends to segment the number of pixels equally in each subhistogram. Hence, each separating point can be calculated using the following equations: where , , and are intensities set to 0.25, 0.50, and 0.75, respectively, for the total number of pixels in the histogram of the input image. and represent the width and height of the input image, respectively.

2.3. Clipping Process

Histogram equalization stretches the high contrast region of the histogram and compresses the low contrast region of the histogram [19]. As a consequence, when the object of interest in an image occupies only a small portion of the image, then the object will not be successfully enhanced by histogram equalization. Histogram equalization method causes level saturation effects as it extremely pushes the intensities towards the right or the left side of the histogram.

A clipped histogram equalization method tends to overcome these problems by restricting the enhancement rate. It is known that the enhancement from histogram equalization is heavily dependent on the cumulative density function . Therefore, the enhancement rate is proportional to the rate of . The rate of is given by

The probability density function is given by where is the histogram for intensity value “” and “” is the total number of pixels in the image. The enhancement rate is limited by limiting the value of or [20].

Therefore, the clipped histogram equalization modifies the shape of input histogram by decreasing or increasing the value in the histogram’s bins based on a threshold limit before the equalization takes place. This threshold limit is also known as the clipping limit or clipping threshold or the plateau level of the histogram and based on this threshold value, the histograms will be clipped.

To avoid the intensity saturation and overenhancement problem, the proposed QDAPLHE method adopts the clipped histogram equalization (CHE) to control the enhancement rate by defining plateau limits automatically to each subhistogram. Here, the plateau limit (or ) is determined automatically by calculating the average occupied intensity in each subhistogram.

Each plateau limit is identified as follows: where is the histogram at the intensity level “”.

Clipping process is applied after finding this plateau limit. The clipped portion can be determined as follows: where is the clipped histogram at intensity level “”.

While using the clipping process, all the values above the plateau limit are removed, which may lead to loss on original intensity value of the image. Hence, the histogram in the clipped portion is adjusted using (6) as where is the modified clipped histogram at intensity level “”. This type of clipping process has the effect of the contrast enhancement and reduces the noise amplifying artifacts.

2.4. Redistribution Process

Because of this clipping process, the subhistograms may not ensure the balance space in each subhistogram for sufficient contrast enhancement. When the side of the subhistogram is narrow, contrast enhancement obtained in narrow stretching space is less significant and wide stretching space introduces redundant contrast enhancement. Consequently, the processed image tends to suffer from loss of image details and intensity saturation artifact. To overcome these drawbacks, the clipped portion is redistributed over the entire dynamic range. For this, the proposed QDAPLHE method maintains the point as the brightness preserving. The separating points of , , and are reassigned to a new grey level represented as , , and , respectively. Consider where and are assigned to the minimum and maximum output intensity value (i.e., and (255)). The new dynamic ranges are determined for all the quadrant subhistograms.

2.5. Histogram Equalization

The final step in the proposed QDAPLHE method is to equalize each new quadrant subhistogram independently. The output of histogram equalization of this subhistogram can be determined by using (8). Consider

The total of the clipped histogram at th subhistogram is given by

2.6. Step-by-Step Procedure for Developing the Proposed QDAPLHE Method

By combining the above said five processes, the algorithm is developed and the step-by-step procedure to implement the proposed QDAPLHE technique is given in Figure 1.

At first, the input image is taken and the impulse noises present in this image are filtered using median filter. The filtered image is then passed to the histogram partitioning process where the image histogram is partitioned in to four subhistograms using (1). In each subhistogram, to avoid the over enhancement problem, clipping of histogram process is performed. For this, initially the clipping levels (plateau limits) for each subhistogram are calculated using (4). Depending on the clipping level in each subhistogram, histogram clipping is performed using (5).

Due to this clipping process, some information in histogram will be lost and to avoid this problem, histogram adjustment process is performed using (6). The clipped portion is redistributed over the entire dynamic range using (7). Finally, histogram equalization is performed using (8).

3. Experimental Results and Discussions

The performance of the proposed QDAPLHE method is tested in numerous images. The images like Einstein, girl, house, couple, copter, F16, and jet are taken from database (http://decsai.ugr.es/cvg/dbimagenes/) and CT chest, CT brain, and CT abdomen images were obtained from Kanyakumari Government Medical College, Asaripallam, Tamil Nadu, India, with the help of Dr. J.Ravindran. In this work three out of these sampling images of size pixels, namely, CT chest, CT brain, and CT abdomen are selected to evaluate the capability of the proposed method. The proposed QDAPLHE method is qualitatively and quantitatively analyzed.

3.1. Qualitative Analysis

The qualitative analysis involves performance comparison with existing brightness preserving methods, namely, HE, BBHE, DSIHE, MMBEBHE, RMSHE, BPDHE, and BHEPL. Figures 2, 3, and 4 show the output images produced by these HE methods for the CT chest, CT abdomen, and CT brain image.

From the experimental results, the enhancement produced by existing methods and proposed method are shown in Figures 2(a)2(i), 3(a)3(i), and 4(a)4(i) for various input images. In general, the conventional histogram equalization algorithms are prone to missing luminance levels due to the mapping function calculation and this will lead to cause the lack of information in case of a gradation background. To overcome these shortcomings, clipping based method (QDAPLHE) is developed and the output results are shown in Figures 2(i), 3(i), and 4(i).

Based on Figures 2(b), 3(b), and 4(b), it is clear that the histogram equalization method enhances the images, but it also amplifies the noise level of the images. From Figures 2, 3, 4(c), and 4(f) (BBHE, RMSHE), the drawback of these methods is obviously seen; that is, they preserves the mean brightness of the images without emphasizing the image details significantly; that is, the problem of intensity saturation occurs in some regions of the image even this methods improve the contrast of the image.

Figures 2(i), 3(i), and 4(i) show that the contrast of all the tested images is enhanced successfully using the proposed QDAPLHE method. In addition, this method preserves the image details successfully. Figures 2(g), 2(h), 3(g), 3(h), 4(g), and 4(h) show that BPDHE and BHEPL methods produce acceptable and natural enhanced images. Compared to these BPDHE and BHEPL methods, the proposed QDAPLHE method reduces the intensity saturation problem and also it can significantly improve the performance.

3.2. Quantitative Analysis

To prove the robustness of the proposed methods, three kinds of quantitative comparisons tests, the absolute mean brightness error, standard deviation, and peak signal to noise ratio, have been evaluated and tabulated in Tables 13, respectively.

3.2.1. Absolute Mean Brightness Error (AMBE)

The first test which is used as the performance measure is absolute mean brightness error (AMBE). AMBE is used to evaluate the ability of the enhancement method to maintain the mean brightness. One has where is the mean of the input image and is the mean of the output image.

The minimum value of AMBE results in the fact that the mean brightness of the input is successfully maintained in the output image. Table 1 shows the AMBE measure obtained from the sample images.

The AMBE values calculated by the existing methods HE, BBHE, and RMSHE are compared with the AMBE value of proposed method. From Table 1, it can be readily observed that the proposed method QDAPLHE has 13.13% less AMBE average value when compared to BHEPL, the method with second minimum average value.

3.2.2. Standard Deviation (Image Contrast)

By measuring the standard deviation, the contrast of the image can be studied.

Standard deviation “” is given by where mean is given by and “” represents the pixel value in the image.

From Table 2, it is clear that the standard deviation value obtained by the proposed QDAPLHE method is less compared to all the existing methods for all the images.

3.2.3. Peak Signal to Noise Ratio (PSNR)

Another quantitative test used to measure the richness of details and appropriateness is peak signal to noise ratio (PSNR). Based on mean squared errors (MSE), PSNR is defined as where and and are the input and output images, respectively. is the total number of pixels in the input or output images and is the number of intensity values.

The PSNR values for different images are tabulated in Table 3. From this table the PSNR values of three methods BPDHE, BHEPL, and QDAPLHE are ranked the first, second, and third highest values, respectively. It can be observed that the images processed by proposed QDAPLHE method produces the best PSNR values, as they are within the range [31 dB–42 dB]. From these values, it can be concluded that the proposed method performs image contrast enhancement and also produces images with a natural looking with less noise amplifying.

In overall, both the qualitative and the quantitative tests favor the proposed method QDAPLHE as the best among all the existing methods. Thus, it can be stated that the proposed algorithm produces the best image enhancement.

4. Conclusion

Although the histogram equalization is simple and effective algorithm for enhancement, it leads to overenhancement and intensity saturation problem. To overcome this effect, dynamic histogram equalization is powerful method for enhancing the low contrast images, and also in some cases it leads to noise amplification and intensity saturation problems. To overcome the level saturation effects occurring in histogram equalization, clipped histogram equalization methods are developed by restricting the enhancement rate. Hence, a new method QDAPLHE is proposed as a hybrid of dynamic histogram equalization method and clipped histogram equalization method. The qualitative and the quantitative analyses are performed on the proposed method and the results are represented in Figures 24 and Tables 13. From the experimental results, both the qualitative and the quantitative tests favor the proposed method QDAPLHE as the best among all the existing methods.

Conflict of Interests

The author declares that there is no conflict of interests regarding the publication of this paper.