Abstract

This paper puts forward a novel image enhancement method via Mean and Variance based Subimage Histogram Equalization (MVSIHE), which effectively increases the contrast of the input image with brightness and details well preserved compared with some other methods based on histogram equalization (HE). Firstly, the histogram of input image is divided into four segments based on the mean and variance of luminance component, and the histogram bins of each segment are modified and equalized, respectively. Secondly, the result is obtained via the concatenation of the processed subhistograms. Lastly, the normalization method is deployed on intensity levels, and the integration of the processed image with the input image is performed. 100 benchmark images from a public image database named CVG-UGR-Database are used for comparison with other state-of-the-art methods. The experiment results show that the algorithm can not only enhance image information effectively but also well preserve brightness and details of the original image.

1. Introduction

Enhancement technology is regarded as one of the most active fields of digital image processing. It improves the quality and appearance for low contrast image, and it can be used in monitoring, imaging systems, human-computer interaction [13], and many other areas [49]. The histogram equalization (HE) technique is simple and easily implemented, which is most extensively utilized for contrast enhancement. HE utilizes the cumulative density function (CDF) of image for transferring the gray levels of original image to the levels of enhanced image. The main drawback of HE is that it tends to change the mean brightness of the image to the middle level of the dynamic range and results in annoying artifacts and intensity saturation effects. This drawback makes HE technique unsuitable for many consumer electronics applications, for example, TV and cameras.

In order to overcome the shortcomings mentioned above, many other HE-based methods have been proposed, such as the brightness preserving bihistogram equalization (BBHE) [10], dualistic subimage histogram equalization (DSIHE) [11], and minimum mean brightness error bihistogram equalization (MMBEBHE) [12]. BBHE [10] partitions the histogram based on the image mean while DSIHE [11] uses image median to segment. MMBEBHE [12] recursively divides the image histogram into multiple groups based on mean brightness error (MBE). Although these methods have made great progress, they still have their own drawbacks, including failing with images having nonsymmetric distribution [10], failing to preserve mean brightness [11], producing more annoying side effects [12], and losing structural information [13]. In these techniques, however, desired improvement may not always be achieved, and the difference between input and output image is minimal [14].

Chen and Ramli proposed the method called recursive mean-separate histogram equalization (RMSHE [15]), in which the authors suggested recursive division of histograms based on the local mean. The mean brightness of processed image approaches towards the mean brightness of input image. Wang et al. improved DSIHE [11] into recursive subimage histogram equalization (RSIHE [16]) based on contrast enhancement, by introducing recursive segmentation in the similar manner as Chen and Ramli proposed in [15], although this method is similar to RMSHE [15] but it uses median values instead of mean values to divide histogram into subhistograms.

Adaptively modified histogram equalization (AMHE) [17] method is developed by Kim et al., which can modify the probability density function (PDF) of the grayscale as well as apply histogram specification to the modified PDF. Unfortunately, the entire redistribution to the original histogram by those methods can cause overenhancement, underenhancement, and some artifacts appearing in some smooth regions. Although the AMHE [17] does not produce any degradation, it darkens the bright areas of the sky and fails to boost the brightness of the dark regions.

In addition, some other methods based on histogram equalization for contrast enhancement with brightness enhancement have also been proposed, such as the dynamic histogram specification introduced by Sun et al., which preserves the shape of the input image histogram but does not enhance it significantly [18]. Tsai et al. suggested a contrast enhancement algorithm for color images [19, 20]. Huang et al. proposed an adaptive gamma correction with weighting distribution (AGCWD [21]) to enhance the contrast and preserve the overall brightness of an image; in the method, the gamma correction and a probability distribution for luminance pixels were used. The AGCWD technique may not give desired results when an input image lacks bright pixels since the highest intensity in the output image is bounded by the maximum intensity of the input image, because the highest enhanced intensity will never cross the maximum intensity of the input image [22]. Besides, AGCWD [21] leads to loss of information in processed image due to its sharp increasing resultant transformation curve described below.

An image enhancement technique using the idea of exposure value, named image enhancement using exposure-based subimage histogram equalization (ESIHE [23]), was advanced. The method divided the clipped histogram into two parts by using the precalculated exposure threshold [24]. The effects of using intensity exposure in histogram segmentation before histogram clipping were studied in [25]. Through simulation on standard images, low contrast images, and noisy images, the study showed that [25] could yield a certain enhancement results; however, the method usually causes underenhancement. Tang and Mat Isa introduced an algorithm named bihistogram equalization using modified histogram bins (BHEMHB) [26], which segmented the input histogram based on the median brightness and altered the histogram bins before HE is applied, but it made limited improvement for contrast.

In order to effectively increase the contras of the input image with brightness and details well preserved, an efficient algorithm named Mean and Variance based Subimage Histogram Equalization (MVSIHE) is developed in this paper. The proposed method is more effective for preserving the mean brightness and details of the enhanced image while improving the contrast compared with some other state-of-the-art methods. According to the experiments based on 100 images for our method, we know that the MVSIHE technique can achieve the multiple objectives of entropy maximization, details, and brightness preservation as well as control on overenhancement. The main contributions of this paper are as follows. Firstly, we introduce the mean and variance based algorithm to divide the histogram of the image. Secondly, a novel transformation called hyperbolic tangent transformation is developed to modify the histogram bins to overcome this domination problem. Thirdly, we put forward a normalization transformation, which can make the brightness component of the output image have a wider dynamic range and the output image look more natural and clearer. Furthermore, results indicate that the proposed method is a better approach compared to the state-of-the-art methods.

This paper is organized as follows: Section 2 describes the proposed MVSIHE method. Data samples and performance evaluations are given in Section 3. Section 4 shows experimental results and comparisons with state-of-the-art methods, and our concluding remarks are included in Section 5.

2. Proposed Image Enhancement Method

2.1. Threshold Calculation Based on Mean and Variance

The histogram of an image is divided into four parts with three thresholds which are adaptive and obtained by the same method. The procedure to obtain the thresholds will be presented in detail as follows.

An input image is given; let be the global histogram of the input image , where and represent lower and uppermost intensities of the image . is the histogram of the gray level , which is described aswhere is the of gray level in the image , the pdf of the image, pdf, can be defined as where is the total number of pixels in the input image .

The threshold value for histogram segmentation can be obtained. First, we divide the whole histogram into two parts by an adaptive threshold . Then the two parts can be presented as and . The probability of each part can be solved by

Next, the mean value of each part can be calculated by

Therefore, the mean of the whole image is described as

Then, we can seize the variance between the two parts by

Then the optimization model can be defined asWe can obtain the optimal threshold by (7), which is utilized to segment the histogram of image. Note that we set ; the optimal thresholds and of the two parts up and down the threshold can also be obtained in the same way as the above, respectively. Finally, the histogram is segmented into four subhistograms; that is, and are the boundary values of the luminance range within the th segmentation. Hence, the all subimages are captured bythe pdf of th subhistogram is represented by where is the number of pixels of the th segmentation. After the segment of input image histogram, the next stage of processing procedure is histogram modification. As mentioned in the introduction, CHE emphasizes the domination of high-frequency histogram bins, thus resulting in loss of details in the image. Low-frequency histogram bins tend to be swallowed by high-frequency bins in the neighborhood. MVSIHE modifies the histogram bins to overcome this domination problem. Histogram bin modification is performed using (11) for the subhistogram [27]. where is the total number of pixels in the th subimage.

2.2. Histogram Equalization

CHE involves mapping an input gray level using transformation function , which can be defined as where and represent the minimum and maximum gray levels, respectively. As observed in (8), the remapping of the input image is within the entire dynamic range [] after applying CHE. The proposed method equalizes the modified subhistograms by (14); thereafter, the equalized subhistograms are integrated to produce the final enhanced output image.

2.3. Normalization of Intensity Levels

In our proposed method, each segment is equalized independently and output image is obtained by adding the equalized subsegments. This may result in saturation of intensities and interference caused by nonuniform light; in order to solve the problems, we utilize the normalization of intensity levels of the processed image. The normalization transformation is defined aswhere is a matrix of the input image’s luminance component and and are the maximum and the minimum values of , respectively. and are the boundary values of the luminance range within , without loss of generality, is set as 0, and is 255 to obtain a maximum luminance range for 256 gray levels.

After normalization of intensity levels, for the sake of getting a more comprehensive and informative information output image, we fuse and together by the following: where is image obtained after applying (15), is input image, and is finally output image. Parameter is between 0 and 1. Figure 1 shows the statistical results (100 test images) with different parameters . From Figures 1(a), 1(b), and 1(c), we can know that the average values of Peak Signal-to-Noise Ratio (PSNR), Discrete Entropy (DE), and Absolute Mean Brightness Error (AMBE) can obtain optimum value when is roughly to 0.6.

3. Data Samples and Performance Evaluations

3.1. Data Samples

In this paper, we compare the performance of the proposed method with some other state-of-the-art methods: DSIHE [11], RMSHE [15], MMBEBHE [12], RSIHE [16], ESIHE [23], and BHEMHB [26]. The MVSIHE and other HE-based image enhancement methods for comparison are tested by using 100 benchmark images from a public image database named CVG-UGR-Database [28].

3.2. Subjective Evaluation

Subjective evaluation of contrast enhancement is necessary as well as objective evaluation. The enhancement results can only be appreciated if the resultant image gives pleasurable effect in appearance. By visual quality inspection the judgment of annoying artifacts, overenhancement, and unnatural enhancement can be done. The visual assessment results are effective quality measures to judge the performance of contrast enhancement algorithm.

3.3. Objective Evaluation

Qualitative analysis involves visually evaluating the image enhancement results. The quality of the enhanced images determines the capability of the techniques, which are justified by human eyes. Here, a qualitative analysis regarding the amount of details of the image, level of contrast, homogeneity of regions, and naturalness is performed; we can establish numerical justifications by quantitative measurements. However, it is difficult to find an objective measure that is in accordance with the subjective assessment due to the lack of any universally accepted criterion. Here, we evaluate the performance of enhancement techniques using three quality metrics: Peak Signal-to-Noise Ratio (PSNR), Discrete Entropy (DE), and Absolute Mean Brightness Error (AMBE).

3.3.1. Evaluation of Contrast Enhancement

The proposed method not only enhances the contrast of the image, but also obtains a natural-looking output image without undesirable artifacts. The noise level should not be amplified during the enhancement process [29]. For this reason, two analyses named PSNR and image contrast function are used. To calculate the PSNR value, MSE is firstly computed by (18). PSNR is broadly used to evaluate the quality achievement between the original and output images [13, 3033] and the degree of contrast enhancement in the image. A large PSNR value which is desired for it means that the processed image is least degraded compared with the original input image.where is the gray level of the original image at a 2D position and is the gray level of the processed image at the same position.

Besides PSNR, image contrast function is used to evaluate the contrast improvement as well, as indicated in (20) [34, 35]. where and represent the width and height of the image, respectively. The greater , the greater dynamic range of gray levels; thus the output image can provide better contrast and additional information contained in the image. is then taken as a logarithm to convert it into decibel (dB) unit by

3.3.2. Evaluation of the Richness of Information

Entropy is a measure of the richness of information in the image, and the larger entropy value the image has, the higher the information contained in the output image is.

The entropy for the whole image can be defined by

The entropy of the image can achieve maximum value only when [27]. This is the scenario when the probability distribution of the image intensity values is uniform, which is the concept behind HE.

3.3.3. Evaluation of Brightness Preservation

AMBE is usually used to measure mean brightness preservation, which can be mathematically represented by (22) [3638]. AMBE exhibits the difference in mean brightness between the input and the output image. Mean brightness of the input and processed images is calculated using (23) and (24), respectively. Thus, a small AMBE value is desired, and a zero AMBE value is the best result.where and are the mean brightness of the input and processed images, respectively.

4. Experiment Results and Discussion

4.1. Experiment Results

In this section, the simulation results of the proposed method MVSIHE are compared with existing histogram equalization based methods mentioned. Table 1 provides the list of methods with their detailed description. The comparison is from the aspects of contrast enhancement, brightness preservation, naturalness of the image, and ability to preserve details in the image.

In this paper, the test images are given names as F16, Bridge, Couple, Fish, Lena, and Plane; they are presented in this study for initial performance evaluation on the proposed MSVIHE. The results obtained for each image are presented in Figures 27, respectively. Image (a) indicates the input image, while images (b) to (i) represent the respective resultant images after applying other compared methods and the proposed MSVIHE. The quantitative results of these test images are illustrated in Tables 25. The best value for each analysis is in bold face.

For the first test image F16 in Figure 2(a), the proposed MVSIHE yields output image with the mean brightness closest to the input image. The overall appearance of the image is very similar to the input image and for the proposed MVSIHE method can get the lowest AMBE value. The proposed method can well preserve most of the details of the image compared with the other methods for it grapes the highest value of entropy. This can be seen from the highlighted area with red boxes. MVSIHE also produces images with homogeneous texture. Most of the image area, particularly the background of the image, appears to have a smooth texture with a few small regions. The largest PSNR value is obtained by the MVSIHE-ed image, which shows that the technique least amplified the noise level in the image during the enhancement process. The proposed MVSIHE can well preserve the brightness of the processed image due to its largest contrast value.

For the test image Bridge in Figure 3(a), just as the contrast enhancement which is more significant compared with the other techniques, most details of the image are well preserved with its highest value of entropy. This can be seen from the words highlighted with red boxes. Processed images are with relatively good contrast, the value of the contrast by MVSIHE is ranked as second, and the effects of contrast enhancement are not far-off between all the methods. The MVSIHE method least amplifies the noise level in the image during the enhancement process for it can obtain the largest PSNR value.

The proposed MVSIHE can simultaneously enhance the overall contrast of the test image Couple to an optimum level and preserve the details of the image, which can be observed on the window area highlighted with a box, as shown in Figure 4(h). It is clear that the saturation effect is less apparent and thus the window area can be clearly seen. This saturation effect (i.e., the window area regions become too bright) can be observed in the RSIHE-ed image. Observation on the ability of the proposed MVSIHE to preserve details is supported by the entropy measurement, in which the enhanced image has an entropy value larger than most of the methods, indicating that the information entropy is well preserved. The MVSIHE-ed image has the largest value of PSNR (i.e., 22.6008), showing that BHEMHB least degrades the image during the enhancement process. In addition, the MVSIHE-ed image has the largest contrast measurement, which suggests that the proposed method can well preserve the brightness of the output image.

The MVSIHE-ed image has the largest value of PSNR (i.e., 26.401), showing that MVSIHE least degrades the image during the enhancement process. The proposed MVSIHE can simultaneously enhance the overall contrast of the Fish image to an optimum level and preserve the details. This outcome can be observed on the fish scale highlighted with a box, as in Figure 5(h). Observation on the ability of the proposed MVSIHE grapes the biggest value of entropy, demonstrating that the information entropy is well preserved. The ability to preserve details comes with a small tolerance in mean brightness preservation. Furthermore, the effects of contrast enhancement are less momentous for all methods, which demonstrates relatively good contrast. The ability of MVSIHE in contrast enhancement is about the same to the other methods. The output image enhanced by MVSIHE, as shown in Figure 5(h), also exhibits a natural look, which means that it does not look too artistic after the enhancement process.

The input image Lena has the characteristics that regions that are either fully black or fully white are relatively few, as shown in Figure 6(a). The resultant image enhanced with the proposed MVSIHE has a clearer contour compared with images using the other methods, as can be seen on regions within boxes. Unlike images enhanced with other techniques, especially RMSHE, the image enhanced with MVSIHE presented fewer saturation effects. The proposed MVSIHE ranked first place for test image Lena in the entropy measurement, a ranking that is slightly less than that of other methods. We can know that MVSIHE is specifically designed to preserve the details; the difference reveals that the performance of MVSIHE is comparable with others in retaining image details. Furthermore, the proposed method can well preserve brightness for its lowest AMBE value.

For the test image Plane in Figure 7(a), the proposed MVSIHE produces an output image with most of the details well preserved because it possesses the highest entropy value. This result can be seen on regions highlighted with boxes, where the writing does not disappear and small details, such as edges of the plane, can be seen. The shifting effect of mean brightness is pregnant in the DSIHE-ed and RMSHE-ed images, resulting in the loss of naturalness in these images. By contrast, the resultant image enhanced with MVSIHE has a smooth texture, wherein less nonhomogenous regions are observed, especially on the background, compared with other techniques. In addition, the MVSIHE-ed image has the largest contrast measurement.

Findings on the performance of the proposed techniques for the six test images, namely, F16, Fish, Plane, and Lena, are satisfactory when compared with those of the seven other methods. Thus, apart from these six test images, the four objective evaluation functions (i.e., entropy, PSNR, AMBE, and Contrast) are employed on the 100 test images to further validate the capability and performance of the proposed MVSIHE. Figure 8 presents the average values of these quantitative analyses for 100 test images.

Figure 8 indicates that the proposed method illustrates excellent performance when compared with the other HE-based methods. In average, the MVSIHE-ed image contains the highest amount of information. It can well preserve the richness and details of information in output image due to its highest entropy value, which reaches 7.26 for an average of 100 test images. The proposed MVSIHE outperforms all the other methods, with its largest PSNR value, which shows that the output images enhanced by MVSIHE have a natural appearance with minimum artifacts compared with others. The proposed method can least degrade the image during the enhancement process.

4.2. Discussions

With regard to mean brightness, the MVSIHE-ed image demonstrates high capability, especially when compared with the DSIHE-ed images. DSIHE method yields an image that is too bright when referred to the original image. AMBE values for all the techniques are computed, and MVSIHE can obtain the lowest value compared to all the others. The naturalness of the image is maintained in the MVSIHE-ed image, because the image is enhanced at a sufficient level without introducing an unpleasant look or nonhomogeneous regions while improving the contrast of the input image. The highest PSNR value by the MVSIHE-ed image indicates that MVSIHE enhances the image with minimum noise and artifacts. Contrast measurements show that the MVSIHE can get the largest value mostly, which illustrates that the contrast enhancement performance of MVSIHE is better than others.

Moreover, MVSIHE acquires the lowest AMBE value. The AMBE value obtained by MVSIHE is notably better than that obtained by RSIHE technique because RSIHE is specifically designed to maintain the mean brightness of the image. The lowest AMBE value indicates that MVSIHE possesses the highest capability in retaining the mean brightness of the image compared with all the other methods, in which the output images enhanced with MVSIHE typically have a mean brightness closest to the input image.

With regard to the overall contrast enhancement, otherwise, the proposed MVSIHE ranked second among the seven methods. The range of contrast measurements is small (i.e., only 1.69 dB), which indicates that despite its outstanding performance in detail preservation and mean brightness preservation, MVSIHE demonstrates comparable performance in contrast enhancement. Both qualitative and quantitative analyses show that the proposed MVSIHE yields promising enhancement results.

5. Conclusion

This paper presents a new method referred to as the Mean and Variance based Subimage Histogram Equalization (MVSIHE) with brightness and details preservation. The main idea lies on recursively separating the input histogram based on the mean and variance. The effect of intensity levels normalization and fusion strategy is also investigated in this paper. Unpleasant artifacts and unnatural enhancement may occur due to excessive equalization while enhancing the contrast of an input image, and the ultimate goal of MVSIHE is to allow higher level of brightness and details preservation as much as possible. The contrast of the input image is effectively increased with brightness and details well preserved. All findings are supported by experimental results, which have shown that the proposed method has superior performance to some state-of-the-art methods. In the future, the proposed MVSIHE could be modified so that it can be incorporated in several application areas such as digital photography, video processing, and other applications in consumer electronics.

Conflicts of Interest

Liyun Zhuang and Yepeng Guan declare that there are no conflicts of interest regarding the publication of this paper.