Weighted Histogram Equalization Using Entropy of Probability Density Function

Thaweesak Trongtirakul, Sos С. AgaianarXiv 2021 · DOI

Abstract

Low-contrast image enhancement is essential for high-quality image display and other visual applications. However, it is a challenging task as the enhancement is expected to increase the visibility of an image while maintaining its naturalness. In this paper, the weighted histogram equalization using the entropy of the probability density function is proposed. The computation of the local mapping functions utilizes the relationship between non-height bin and height bin distributions. Finally, the complete tone mapping function is produced by concatenating local mapping functions. Computer simulation results on the CSIQ dataset demonstrate that the proposed method produces images with higher visibility and visual quality, which outperforms traditional and recently proposed contrast enhancement algorithms methods in qualitative and quantitative metrics.

Introduction

Low-contrast images, often resulting from poor lighting conditions or sensor limitations, present significant challenges for both human interpretation and computer vision systems. While standard Histogram Equalization (HE) is a common solution, it frequently introduces artifacts such as over-enhancement of noise, "washout" effects, and unnatural shifts in brightness. This paper introduces a novel image enhancement technique that combines weighted histogram equalization with entropy-based optimization to address these limitations.

By splitting an image's histogram into sub-segments using an entropy-based threshold and optimizing the results via the Entropy Measure of Enhancement (EME), the proposed method achieves significantly better visibility and detail preservation. This approach seeks a mathematically robust, automated middle ground between simple HE and computationally intensive deep learning models, ensuring image naturalness without requiring massive training datasets.

Proposed Methodology

The proposed framework consists of a structured pipeline designed to enhance contrast while respecting the information density of the original image. The overall process is summarized in the flowchart below:

Flowchart of the proposed image enhancement algorithm.

1. Entropy PDF-Based Thresholding

Instead of splitting the image histogram at an arbitrary point, the algorithm uses an entropy-based architecture to find an optimal threshold ($k_T$). This threshold divides the image into two logical sub-images: a "dark" component and a "bright" component. This ensures that the enhancement logic is tailored to the specific distribution of light and dark pixels in each unique frame.

Probability Density Function (PDF) showing the entropy-based threshold $k_T$ separating dark and bright components.

2. Weighted Mapping Functions

For each sub-image, a local mapping function is calculated. Crucially, the algorithm employs "distribution weights" based on the ratio of non-height bins to height bins. By factoring in the relationship between frequent and infrequent intensity bins, the method avoids the "all-or-nothing" approach of traditional HE, leading to smoother gradients and fewer artifacts.

3. $\gamma$-Optimal Estimation

The final stage introduces a power factor ($\gamma$) that controls the distribution of luminance levels. The algorithm utilizes a "greedy optimization" loop to select the $\gamma$ value that yields the highest EME score. This closed-loop approach ensures the final output is mathematically optimized for contrast before the enhanced image is generated.

Experimental Results and Discussion

The authors evaluated the method using the CSIQ dataset, which contains 30 high-quality images subjected to six types of distortions at varying severity levels (Light, Moderate, and Heavy). This rigorous testing environment allows for a robust assessment of the algorithm's performance against contrast degradation.

Quantitative Performance

The proposed method was compared against established algorithms including standard HE, CLAHE, LIME, and LR3M. Using the EME metric (where higher values indicate better enhancement), the proposed method consistently outperformed its peers. For instance, under "Heavy" distortion levels, the proposed method achieved a score of 4.1960, significantly higher than CLAHE (2.5996) and LIME (1.1285).

Qualitative Insights

Visual analysis confirms that the method reveals critical spatial details in both shadows and highlights that other methods either blur or over-saturate. By using entropy as a guide, the algorithm respects the underlying information structure of the image, maintaining naturalness even in extreme low-light conditions.

Conclusion and Future Work

The weighted histogram equalization method using entropy-based thresholding provides a powerful tool for automated image enhancement. While the iterative optimization of the $\gamma$ factor adds some computational complexity compared to one-pass methods, the gains in visual quality and consistency across distortion levels are substantial. Future research may focus on optimizing these iterations for real-time video processing or extending the framework to specialized domains such as medical imaging and autonomous vehicle night vision systems.

Summary updated

BibTeX
@misc{trongtirakul2021weighted,
  author = {Thaweesak Trongtirakul and Sos С. Agaian},
  title = {{Weighted Histogram Equalization Using Entropy of Probability Density Function}},
  year = {2021},
  eprint = {2111.08578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.08578},
}
Figure