Abstract
This paper presents an overall quality enhancement approach especially for dark or poorly illuminated images with a core objective to re-allocate the processed pixels using recursive histogram sub-division. An information preserved and image content based behavioral reconstruction inspired adaptive stopping criterion based on pixel-wise relative L2−norm basis (which itself is intuitively related to optimal PSNR value) is proposed in this paper, so that highly adaptive gamma value-set can be derived out of it for sufficient enhancement. Due to this adaptive behavior of the intensity distribution the gamma value-set when derived from it, is obviously highly adaptive and here individual gamma values are evaluated explicitly raised over reconstructed intensity values, unlike conventional gamma correction methods. This adaptiveness makes the entire methodology highly capable for covering a wide variety of images, due to which robustness of the algorithm also increases. The proposed methodology has been verified on various dark images. The simulation results authenticate the overall enhancement (contrast as well as entropy enhancement along with sharpness enhancement) achieved by the proposed has been found superior to other dark image enhancement techniques.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Remotely acquired digital imagery in diverse circumstances and its indispensable contribution for social welfare, demands an efficient quality enhancement as a core part of image pre-processing. In this manner, the required information can be restored and required parametric features can be sufficiently extracted according to the demand [21]. Researchers get highly fascinated by histogram equalization (HE) [5] and its efficiently modified variations due to their simplicity and less computational complexity. Obviously, the global HE cannot preserve local spatial features of the image which limits the amount of quality enhancement in all parts of the image and hence, researchers started looking for distributing histogram into its constituting sub-histograms for local histogram modifications [8, 15, 17, 18]. Fuzzy inspired histogram smoothening followed by local maxima based sub-division has been also proposed as Brightness preserving dynamic fuzzy HE (BPDFHE) [15]. Exposure-based sub-image HE (ESIHE) [17] has been proposed for low exposure images, where image exposure is utilized for sub-division. Afterward, median-mean dependent sub-image-clipped HE (MMSICHE) [18] has been introduced where histogram clipping is based on the median with bisecting each section to obtain four sub-images, so that they can be equalized locally. Later, recursive-ESIHE (R-ESIHE) [19] by iterative usage of ESIHE till exposure reduced to a predefined threshold. Also, its multi-level histogram separation version termed as recursively separated-ESIHE (RS-ESIHE) [19] has been also introduced. Later on, the averaging histogram equalization (AVGHEQ) [11], HE based optimal profile compression (HEOPC) [30] method for color image enhancement followed by HE with maximum intensity coverage (MAXCOVER) [31] have been also proposed. Also, the adaptive gamma correction with weighting distribution (AGCWD) [7] and its efficient variations [16, 20, 24,25,26,27,28,29,30,31] have been also proposed for dark images. Afterward, the intensity and edge-based adaptive unsharp masking filter (IEAUMF) [10] based enhancement have been also proposed by employing the unsharp masking filter for edge augmentation. Sigmoid mapping through cosine transformed Regularized-HE [4] has been also proposed. Recently, getting fascinated by artificial intelligence and deep learning based methods, various methodologies have been also proposed namely, LIME: Low-light image enhancement via illumination map estimation (LIME) [6], Deep photo enhancer: Unpaired learning for image enhancement from photographs with gans (DPE) [3], Learning to See in the Dark (LSD) [2], and Learning a deep single image contrast enhancer from multi-exposure images (LDSICEM) [1]. In the same sequence, although several kinds of enhancement methodologies have been proposed till date for widely diverse characteristics of images from various domains, (contextual literature survey is explicitly presented in [21, 24, 25]), still most of them are lagging when it comes to the matter of enhancement of different domain images through a single approach. In this paper, a robust and highly adaptive end-to-end framework is proposed for quality enhancement of almost all kind of images. On the first sight, the term “gamma correction” seems somehow conventional; but any approach which is capable for computing the quality enhanced intensity distribution out of the input intensity distribution through raising radical powers comes under the head of the gamma correction. Decision making of adaptive gamma value-set precisely for each individual intensity level of the image, is still an open problem, as most of the proposed gamma based (radically powered) algorithms lead to over-enhancement and extreme ends’ saturation, and hereby proposed algorithm seems free from these drawbacks due to deciding a novel kind of gamma value set through “optimal PSNR based perfectly re-allocated and reconstructed” intensity distribution. Here, as such no greedy behavior based optimization algorithm is involved for a blind random search, and hence, the approach is not iterative as a whole. It needs only 2–4 iterations at most for thresholds identification and subsequent histogram division based on optimal PSNR value, but gamma value-set evaluation non-iterative at all. Here, a precisely re-allocated intensity-span is derived through reconstruction of the image by considering first and second moment for histogram sub-division, and later the cumulative distribution of the reconstructed images itself is utilized for deriving a gamma value set. The corresponding individual values from this set when raised up as radicals over the reconstructed and re-allocated intensity levels of the image under consideration leads to the overall quality enhancement. Remaining manuscript is drafted as follows: after brief literature survey and basic introduction in section 1; section 2 explains the proposed algorithm followed by its stepwise framework. Later, section 3 deals with the experimentation followed by corresponding results and discussion; and in section 4, conclusions are drawn.
2 Proposed methodology
Hue-Saturation-Intensity (HSI) colour image model is generally utilized for separation of chromatic as well as non-chromatic image information. For the proposed quality enhancement for the colour images, hue and saturation channels can be kept unaltered along with relevant processing over intensity channel. The entire methodology using process-flow diagram is presented in Fig. 1, and the corresponding step-wise procedure is as follows:
-
Step 1:
Initially, all three channels (R, G, B) are linearly stretched for dynamic range expansion. For R-channel:
Here, Rmax = max {R(u, v)} and Rmin = min {R(u, v)} for all the pixel elements (u, v) for R-channel. Similarly, other two channels can be stretched.
-
Step 2:
Extraction of intensity (luminance or V-channel) information after RGB to HSI colour space conversion as:
Here, \( {T}_{RGB}^{HSI} \) is RGB to HSI transformation process.
-
Step 3:
Histogram {H(h)} of the luminance channel is employed for further processing. Here, H(h) is count of pixels having hth intensity value. Set a ← min(h) and b ← max(h) which also represents the entire range of histogram starting from its lowest pixel intensity value to largest pixel intensity value. Calculate the mean (μ) and standard deviation (σ) for this operational range [a, b] of the histogram /sub-histogram (for next level division), using:
-
Step 4:
Set two threshold values i.e. T1 = μ − σ and T2 = μ + σ, so that the “the operational region” (mentioned in Step 3) can be distributed into its further sub-regions.
-
Step 5:
Store [a, T1] and [T2, b] as two parts of the histogram without further distributing them so that they can be retained as such till their equalization in subsequent steps. Consider [T1 + 1, T2 − 1] as sub-histogram region Hk(h) so that operations can perform the next step so that it can be adaptively distributed in further recursive steps.
-
Step 6:
Cumulative distribution function (CDF) for each kth sub-histogram can be evaluated as:
Here, intensity span of every kth histogram can be considered in the range [hk + 1 → hk + 1]. Here, Nk is the net pixel count inkthsub-histogram.
-
Step 7:
Equalize all sub-histograms independently as:
-
Step 8:
Overall reconstructed image can be derived as:
-
Step 9:
Calculate the value of PSNR in dB for enhanced intensity channel obtained in this iteration with reference to that in previous iteration as [31]:
Here, RSME is root-mean-square error, defined as [31]:
Here, I and \( \widehat{I} \) are input and output images for every iteration. Find the difference of PSNR value obtained in this step with that obtained in the previous step.
-
Step 10:
Now, follow the optimal PSNR criterion to decide the requirement of next level thresholding. Here, recursion is aborted if difference in PSNR values (obtained in successive steps) gets reduced to less than 0.01 dB. In other words, next level thresholding has to be aborted when PSNR value gets saturated, as this saturation symbolizes insignificant further image division/reconstruction; and hence, not appreciated.
-
Step 11:
If the optimal PSNR criterion as mentioned in step-10 is not achieved, then assign [a, b] Ɏ ← [T1 + 1,T2–1] and repeat steps 3–9 for further adaptive separation; and hence, adaptively equalized output can be achieved.
-
Step 12:
Afterwards, cumulative distribution has to be derived reconstructed image so that the adaptive gamma value-set can be derived as:
Finally, the enhanced output is achieved as:
-
Step 13:
Finally, the enhanced image can be obtained as:
Here, \( {T}_{HSI}^{RGB} \) is HSI to RGB transformation process.
At the first attempt, two (2) threshold values are identified and hence, results into three (3) sub-histograms, followed by their individual equalization. If the stopping criterion will not get satisfied (i.e., PSNR >0.01 dB), then both of the above thresholds will be treated as extreme end of the middle sub-histogram which is further subdivided in the similar fashion as mentioned above. Hence, the new threshold values will be identified in-between the previous threshold values. In this manner, by the end of second attempt of division, there will be four (4) threshold values and accordingly five (5) sub-histograms. In most of these cases, it is insignificant to looking forward for further sub-division.
3 Experimental results: performance evaluation and comparisons
Multilevel iterative thresholds are shown in Fig. 2. Table 1 lists the number of iterations and corresponding threshold values evaluated iteratively (as shown in Fig. 3) for all test images. The iteration-count varies adaptively according to the intensity spread of the image. Performance evaluation and comparison is done by proper reimplementation of some very popular state-of-the-art enhancement methodologies namely, GHE [5], BPDFHE [15], MMSICHE [18], RSEISHE [19], AGCWD, AVGHEQ [11], HEOPC [22], MAXCOV [23], RHE-DCT [4], IEAUMF [10], LIME [6], LSD [3], DPE [2] and LDSICEM [1]. Quantitative analysis (Tables 2, 3, 4, 5, 6, 7, 8 and 9) is done by using 8 reliable statistical performance measures namely, average brightness (B), average contrast (V), average discrete information content (or entropy, E), sharpness (S), and colorfulness (C) of the image. Considering intensity value I(u, v) for pixel element located at uth row and vth column of its equivalent image M × N matrix whose size is similar to that of corresponding intensity channel of the image, and its performance measures can be formulated as follows.
Mean represents the average intensity value [11], which indirectly informs about the average image brightness level for the image under consideration. Brightness (B) or mean can be expressed as:
Likewise, intensity spread or variance (V) or contrast indicates the amount of intensity deviation per pixel with respect to the mean intensity level (B) of the image, as:
In this manner, the total sum of the intensity dispersions (w.r.t. mean level) can be identified as contrast and obviously it should be high for proper quality enhancement. In addition, for proper information content evaluation, Shannon entropy based characterization can be applied as:
where, pi = ni/(M × N) is the possibility of existence of ith level of intensity, and Imax is the maximum available intensity. Here, M × N represents the total number of pixels present in an image. The gradient is obtained from:
Δu = Ienh(u, v) − Ienh(u + 1, v)and Δv = Ienh(u, v) − Ienh(u, v + 1) are the local gradients of enhanced image. Higher the gradient value more will be the sharpness of image. Along with above intensity based measures, colorfulness is also used for proper evaluation of the quality of color images. The colorfulness can be expressed numerically, as:
Here, μrg, μyb are the mean values and σrg, σyb are the standard deviation values of Δrg, Δyb respectively. Spatial co-occurrence of the image pixels are usually avoided while evaluating the intensity based indices, and hence, to resolve it, Grey-Level Co-occurrence Matrix based performance indices also plays a significant role for texture and other spatially influenced properties. Overall statistical and spatial behavior w.r.t. reference pixel can be derived by calculating the pixel-wise average for all four directional matrices:
In this paper, three well known GLCM based indices, i.e. GLCM-Correlation, GLCM-Energy and GLCM-Homogeneity are evaluated. Any element of the GLCM matrix Ψ(m, n), is usually evaluated by considering the nth neighboring pixel w.r.t. mth pixel, and later on, by calculating the μm, μn, σm, andσn as the corresponding mean values and standard deviation values respectively. GLCM-correlation (GC) stands for the interdependency for the corresponding neighborhood of the pixels w.r.t. reference pixels, expressed as:
GLCM-Energy (GE) can be characterized by normalized count of repeated pairs. Intuitively, these are responsible for uniformity of texture, and hence, expressed as:
GLCM-homogeneity (GH) can be characterized by the closeness of neighboring pixels with reference pixels. Intuitively, these are also responsible for uniformity of texture, and hence, expressed as:
Qualitative (visual) analysis for enhancement of images is shown in Figs. 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 and 23. Comparative evaluation for Brightness (B), Contrast (V), Entropy (E), Sharpness (S), colourfulness (C), GLCM-homogeneity (GH), GLCM-energy (GE), GLCM-correlation (GC) are listed in Tables 2 to 9, respectively. It can be easily noticed from the tabular results that both entropy and contrast are highly desirable along with image sharpness content of the information. Also, certain amount of brightness should be also increased, which is also desired for clear contrast evaluation in case of dark images.
Also, for identifying the textural improvement, GLCM based performance measures like GLCM- are also employed and the excellence of the proposed model, and the lower value are desired for GLCM-homogeneity, GLCM-energy, GLCM-correlation for better visualization in context of both human as well as machine-vision perspective.
Finally, it can be easily concluded that this approach outperforms the other state-of-the-art approaches. The novelty of the work can be justified as the re-allocation of intensity levels for corresponding pixel elements is so precise due to least successive differential change in PSNR value which ensures that further division or further reconstruction is obviously redundant. As this statistical moment-based redistribution needs only 2–4 iterations at most for subsequent histogram division, otherwise this approach is free from iterative greedy algorithms and hence system complexity is not so high. Due to this adaptive behavior of the intensity distribution the gamma value-set when derived from it, is obviously highly adaptive and here individual gamma values those evaluated explicitly raised over reconstructed intensity values, unlike conventional gamma correction methods. Unlike greedy algorithms, it is a parameter-free approach, hence no pre-specified count for sub-divisions. It imparts the better gamma-corrected intensity distribution throughout the dynamic range. In addition multiple repetitive equalizations like other methods have been avoided for extreme intensity levels according to the image behavior. Here, only the in-between middle range (μ1 − σ1, μ1 + σ1) is only operated for further sub-division (which is also limited to 2–3 iterations) the range and rest of the intensity values themselves decide their adaptive gamma value-set locally. This is the sole region that over-enhancement (which leads to saturated patches) and under-enhancement (which leads to dark patches) can be easily avoided and hence, naturally looking, quality enhanced images can be achieved. Desired time-complexity analysis is also presented in Table 10 and Fig. 22, by executing the proposed method as well as all the state-of-the-art methodologies in a similar environment. The running time is calculated as an averaged execution time for a set of 120 test images.
4 Conclusion
In this paper, a new quality enhancement approach especially for dark or poorly illuminated images with a core objective to re-allocate the processed pixels using reclusive histogram sub-division along with an adaptive stopping criterion based on pixel wise relative L2-norm basis (which itself is intuitively related to optimal PSNR value). Employing such kind information preserved signal reconstruction based stopping criterion makes the desired intensity distribution easy achievable in less iterations and hence complexity hike due iterative behaviour can be easily compensated to a great extent. Hence, iteration count only ranges from 2 to 3. Perfectly reconstructed, moment-centered piecewise sub-equalized statistical distribution which intuitively leads to the adaptive or image dependent evaluation of the desired gamma value-set, so that precise re-allocation of the transformed intensity bin-values. Due to this adaptive behavior of the intensity distribution the gamma value-set when derived from it, is obviously highly adaptive and here individual gamma values are evaluated explicitly raised over reconstructed intensity values, unlike conventional gamma correction methods. This adaptiveness makes the entire methodology highly capable for covering a wide variety of images, due to which robustness of the algorithm also increases. The proposed methodology has been verified on various dark images. The desired performance has been achieved visually and also measured by using relevant image quality matrices.
References
Cai J, Gu S, Zhang L (2018) Learning a deep single image contrast enhancer from multi-exposure images. IEEE Trans Image Process 27(4):2049–2062
Chen C, Chen Q, Xu J, Koltun V (2018) Learning to see in the dark. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 3291–3300
Chen YS, Wang YC, Kao MH, Chuang YY (2018) Deep photo enhancer: unpaired learning for image enhancement from photographs with gans. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp 6306–6314
Fu X, Wang J, Zeng D, Huang Y, Ding X (2015) Remote sensing image enhancement using regularized-histogram equalization and DCT. IEEE Geosci Remote Sens Lett 12(11):2301–2305
Gonzalez RC, Woods RE (2017) Digital image processing, 4th edn. Pearson/Prentice-Hall, New York
Guo X, Li Y, Ling H (2017) LIME: Low-light image enhancement via illumination map estimation. IEEE Trans Image Process 26(2):982–993
Huang SC, Cheng FC, Chiu YS (2013) Efficient Contrast Enhancement Using Adaptive Gamma Correction with Weighting Distribution. IEEE Trans Image Process 22(3):1032–1041
Huang SC, Yeh CH (2013) Image contrast enhancement for preserving mean brightness without losing image features. Journal of Engg Applications of Artificial Intelligence 26(5):1487–1492
Kodak Lossless True Color Image Suite. http://r0k.us/graphics/kodak/. Accessed 02 June 2017
Lin SCF, Wong CY, Jiang G, Rahman MA, Ren TR, Kwok N, Shi H, Yu YH, Wu T (2016) Intensity and edge based adaptive unsharp masking filter for color image enhancement. Optik–Int J Light Electron Optics 127(1):407–414
Lin SCF, Wong CY, Rahman MA, Jiang G, Liu S, Kwok N, Shi H, Yu YH, Wu T (2015) Image enhancement using the averaging histogram equalization (AVHEQ) approach for contrast improvement and brightness Preservation. Comput Electr 46:356–370
NASA Visible Earth. https://visibleearth.nasa.gov. Accessed 02 June 2017
Pléiades Satellite Image. https://intelligence-airbusds.com. Accessed 02 June 2017
Satellite Imagery and Geospatial Services | SATPALDA. https://satpalda.com. Accessed 02 June 2017
Sheet D, Garud H, Suveer A, Mahadevappa M, Chatterjee J (2010) Brightness preserving dynamic fuzzy histogram equalization. IEEE Trans Consum Electron 56(4):2475–2480
Singh H, Agrawal N, Kumar A, Singh GK, & Lee HN (2016) A novel gamma correction approach using optimally clipped sub-equalization for dark image enhancement. 21 IEEE International Conference on Digital Signal Processing (DSP), Beijing, pp 497–501. https://doi.org/10.1109/ICDSP.2016.7868607
Singh K, Kapoor R (2014) Image enhancement using exposure based sub image histogram equalization. Pattern Recogn Lett 36:10–14
Singh K, Kapoor R (2014) Image enhancement via median-mean based sub-image-clipped histogram equalization. Optik -Int J Light Electron Optics 125(17):4646–4651
Singh K, Kapoor R, Sinha SK (2015) Enhancement of low exposure images via recursive histogram equalization algorithms. Optik 126:2619–2625
Singh H, Kumar A (2016) Satellite image enhancement using beta wavelet based gamma corrected adaptive knee transformation. 5th IEEE International Conference on Communication and Signal Processing (ICCSP), Melmaruvathur, pp 128–132
Singh H, Kumar A, Balyan LK, Singh GK (2018) Swarm intelligence optimized piecewise gamma corrected histogram equalization for dark image enhancement. Comput Electr Eng 70:462–475
Singh, H., Kumar, A., & Balyan, L. K. (2017). Cuckoo search optimizer based piecewise gamma corrected auto-clipped tile-wise equalization for satellite image enhancement. In 14th IEEE India Council International Conference (INDICON), Roorkee, India, 2017, pp 1–6. https://doi.org/10.1109/INDICON.2017.8487901
Singh H, Kumar A, Balyan LK (2017) A levy flight firefly optimizer based piecewise gamma corrected unsharp masking framework for satellite image enhancement. In 14th IEEE India Council International Conference (INDICON), Roorkee, India, 2017, pp 1–5. https://doi.org/10.1109/INDICON.2017.8487501
Singh H, Kumar A, Balyan LK, Singh GK (2017) A novel optimally weighted framework of piecewise gamma corrected fractional order masking for satellite image enhancement. Computers and Electrical Engineering, (in press): 1–17. https://doi.org/10.1016/j.compeleceng.2017.11.014
Singh H, Kumar A, Balyan LK, Singh GK (2017) A novel optimally gamma corrected intensity span maximization approach for dark image enhancement. In 22nd IEEE. International Conference on Digital Signal Processing (DSP) 2017 (pp. 1–5). https://doi.org/10.1109/ICDSP.2017.8096035
Singh H, Kumar A, Balyan LK Lee HN (2018) Piecewise gamma corrected optimally framed Grumwald-Letnikov fractional differential masking for satellite image enhancement. In 7th IEEE International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 2018, pp 0129–0133. https://doi.org/10.1109/ICCSP.2018.8524564
Singh H, Kumar A, Balyan LK, Lee HN (2018) Fuzzified histogram equalization based gamma corrected cosine transformed energy redistribution for image enhancement. In 23rd IEEE International Conference on Digital Signal Processing (DSP), Shanghai, China, 2018, pp 1–5. https://doi.org/10.1109/ICDSP.2018.8631612
Singh H, Kumar A, Balyan LK, Singh GK (2018) Slantlet filter-bank-based satellite image enhancement using gamma-corrected knee transformation. Int J Electron 105(10):1695–1715. https://doi.org/10.1080/00207217.2018.1477199
Singh H, Kumar A, Balyan LK (2019) A sine-cosine optimizer-based gamma corrected adaptive fractional differential masking for satellite image enhancement. In Harmony Search and Nature Inspired Optimization Algorithms. Advances in Intelligent Systems and Computing, vol 741, pp 633–645 Springer, Singapore. https://doi.org/10.1007/978-981-13-0761-4_61.
Wong CY, Jiang G, Rahman MA, Liu S, Lin SCF, Kwok N, Shi H, Yu YH, Wu T (2016) Histogram equalization and optimal profile compression based approach for colour image enhancement. J Visual Commun and Image Represen 38:802–813
Wong CY, Liu S, Liu SC, Rahman MA, Lin SCF, Jiang G, Kwok N, Shi H (2016) Image contrast enhancement using histogram equalization with maximum intensity coverage. J Mod Opt 63(16):1618–1629
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Singh, H., Kumar, A., Balyan, L.K. et al. Optimally sectioned and successively reconstructed histogram sub-equalization based gamma correction for satellite image enhancement. Multimed Tools Appl 78, 20431–20463 (2019). https://doi.org/10.1007/s11042-019-7383-0
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-019-7383-0