DOI QR코드

DOI QR Code

A Novel Filter ed Bi-Histogram Equalization Method

  • Received : 2013.10.06
  • Accepted : 2015.04.30
  • Published : 2015.06.30

Abstract

Here, we present a new framework for histogram equalization in which both local and global contrasts are enhanced using neighborhood metrics. When checking neighborhood information, filters can simultaneously improve image quality. Filters are chosen depending on image properties, such as noise removal and smoothing. Our experimental results confirmed that this does not increase the computational cost because the filtering process is done by our proposed arrangement of making the histogram while checking neighborhood metrics simultaneously. If the two methods, i.e., histogram equalization and filtering, are performed sequentially, the first method uses the original image data and next method uses the data altered by the first. With combined histogram equalization and filtering, the original data can be used for both methods. The proposed method is fully automated and any spatial neighborhood filter type and size can be used. Our experiments confirmed that the proposed method is more effective than other similar techniques reported previously.

Keywords

1. INTRODUCTION

Image contrast enhancement methods are widely used in many fields, such as medical imaging, satellite imaging, consumer electronics, digital TV, digital cameras, and so forth. Many methods have been introduced for image enhancement, among which histogram equalization is the most commonly used due to its effectiveness and simplicity.

Global histogram equalization (GHE) transforms the result image to ensure a uniform distribution of gray levels [1]. This method flattens and stretches the dynamic range of the image’s histogram, which results in overall contrast improvement [2-6]. Essentially, GHE maps the gray levels in the enhanced image through a transformation function that depends on the distribution of gray levels in the input image. This transformation function stretches the contrast of the high histogram region and compresses the contrast of the low histogram region. GHE achieves comparatively better performance on almost all types of image [7]. However, it changes the original image’s brightness, while reducing the quality of the original image and in some cases causes a washout effect (Fig. 1).

Fig. 1.Illustration of washout appearance: (a) Darker Mars image and (b) resultant image of GHE.

To overcome the washout effect, brightness-preserving extensions of GHE have been developed, such as brightness-preserving bi-histogram equalization (BBHE) [8], dualistic sub-image histogram equalization (DSIHE) [9], and minimum mean brightness error bi-histogram equalization (MMBEBHE) [10]. These methods partition the histogram of the original image into sub-histo-grams and then equalize each sub-histogram independently with GHE. In doing so, they equalize some sub-images over their ranges toward the mean and equalize others over their ranges away from the mean, depending on their respective histograms. Thus, the resulting equalized sub-images preserve the overall mean brightness. BBHE, DSIHE, and MMBEBHE divide the histogram into two sub- histograms as different dividing points. BBHE uses the mean value of the histogram, while DSIHE uses the median value. MMBEBHE first tests all possible values of the separation point from all gray levels. The differences between the mean value of the original image’s histogram and the mean values of the sub-histograms are calculated for each separation point. The separation point is then chosen to achieve the minimum difference between the input and output means.

Another major drawback of GHE is that it cannot adapt the local information of the image. Although many methods have been developed to improve local contrast [11,12], their computational complexity is very high and they sometimes cause over-enhancement, which may affect the characteristics of the original image.

Some methods have been developed to reduce these drawbacks [13-15]. These methods divide the input histogram bins into sub-bins using neighboring information, and can therefore enhance local contrast and prevent over-enhancement. However, these methods do not provide a great deal of enhancement.

Previous studies did not consider the enhancement of noisy images. Therefore, this paper presents a novel histogram equalization method, which is based on brightness-preserving methods and neighborhood metrics to improve local contrast. We also propose the use of filters to improve image quality [16]. This is expected to not only eliminate the above drawbacks of previous GHE methods but also to reduce noise from the input image. It is possible to use the filtering technique directly; however, our method saves time by combining the filtering process using neighboring information checked on each pixel in the neighborhood metric. The neighborhood metric is not efficient because neighboring information is changed from the original image after applying the filters, and therefore the filtering technique is applied simultaneously.

The remainder of this paper is organized as follows. Section 2 discusses related work and Section 3 presents the proposed method called filtered bi-histogram equalization method (FBHEM). Section 4 presents simulation results demonstrating the effectiveness of FBHEM compared to GHE, BBHE, DSIHE, and MMBEBHE. Section 5 concludes the paper.

 

2. RELATED WORK

2.1 Global histogram equalization

Let h(i) be the -th bin of intensity level of original image f, and then p(i) be the probability that the gray level of any given pixel i (0 ≤i ≤ L-1).

where n(i) is the number of pixels of i-th intensity level in image f, N is the total number of pixels of image f, and L is the discrete intensity level. The cumulative distribution function (CDF) P(i) is defined as:

GHE maps the original image to the resultant image using the intensity transformation function:

where f and g are the original and resultant images, respectively, (x, y) are the 2D coordinates of the images, and T is the intensity transformation function, which maps the original image to the entire dynamic range [0, L-1], using CDF:

2.2 Bi-histogram equalization

Let m be the mean of the image f and assume that m ∈ [0, L-1]. Based on m, the image is separated into two sub-images f1 and f2 as

where

and

Next, we define the respective probability distribution functions of sub-images f1 and f2 as

and

in which n1(k) and n2(k) represent the respective values of k in the two sub-images f1 and f2, and n1 and n2 are the total values of f1 and f2, respectively. Here, and n = n1 + n2.

The respective CDFs are then defined as

and

Note that P1(m)=1 and P2(L-1)=1 by definition. Let us similarly define the following transformation functions exploiting the CDFs

and

Then, the resultant image of the histogram can be expressed as

in which

2.3 Histogram equalization with neighborhood metric

Let J be the number of sub-bins of the i-th bin, h(i), of intensity level of image f and J is produced by a neighborhood metric. The number of total sub-bins is R which equals J·L and the value of J depends on the chosen neighborhood metrics.

where r=j+(J-1) · i, n(r) is the number of occurrences of the j-th sub-bin in i-th bin of image f, and N is the total number of pixels in image f. Then the CDF, Pr, is defined as:

GHE maps the original image into the resultant image using the intensity transformation function:

where f and g are the original and resultant images, respectively, (x, y) are the 2D coordinates of the images, and T1 is the intensity transformation function, which maps the original image into the entire sub-bin’s range, [0, R-1] using CDF:

here

 

3. PROPOSED METHOD

In the proposed method, the image histogram is divided into two sub-histograms to preserve the image brightness and each histogram bin of each sub-histogram is divided by a distinction metric into sub-bins [17-19]. Filtering of any drawbacks during the enhancement of image contrast requires rearrangement of the histogram when checking the neighborhood metric (Fig. 2). This rearrangement is described below, and all spatial neighborhood filter types are possible. To check all image pixels that have been neighbors, it is necessary to extend the input image.

Fig. 2.Illustration of the neighborhood metric and filtering in a histogram bin. Pixels of equal intensity are arranged into sub-bins using neighborhood information (a) without filtering and (b) with filtering.

3.1 Neighborhood metric

Let γ be the function that extends an image function surrounded by a “background” of zero padding:

in which an image is N pixels by M pixels in size and g(x,y) is the intensity of image pixel (x,y).

The distinction metric is expressed by the following formula:

which requires the following distinction function:

in which the distinction metric, dθ, is defined by Rθ(x,y), the set of pixels forming a square in the θ×θ square neighborhood centered on (x,y), (xʹ,yʹ), is a pixel of Rθ and θ is a positive odd integer.

3.2 Histogram arrangement

When making the histogram, every pixel’s neighborhood distinction metrics are computed with the Gaussian filtered values of the current pixel and its neighbors. While the distinction metric defines the current pixels sub-bin location of its histogram bin, the current pixel intensities are changed by the filtered values of its neighbors (Fig. 2). The reason of this rearrangement is that contrast enhancement and filtering processes can use an original image data simultaneously. This intensity rearrangement equals the filter applied directly to the image. However, it differs in that its distinction metrics are computed using the original image data. If we use the filtering process first, the distinction metrics that are computed as the changed neighbors of the filtered image and sub-bins created by the distinction metric do not use the original neighborhood information of the input image. Therefore, the histogram arrangement is performed with simultaneous computation of the neighborhood metric and filtering computations.

Fig. 3 shows the difference between direct filtering and simultaneous filtering with the neighborhood metric. As shown Fig. 3, although filtered (b) and GHE (c) results are small different, but contrast is not enough due to inhomogeneous intensities. However the proposed method solved that problem in Fig. 3 (d) and (e).

Fig. 3.Demonstration of differences using the neighborhood metric and filtering: (a) Original image and its intensities; (b) Gaussian filtered result of (a) and its intensities; (c) GHE result of (b) and its intensities; (d) FBHEM on (a) and its intensities; and (e) FBHEM on (b) and its intensities.

3.3 Filtered bi-histogram equalization method (FBHEM)

The number of total sub-bins is R-1, which equals r·L. The mean of the image f is denoted by mr and mr ∈[0. R-1]. Based on mr, the image is separated into two sub-images f1 and f2 as

where

and

Next, we define the respective probability distribution functions of sub-images f1 and f2 as

and

in which n1(k) and n2(k) represent the respective values of k in the two sub-images f1 and f2, and n1 and n2 are the total values of f1 and f2 , respectively. Here, and n=n1+n2.

The respective CDFs are then defined as

and

Note that P1(mr)=1 and P2(R-1)=1 by definition. Let us similarly define the following trans-formation functions exploiting the CDFs

and

Then, the resultant image of the histogram can be expressed as

in which f and g are the original and resultant images, respectively, (x,y) are the 2D coordinates of the images, and T is the intensity transformation function, which maps the original image into the entire sub-bin’s range, z, using CDF:

where

We used a slightly modified GHE method to consider the resultant image histogram “optimally full” [15]. That is, we never overfill a sub-bin by more than half its size.

 

4. EXPERIMENTAL RESULTS

In the experiment, we tested the proposed method on three images affected by Gaussian noise (3×3, σ=0.5) compared to the GHE, BBHE, DSIHE, and MMBEBHE methods. To define image brightness preservation, we used the absolute mean brightness error (AMBE) and flatness (σ).

where E(X) is the mean value of the test image, while E(Y) is the mean value of the corresponding output image. AMBE is the absolute difference between the input and output means.

To measure the flatness σ of a histogram h, we compute the variance of the bin sizes:

where | hi | is the size of the i-th bin of the image’s histogram, μh is the mean histogram bin size, and D is the number of grey-level intensities. A smaller value of σ indicates a flatter histogram.

In experimental figures, the images in the first row were directly enhanced by the various methods and those in the second row were first treated with the Gaussian filter and then enhanced by the various methods. Although the former images were enhanced, noise remained in all result images, whereas those pretreated with the Gaussian filter were better. However, the results were not better than our proposed method. In Fig. 4, local and global contrast are improved simultaneously while reducing a noise effect. For example, the noise effect on wall of building is reduced more effective than that of various method results.

Fig. 4.Results for image I. First row; (a) original sample image I, (b) GHE image, (c) BBHE image, (d) DSIHE image, and (e) MMBEBHE image. Second row; first filtered original image then (f) GHE image, (g) BBHE image, (h) DSIHE image, (i) MMBEBHE image, and (j) proposed FBHEM image.

Table 1 shows the AMBE values for three images enhanced by various methods. The value for the proposed (FBHEM) method was lower than for the others. A smaller AMBE is better, implying that the means of the original and result images are close. This means that the FBHEM method can preserve the image brightness. As shown in Table 1, the AMBE value of FBHEM for image I was larger than those of MMBEBHE and BBHE. However, the FBHEM result looked good on visual comparison. Table 1 also shows the AMBE values of images that were first treated with the Gaussian filter and then equalized.

Table 1.AMBE obtained from three sample images

The proposed method is based on brightness-preserving contrast enhancement techniques and neighborhood metrics to improve local contrast, in addition to improving image quality by the image filtering process while checking neighborhood information. It is expected to not only retain the advantages of previous methods but also to improve image quality. It is possible to perform the filtering technique and then contrast enhancement sequentially. However, our method's important point to note here is that the original image information can be used for both brightness-preserving global and local contrast enhancement, and image quality improvement filtering. For example, if we first perform filtering alone, this would modify the intensities of the original image, and then neighborhood metrics would use these modified intensities of the original image. Thus, the second method uses modified information affected by the first process.

As shown in Fig. 5 and Fig. 6, the proposed method gives good results, not only preserving image brightness but also reducing the effect of noise. Although image contrast is improved on Fig. 5 (b)-(i), the noise effect is still kept in resultant images. However, our proposed method gives more smoothed result which means that the effect of noise and contrast of image are simultaneously improved on Fig. 5 (j). In Figure 6, the proposed method result proves that its natural appearance is better than others. For instance, a cloud in Fig. 6 looks more natural looking on the proposed method result and the noise is removed effectively comparing to various methods.

Fig. 5.Results for image II. First row; (a) original sample image II, (b) GHE image, (c) BBHE image, (d) DSIHE image, and (e) MMBEBHE image. Second row; first filtered original image then (f) GHE image, (g) BBHE image, (h) DSIHE image, (i) MMBEBHE image, and (j) proposed FBHEM image.

Fig. 6.Results for image III. First row; (a) original sample image III, (b) GHE image, (c) BBHE image, (d) DSIHE image, and (e) MMBEBHE image. Second row; first filtered original image then (f) GHE image, (g) BBHE image, (h) DSIHE image, (i) MMBEBHE image, and (j) proposed FBHEM image.

In Table 2, the flatness value indicates that histogram equalization produces a perfectly flat histogram, which makes equal use of the entire dynamic range of image intensities and the overall contrast is improved. A smaller value of σ indicates a flatter histogram. In all samples, the flatness values for FBHEM were lower than those of the other methods.

Table 2.Histogram flatness values obtained from three sample images (×105)

 

5. CONCLUSION

Our new method of histogram equalization extension, FBHEM, simultaneously improves image contrast and quality while preserving image brightness. The method uses filtering with a neighborhood metric to sort pixels of equal intensity into different sub-bins to improve image local contrast. The histogram is separated into two sub-histograms, which are equalized independently to preserve image brightness. Our experimental results indicated that FBHEM outperforms existing methods.

References

  1. A. Rafael, C. Gonzalez, and R.E. Woods, Digital Image Processing, Prentice Hall, New Jersey, 2002.
  2. A.A. Wadud, M.H. Kabir, M.A.A. Dewan, and O. Chae, “A Dynamic Histogram Equalization for Image Contrast Enhancement,” IEEE Transactions on Consumer Electronics, Vol. 53, No. 2, pp. 1-2, 2007. https://doi.org/10.1109/TCE.2007.339492
  3. Z. Bai and S.H. Jung, “Image-based Subway Security System by Histogram Projection Technology,” Journal of Korea Multimedia Society, Vol. 18, No. 3, pp. 287-297, 2015. https://doi.org/10.9717/kmms.2015.18.3.287
  4. B.C. Stoel, A.M. Vossepoel, F.P. Ottes, P.L. Hofland, H.M. Kroon, and L.J. Schultze Kool, “Interactive Histogram Equalization,” Pattern Recognition Letters, Vol. 11, No. 4, pp. 247-254, 1990. https://doi.org/10.1016/0167-8655(90)90063-8
  5. S.M. Pizer, E.P. Amburn, J.D. Austin, R. Cromartie, A. Geselowitz, T. Greer, et al., “Adaptive Histogram Equalization and Its Variations,” Computer Vision, Graphics, and Image Processing, Vol. 39, No. 3, pp. 355-368, 1987. https://doi.org/10.1016/S0734-189X(87)80186-X
  6. C. Wang and Z. Ye, “Brightness Preserving Histogram Equalization with Maximum Entropy: A Variational Perspective,” IEEE Transactions on Consumer Electronics, Vol. 51, No. 4, pp. 1326-1334, 2005. https://doi.org/10.1109/TCE.2005.1561863
  7. J.A. Stark, “Adaptive Image Contrast Enhancement using Generalizations of Histogram Equalization,” IEEE Transactions on Image Process, Vol. 9, No. 5, pp. 889-896, 2000. https://doi.org/10.1109/83.841534
  8. Y.T. Kim, “Contrast Enhancement using Brightness Preserving Bi-histogram Equalization,” IEEE Transactions on Consumer Electronics, Vol. 43, No. 1, pp. 1-8, 1997. https://doi.org/10.1109/30.580378
  9. Y. Wan, Q. Chen, and B.M. Zhang, “Image Enhancement based on Equal Area Dualistic Sub-image Histogram Equalization Method,” IEEE Transactions on Consumer Electronics, Vol. 45, No. 1, pp. 68-75, 1999. https://doi.org/10.1109/30.754419
  10. S.D. Chen and A.R. Ramli, “Minimum Mean Brightness Error Bi-histogram Equalization in Contrast Enhancement,” IEEE Transactions on Consumer Electronics, Vol. 49, No. 4, pp. 1310-1319, 2003. https://doi.org/10.1109/TCE.2003.1261234
  11. S.D. Chen and A.R. Ramli, “Contrast Enhancement using Recursive Mean-separate Histogram Equalization for Scalable Brightness Preservation,” IEEE Transactions on Consumer Electronics, Vol. 49, No. 4, pp. 1301-1309, 2003. https://doi.org/10.1109/TCE.2003.1261233
  12. K.S. Sim, C.P. Tso, and Y.Y. Tan, “Recursive Sub-image Histogram Equalization Applied to Gray Scale Images,” Pattern Recognition Letters, Vol. 28, No. 10, pp. 1209-1221, 2007. https://doi.org/10.1016/j.patrec.2007.02.003
  13. D. Menotti, L. Najman, J. Facon, and A.A. Araujo, “Multi-histogram Equalization Methods for Contrast Enhancement and Brightness Preserving,” IEEE Transactions on Consumer Electronics, Vol. 53, No. 3, pp. 1186-1194, 2007. https://doi.org/10.1109/TCE.2007.4341603
  14. H. Ibrahim and N.S.P. Kong, “Brightness Preserving Dynamic Histogram Equalization for Image Contrast Enhancement,” IEEE Transactions on Consumer Electronics, Vol. 53, No. 4, pp. 1752-1758, 2007. https://doi.org/10.1109/TCE.2007.4429280
  15. M. Eramian and D. Mould, “Histogram Equalization using Neighborhood Metrics,” Proceeding of the 2nd Canadian Conference on Computer and Robot Vision, pp. 397-404, 2005.
  16. Y. Kim, P.H. Yoo, and D.S. Kim, “A Study on Enhancement of Heterogeneous Noisy Image Quality for the Performance Improvement of Target Detection and Tracking,” Journal of Korea Multimedia Society, Vol. 17, No. 8, pp. 923-936, 2014. https://doi.org/10.9717/kmms.2014.17.8.923
  17. N. Sengee, and H.K. Choi, “Brightness Preserving Weight Clustering Histogram Equalization,” IEEE Transactions on Consumer Electronics, Vol. 54, No. 3, pp. 1329-1337, 2008. https://doi.org/10.1109/TCE.2008.4637624
  18. N. Sengee and H.K. Choi, “Contrast Enhancement using Histogram Equalization with a New Neighborhood Metrics,” Journal of Korea Multimedia Society, Vol. 11, No. 6, pp. 737-745, 2008.
  19. N. Sengee, A. Sengee, E. Adiya, and H.K. Choi, “Contrast Enhancement for Segmentation of Hippocampus on Brain MR Images,” Journal of Korea Multimedia Society, Vol. 15, No. 12, pp. 1409-1416, 2012. https://doi.org/10.9717/kmms.2012.15.12.1409

Cited by

  1. Bi-histogram equalization using modified histogram bins vol.55, 2017, https://doi.org/10.1016/j.asoc.2017.01.053
  2. Image Enhancement via Subimage Histogram Equalization Based on Mean and Variance vol.2017, 2017, https://doi.org/10.1155/2017/6029892
  3. Adaptive Image Enhancement Using Entropy-Based Subhistogram Equalization vol.2018, pp.1687-5273, 2018, https://doi.org/10.1155/2018/3837275