Abstract

Fuzzy logic-based histogram equalization (FHE) is proposed for image contrast enhancement. The FHE consists of two stages. First, fuzzy histogram is computed based on fuzzy set theory to handle the inexactness of gray level values in a better way compared to classical crisp histograms. In the second stage, the fuzzy histogram is divided into two subhistograms based on the median value of the original image and then equalizes them independently to preserve image brightness. The qualitative and quantitative analyses of proposed FHE algorithm are evaluated using two well-known parameters like average information contents (AIC) and natural image quality evaluator (NIQE) index for various images. From the qualitative and quantitative measures, it is interesting to see that this proposed method provides optimum results by giving better contrast enhancement and preserving the local information of the original image. Experimental result shows that the proposed method can effectively and significantly eliminate washed-out appearance and adverse artifacts induced by several existing methods. The proposed method has been tested using several images and gives better visual quality as compared to the conventional methods.

1. Introduction

The main objective of an image enhancement is to bring out the hidden image details or to increase the image contrast with a new dynamic range. Histogram equalization (HE) is one of the most popular techniques used for image contrast enhancement, since HE is computationally fast and simple to implement [1, 2]. HE performs its operation by remapping the gray levels of the image based on the probability distribution of the input gray levels. However, HE is rarely employed in consumer electronic applications such as video surveillance, digital camera, and television, since HE tends to introduce some annoying artifacts and unnatural enhancement, including intensity saturation effect [3]. One of the reasons for this problem is that HE normally changes the brightness of the image significantly and thus makes the output image, become saturated with very bright or dark intensity values. Hence, brightness preserving is an important characteristic that needs to be considered in order to enhance the image for consumer electronic products.

In order to overcome the limitations of HE and to preserve image brightness, several brightness preserving histogram equalization techniques have been proposed. At first, Kim proposed brightness preserving bi-Histogram equalization (BBHE) [4], BBHE divides the input image histogram into two parts based on the mean of the input image, and then each part is equalized independently. Consequently, the mean brightness is preserved because the original mean brightness is retained. Wan et al. introduced dualistic sub-image histogram equalization (DSIHE), which is similar to BBHE except that the median of the input image is used for histogram partition instead of mean brightness [5]. Chen and Ramli proposed minimum mean brightness error bi-histogram equalization (MMBEBHE), which is the extension of BBHE method that provides maximal brightness preservation [6]. This algorithm finds the minimum mean brightness error between the original and the enhanced image. It employs the optimal point as the separating point instead of the mean or median of the input image. Though these methods can perform good contrast enhancement, they also cause more annoying side effects depending on the variation of gray level distribution in the histogram. Recursive mean separate HE (RMSHE) is another improved version of BBHE [7]. This method is recursively separates the histogram into multi-subhistograms instead of two subhistograms as in the BBHE. Initially, two subhistograms are created based on the mean brightness of the original histogram. Subsequently, the mean brightness from the two subhistograms obtained earlier are used as the second and third separating points in creating more sub-histograms. In a similar fashion, the algorithm is executed recursively until the desired numbers of sub-histograms are met. Then, the HE approach is applied independently on each of the subhistograms. The methods discussed previously are based on dividing the original histogram into several sub-histograms by using either the median or mean brightness. Although the mean brightness is well preserved by the aforementioned methods, these methods cannot further expand the region of subhistogram that is located near to the minimum or maximum value of the dynamic range. However, it is also not free from side effects such as washed-out appearance, undesirable checkerboard effects, and significant change in image brightness.

In order to deal with the problem mentioned above, Abdullah-Al-Wadud et al. introduced a dynamic histogram equalization (DHE) technique [8]. DHE partitions the original histogram based on local minima. However, DHE does not consider the preserving of brightness. For this purpose, Ibrahim and Kong proposed brightness preserving dynamic histogram equalization (BPDHE) [9]. This method partitions the image histogram based on the local maxima of the smoothed histogram. It assigns a new dynamic range to each partition. Finally the output intensity is normalized to make the mean intensity of the resulting image equal to the input one. Although, the BPDHE performs well in mean brightness preserving, the ratio for brightness normalization plays an important role. A small ratio value leads to insignificant contrast enhancement. For large ratio (i.e., ratio value more than 1), the final intensity value may exceed the maximum intensity value of the output dynamic range. The exceed pixels will be quantized to the maximum intensity value of gray levels and produce intensity saturation problem (in MATLAB environment). Brightness preserving dynamic fuzzy histogram equalization (BPDFHE) has been proposed by Sheet et al. which is an enhanced version of BPDHE [10]. The BPDFHE technique manipulates the image histogram in such a way that no remapping of the histogram peaks takes place, while only redistribution of the gray-level values in the valley portions between two consecutive peaks takes place. The results using BPDFHE method show well-enhanced contrast and little artifacts.

To overcome the unwanted over enhancement and noise amplifying, the fuzzy logic-based histogram equalization technique is proposed for both gray scale and color images. The proposed FHE method does not only preserve image brightness but also improves the local contrast of the original image. First, fuzzy histogram is computed using fuzzy set theory. Second, the fuzzy histogram is separated into two based on the median value of the original image. Finally, the HE approach is applied independently on each subhistogram to improve the contrast.

The remainder of this paper is organized as follows. The conventional histogram equalization is discussed in Section 2, and Section 3 presents the fuzzy image enhancement. The proposed algorithm for fuzzification and enhancement are presented in Sections 4 and 5. Simulation of the test images and the qualitative and quantitative comparison of the results are discussed in Sections 6 and 7. Finally, Section 8 concludes this paper.

2. Histogram Equalization

Consider a digital image, , which has the total number of pixels with gray levels in the range []. For a given image , the probability density function is defined as for , where represents the number of times that the gray level appears in the input image and is the total number samples in the input image. Note that () is associated with the histogram of input image which represents the number of pixels that have a specific intensity . In fact, a plot of versus is called histogram of input image . The respective cumulative density function is then defined as for . Note that by definition. Histogram equalization is a method that maps the input image into entire dynamic range (, ) by using the cumulative distribution function as a transform function. That is, let us define a transform function based on cumulative density function as Then, the enhanced image of HE can be expressed as where and are the original and enhanced images, () are the 2D coordinates of the images, and is the intensity transformation function, which maps the original image into the entire dynamic range (). However, HE produces an undesirable checkerboard effects on enhanced images. Another problem of this method is that it also enhances the noises in the input image along with the image features [1119]. In order to overcome these problems, several methods were proposed for certain purposes. For example, BBHE is proposed for preserving the mean brightness of a given image while enhancing the contrast. The concept will be introduced in the remainder of the section.

Let be the mean of the image , and assume that . Based on input mean , the image is decomposed into two subimages and as where Note that subimage is composed of and the subimage is composed of .

Next, define the respective probability density functions of the subhistograms and as where , and where , in which and represent the respective numbers of in and , and and are the total number of samples in and , respectively. Note that and are associated with the histogram of the input image which represents the number of pixels that have a specific intensity . The respective cumulative density functions for subhistograms and are then defined as Let us define the following transform functions based on cumulative density functions as Based on these transform functions, the decomposed sub-images are equalized independently and the composition of the resulting equalized sub-images which constitute the output image. The overall mapping function is defined as: If we note that , , it is easy to see that equalizes the sub-image over the range (), whereas equalizes the sub-image over the range (). As a consequence, the input image is equalized over the entire dynamic range () with the constraint that the samples less than the input mean are mapped to (), and the samples greater than the mean are mapped to ().

3. Fuzzy Image Enhancement

Fuzzy image enhancement is done by mapping image gray level intensities into a fuzzy plane using membership functions, the membership functions are modified for contrast enhancement, and the fuzzy plane is mapped back to image gray level intensities. The aim is to generate an image of higher contrast than the original image by giving the larger weight to the gray levels that are closer to the mean gray level of the image than to those that are farther from the mean. In recent years, many researchers have applied fuzzy set theory to develop new techniques for image enhancement. Fuzzy set theory offers a mathematical framework for a new image understanding. An image of size pixels and L gray levels can be considered as an array of fuzzy singletons, each having a value of membership denoting its degree of brightness relative to some brightness levels with [20]. The fuzzy matrix corresponding to this image can be written as where is the intensity of ()th pixel and is its membership value. Fuzzy image processing consists of three stages: fuzzification (image coding), operations in the membership plane, and defuzzification (decoding of results). Fuzzification does mean that we assign image with one or more membership values regarding interesting properties (e.g. brightness, edginess, and homogeneity). After transformation of image into the membership plane (fuzzification), a suitable fuzzy approach modifies the membership values [21]. To achieve modified gray levels, the output of membership plane should be decoded (defuzzification). It means that the membership values are retransformed into the gray-level plane. For instance, to manage the grayness ambiguity, the gray levels must be fuzzified in relation to the location of image histogram. It means that each gray level is assigned to a degree of membership depending on its location in the histogram. Generally, dark pixels are assigned as low membership values, and bright pixels are assigned as high membership values.

3.1. Fuzzy Contrast/Brightness Adaptation

Contrast and brightness are image qualities that are specially important if the preprocessing is done for human perception [22]. There are two different ways to adapt the image contrast or brightness: gray level modification with suitable function : or histogram operations. The performance of the first approach depends on the shape of the selected function. The second approach modifies the image histogram. The histogram equalization is one of the best known histogram techniques. The modified gray levels are computed by where the right side should be round off in order to achieve integer values for . Fuzzy techniques use different tools of fuzzy set to adjust image contrast: minimization of fuzziness, equalization using fuzzy expected value, hyperbolization, -enhancement, and enhancement using fuzzy relations.

4. Proposed Work

In the conventional histogram equalization method, the remapping of the histogram peaks (local maxima) takes place which leads to the introduction of undesirable artifacts and large change in mean image brightness. Hence, the proposed fuzzy logic-based histogram equalization is not only preserves the image brightness but also improves the local contrast of the original image. First, fuzzy histogram is created using fuzzy logic to handle the inexactness of gray level values in a better way, and it is separated into two sub-histograms based on the median value of the original image. Then, each histogram is assigned to a new dynamic range. Finally, the HE approach is applied independently on each sub-histogram. The FHE technique consists of the following operational stages:(i)image fuzzification and intensification;(ii)fuzzy histogram computation;(iii)histogram partitioning and equalization;(iv)image defuzzification.The following subsections include the details of the steps involved.

4.1. Image Fuzzification and Intensification

In image fuzzification, the gray level intensities are transformed to fuzzy plane whose value ranges between 0 and 1. An image of size and intensity level in the range () can be considered as a set of fuzzy singletons in the fuzzy set notation, each with a membership function denoting the degree of having some gray level. The fuzzy matrix corresponding to this image can be expressed as Here indicates dark, and indicates bright. Any intermediate value refers to the grade of maximum gray level of the pixel. A set consisting of all is called the fuzzy property plane of the image. In order to reduce the amount of image fuzziness, contrast intensification is applied to the fuzzy set to generate another fuzzy set, and the membership function of which is expressed as

4.2. Fuzzy Histogram Computation

To enhance the image, we concentrate on contrast enhancement. This is achieved by making dark pixel more darker and making bright pixel brighter. Hence, fuzzy histogram is computed using (16). A fuzzy histogram is a sequence of real numbers , , here is the frequency of occurrence of gray levels that are around . By considering the gray value as a fuzzy number , the fuzzy histogram is computed as where is the fuzzy membership function. Fuzzy statistics is able to handle the inexactness of gray values in a much better way compared to classical crisp histograms thus producing a smooth histogram.

4.3. Histogram Partition and Equalization

Based on input median , the fuzzy histogram is decomposed into two subhistograms and as where Next, define the respective probability density functions of the sub histograms and as where , and where , in which and represent the respective numbers of in and , and and are the total number of samples in and , respectively. Note that and are associated with the fuzzy histogram of the input image which represents the number of pixels that have a specific intensity . The respective cumulative density functions for sub-histograms and are then defined as

Let us define the following transform functions based on cumulative density functions as

Based on these transform functions, the decomposed sub-images are equalized independently, and the composition of the resulting equalized sub-images which constitute the output image. The output image is expressed as where

If we note that , , it is easy to see that equalizes the sub-image over the range (, ), whereas equalizes the sub-image over the range (, ). As a consequence, the input image F is equalized over the entire dynamic range (, ) with the constraint that the samples less than the input median are mapped to (, ) and the samples greater than the median are mapped to (, ).

4.4. Image Defuzzification

Image defuzzification is the inverse of fuzzification. The algorithm maps the fuzzy plane back to gray level intensities. Finally, the enhanced image can be obtained by the following inverse transformation: where denotes the gray level of the th pixel in the enhanced image and denotes the inverse transformation of  . This brightness preserving procedure ensures that the mean intensity of the image obtained after process is the same as that of the input.

5. Contrast Enhancement of Color Images

Most electronic equipments acquire and display the color images. In this respect, the method of enhancing color images would be of better interest. Hence, the contrast enhancement can be easily extended to color images. The most obvious way to extend the proposed gray-scale contrast enhancement to color images is to apply the method to luminance component only and to preserve the chrominance components. This method produces better perceptible results as compared to other conventional methods.

6. Image Quality Assessment

Image quality assessment (IQA) aims to use computational models to measure the image quality consistently with subjective evaluations. IQA indices used in our evaluation include entropy or average information contents (AIC) and natural image quality evaluator (NIQE) index for measuring image quality.

The AIC is used to measure the content of an image, where a higher value indicates an image with richer details. Higher value of the AIC indicates that more information is brought out from the images. NIQE is used for measuring image quality. Smaller NIQE indicates the better image quality. The average information contents or entropy is defined as where is the probability density function of the th gray level [23]. Moreover, natural image quality evaluator (NIQE) index is used for measuring image quality [24, 25]. It is mainly based on the construction of a “quality aware” collection of statistical features based on a simple and successful space domain natural scene statistic (NSS) model. These features are derived from a corpus of natural, undistorted images. The quality of a given test image is then expressed as the distance between a multivariate gaussian (MVG) fit of the NSS features extracted from the test image and a MVG model of the quality aware features extracted from the corpus of natural images. The NIQE score typically has a value between 0 and 100 (0 represents the best quality, 100 the worst).

7. Results and Discussion

In this section, comparison between the proposed method and several other conventional methods such as histogram equalization (HE), brightness preserving bi-histogram equalization (BBHE), minimum mean brightness error bi-histogram equalization (MMBEBHE), and brightness preserving dynamic fuzzy histogram equalization (BPDFHE) are presented. A subjective assessment to compare the visual quality of the images is carried out. An Average information contents (AIC) and natural image quality evaluator (NIQE) index is used to assess the effectiveness of the proposed method. The proposed method was tested with several gray scale and color images and had been compared with other conventional methods HE, BBHE, MMBEBHE, and BPDFHE. The test images used for the experiments are available on the website http://www.ponomarenko.info/tid2008.htm.

Figure 1 shows the resulting images obtained by the various existing methods and proposed method for the gray scale image. The histograms of all resultant images in Figure 1 are illustrated in Figure 2. Figure 1(b) shows that HE provides a significant improvement in image contrast. However, it also amplifies the noise level of the images along with some artifacts and undesirable side effects such as washed-out appearance. Figure 1(c) shows that the BBHE method produces unnatural look and insignificant enhancement to the resultant image. However, it also has unnatural look because of over enhancement in brightness. This can be proved from the result shown in the histogram of two methods shown in Figures 2(b) and 2(c) which are squeezed to left tail of the histogram.

The results of MMBEBHE and BPDFHE (Figures 1(d) and 1(e)) show good contrast enhancement, and they also cause more annoying side effects depending on the variation of gray level distribution in the histogram. The output histograms of MMBEBHE and BPDFHE fail to achieve smooth distribution between low and high gray levels. Thus, the enhancement results of MMBEBHE and BPDFHE are visually unpleasing. The results of HE, BBHE, MMBEBHE, and BPDFHE show that they do not prevent the washed-out appearance in overall image due to significant change in brightness. The result shows that the proposed method preserves the naturalness of image and also prevents the side effect due to the significant change in brightness effectively. By visually inspecting the images on these figures, we can clearly see that only the proposed method is able to generate natural looking image and still offer contrast enhancement. Since the output histogram of proposed method achieves a smoother distribution between low and high gray values, as shown in Figure 2(f), its result is more natural looking. The histogram of FHE is successfully distributed evenly to its full dynamic range as compared to other conventional methods. Figure 3 shows the resulting images obtained by the various existing methods such as HE, BBHE, MMBEBHE, BPDFHE, and proposed method for the color image. The performance of FHE is evaluated on various color images. These images are shown in Figure 4. Figures 5 and 6 show the comparison of average AIC and NIQE values between the proposed method and other conventional methods for various images. Further, the qualities of the test images which are enhanced using the aforementioned techniques that are measured in terms of AIC and NIQE are given in Tables 1 and 2. According to Table 1, the FHE produces the highest AIC and thus becomes the best method to bring out the details of the images. Table 2 shows the natural image quality evaluator index of tested images. From Table 2, it is found that FHE produces lowest NIQE values as compared to the other conventional methods. Hence, FHE produces enhanced images with natural looking. Based upon qualitative and quantitative analyses, the proposed FHE method has been found effective in enhancing contrasts of images in comparison to a few existing methods. In addition, fuzzy histogram equalized images uses full dynamic range of the pixel values for maximum contrast. The performance of the proposed method has been compared with five state-of-the-art methods, both quantitatively and visually. Experimental result shows that the proposed method not only outperforms in contrast enhancement but also provides good visual representation in visual comparison. Hence, FHE gives better visual quality images.

8. Conclusion

In this work, Fuzzy logic-based histogram equalization is presented for image contrast enhancement. FHE uses fuzzy statistics of digital images to handle the inexactness of gray level values in a better way compared to classical crisp histograms, resulting in improved performance. It can also improve the color content, brightness, and contrast of an image automatically. This algorithm was tested on different gray scale and color images (they were extracted from the TID2008 database). The qualitative and subjective enhancement performance of the proposed FHE algorithm was evaluated and compared to the other conventional methods for different gray scale and color natural images. The performance of proposed FHE algorithm was evaluated and compared in terms of AIC and NIQE indices. The simulation results demonstrated that the proposed FHE algorithm provided better results as compared to conventional methods such as histogram equalization (HE), brightness preserving bi-histogram equalization (BBHE), minimum mean brightness error bi-histogram equalization (MMBEBHE), and brightness preserving dynamic fuzzy histogram equalization (BPDFHE) for different color images. The visual enhancement results of proposed FHE algorithm were also better as compared to the other conventional methods for different gray scale and color natural images. Observing from the simulation results obtained, the FHE has produced the best performance for both qualitative and quantitative evaluations. Experimental results demonstrate that the proposed method can effectively and significantly eliminate the washed-out appearance and adverse artifacts induced by several existing methods. This method is simple and suitable for consumer electronic products.