Abstract
This paper presents two proposed approaches for enhancing the visibility of the infrared (IR) night vision images. The first approach is based on merging gamma correction with histogram matching (HM). On the other hand, the second approach depends on merging gamma correction with contrast limited adaptive histogram equalization (CLAHE). The HM depends on a reference visual image for converting IR night vision images into images with better visual quality. Quality metrics such as entropy, average gradient, and Sobel edge magnitude are used for performance evaluation of the proposed approaches.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
The IR images are useful for a lot of applications such as military and civilian applications, especially health-care, battlefield surveillance, and traffic control applications. Fuzzy IR image enhancement has been considered to achieve contrast improvement and clear edge details in IR images. This technique enhances and optimizes the IR images for haze removal. An average filtering process is utilized for the estimation of coarse transmission rate. Then, it is possible to obtain the fuzzy-free image through a self-adaptive process based on the statistics of the original IR image. This strategy enables background suppression [12, 13, 25].
Several methods have been presented for IR image enhancement. One of such methods is the bilateral filter. Inspired by the bilateral filter, two adjacent images were utilized to compute kernel functions to recognize the details of the raw image. The researchers resolved a new kernel function to change the joint-bilateral filter and to decrease the gradient reversal artifacts reasoned by the non-linear filtering. This kernel depends on an adaptive coefficient to realize the details of images. The enhanced details are combined with the original IR images in a fine tuning process [1,2,3, 5, 9, 10, 14, 16,17,18, 21, 22].
Night vision systems have been widely applied in several fields such as military, law enforcement, hunting, wild-life observation, surveillance, security, navigation, hidden-object detection and entertainment. Night vision equipments have evolved from bulky optical instruments in light-weight goggles through the advancement of image intensification technology. Night vision technology that allows one to see in the dark is one of the most fascinating technologies in use today. The various low-light problems are the basic reasons for increasing the accidents at night [4, 6,7,8, 11, 15, 19, 20, 23, 24]. So, there is a bad need to develop image enhancement algorithms for night vision IR images.
The proposed approaches in this paper are based on gamma correction with HM and CLAHE. Section 2 gives an explanation of the histogram equalization. Section 3 presents the gamma correction. Section 4 presents the first proposed approach. Section 5 presents the second proposed approach. Section 6 gives the performance evaluation metrics. Section 7 gives the simulation results. Finally , section 8 gives the conclusion.
2 Motivation and related works
This paper gains its motivation and importance from the research topic and nature of images that are used [3, 5, 12,13,14, 17, 21, 25]. The proposal is based on a hybrid approach of gamma correction with CLAHE and HM that can be used for a very wide range of applications [1, 2, 9, 10, 15,16,17,18, 22]. Compared to the most relevant work [1, 2, 4, 6,7,8,9,10,11, 15, 16, 18,19,20, 22,23,24], the proposed work is evaluated from the entropy, average gradient, sobel edge magnitude, contrast improvement factor and computation time perspectives. The proposed work can be classified into two approaches. The first is based on HM and the second depends on CLAHE. It is clear that the obtained results in this paper are better than those of the previous work as shown in the Tables 1 and 2 for two cases.
3 Histogram equalization method
Histogram is indicated as the graphical distribution of pixels over the intensity. We can do modifications of histogram to correct the contrast of under-exposed and over-exposed images. The histogram equalization is a way to improve images. It is utilized to make the output gray levels uniformly distributed from the minimum to the maximum levels. This method provides global contrast enhancement of a lot of images. Through this adaptation, the intensities can be better distributed on the histogram [13].
This method permits for regions of lower local contrast to attain a higher contrast without affecting the global contrast. The histogram equalization is achieved by spreading out the ordinary intensity values. This way is useful for images with backgrounds and objects which are either bright or dark. This algorithm can be viewed as a way in which the histogram is modified by spreading the gray levels. This can be approximated by the probability of occurrence of gray level rk in an image as follows [3, 5, 14, 17, 21, 25].
where rk and sk refer to the gray levels of the input and output (processed) images, respectively, k = 0,1,…,L-1. .
4 Gamma correction technique
The Gamma correction is the name of a nonlinear operation used to encode and decode luminance values in video or still image systems. Gamma correction is defined by the following relation [2, 9, 10, 15, 16, 18, 22]:
where c is a constant, f is the original infrared night vision image, and v is the enhanced infrared image. The γ is a positive constant indicating the gamma value.
5 The first proposed approach
This approach depends on merging the gamma correction with the HM as a tool to enhance the IR images. Generally, visible images have better distributed histograms compared to infrared images, which have very band-limited histograms. If we think of modifying the histogram of the infrared image to be spread over the range of a visible image, the IR image would be enhanced visually. This process is well-known as HM. It can be carried out through modification of the picture statistics such as the mean and variance of the IR image based on their counterparts in the visual image.
The steps of the first proposed approach depend on merging gamma correction with the HM of the IR image to a visual image and are summarized as follows:
-
1.
Pick the IR night vision image from the camera
-
2.
Apply gamma correction on IR night vision image as indicated in Eq.(3)
-
3.
Compute the mean of the resultant image g(m, n)
$$ \hat{g}=\frac{1}{MN}\sum \limits_{m=1}^M\sum \limits_{n=1}^N\mathrm{g}\left(m,n\right) $$(4)where M and N are the dimensions of the IR image.
-
4.
Compute the mean of the reference visual image f (k, l).
$$ \hat{f}=\frac{1}{KL}\sum \limits_{k=1}^K\sum \limits_{l=1}^Lf\left(k,l\right) $$(5)where K and L are the dimensions of the reference image.
-
5.
Estimate the standard deviation of the resultant image from gamma correction, σ1.
$$ {\sigma}_1=\sqrt{\frac{1}{MN}\sum \limits_{m=1}^M\sum \limits_{n=1}^N{\left(g\left(m,n\right)-\hat{g}\right)}^2} $$(6)
-
6.
Estimate the standard deviation of the reference image, σ2.
$$ {\sigma}_2=\sqrt{\frac{1}{KL}\sum \limits_{k=1}^K\sum \limits_{l=1}^L{\left(\ f\left(k,l\right)-\hat{f}\ \right)}^2} $$(7)
-
7.
Estimate the correction factor C by dividing the standard deviation of reference image by the standard deviation of the gamma-corrected IR image.
-
8.
Compute a modified mean fc
-
9.
Estimate the histogram matched image FH
6 The second proposed approach
The second proposed approach is concerned with enhancement of IR images based on merging gamma correction with the CLAHE. The conventional histogram equalization does not adapt to local contrast requirements. Minor contrast differences can be entirely missed, when the number of pixels falling in a particular gray range is relatively small. An adaptive technique to avert this drawback is block-based processing for histogram equalization.
The steps of the proposed approach can be summarized as follows:
-
1.
Apply gamma correction on the IR night vision image with Eq.(3)
-
2.
Divide the resultant image into overlapping blocks
-
3.
Estimate the histogram and apply histogram equalization on each sub-image or block.
-
4.
Apply a clip limit to overcome the noise problem and limit the amplification of noise by clipping the histogram at a value before computing cumulative distribution functions to get the IR enhanced image.
The CLAHE has two key factors: block size and clip limit. These factors are used to adapt the image quality. The clip limit β is obtained by following equation:
where α is a clip factor, M and N are the dimensions of the IR image, L is the maximum intensity level of the image, and Smax is the maximum of the new distribution after the histogram equalization.
7 Performance evaluation quality metrics
This section presents the quality metrics used for the valuation of the enhancement results after histogram equalization, histogram matching, and CLAHE. These metrics include entropy (E), spectral entropy (Ef), average gradient (AG), and Sobel edge magnitude (∇f) . These metrics are evaluated as follows [10, 22]:
where E is the entropy of the IR image, 255 is the maximum level for an 8-bit gray-scale image. The larger the number of levels in an image, the higher is the entropy. pi is the probability of occurrence of pixels having intensity ‘i’ in the image. Suppose that the number of pixels having intensity ‘i’ is ni and that the image contains n pixels\( , \kern1em {p}_i=\raisebox{1ex}{${n}_i$}\!\left/ \!\raisebox{-1ex}{$n$}\right. \).
The spectral entropy is computed in the discrete cosine transform (DCT) domain on a block-by-block basis as described in Fig. 1. It is a function of the probability distribution of the local DCT coefficient values. This probability distribution function (PDF) is given by the following equation [11, 19, 24]:
where 1 ≤ i ≤ 8, 1 ≤ j ≤ 8, i, j ≠ 1, and c(i, j) represents the DCT coefficients.
The local spectral entropy is defined as [11, 19, 24]:
where p(i, j) is the estimated PDF.
where AG is the average gradient of the IR image, f(x, y) is the original IR image, m × n is the size of the IR image
where ∇f is the Sobel edge magnitude, fx and fy are the horizontal and vertical derivative approximations, respectively (Fig. 2).
8 Simulation results
This section presents several simulation experiments executed on four IR images. These results adopt a strategy of presenting the original IR images with their enhanced versions using the histogram equalization, the first proposed approach and the second proposed approach. The results of two cases are given in Figs. 3 and 4. The first proposed approach depends on a hybrid structure of gamma correction with HM that uses a reference visual image. The second proposed approach is concerned with enhancement of IR images based on merging gamma correction with the CLAHE. Simulation experiments show that the first proposed approach is better than the second proposed approach from the computation time perspective. On the other hand, the second proposed approach is better from the quality perspectives. Result analysis can be performed with the aid of Tables 1 and 2.
The strategy of quality evaluation based on spectral entropy depends on estimating the entropy of each block in the DCT domain. The distribution of entropy values is estimated and compared with the similar distribution for the original image. The spreading of the distribution is a good indicator for better spectral quality of the enhanced image. The obtained results are shown in Figs. 5 and 6.
9 Conclusion and future work
This paper presented two approaches for IR night vision image enhancement depending on gamma correction. The first approach is based on a hybrid structure of gamma correction with HM, and the second one is based on merging gamma correction with CLAHE. The HM is based on a reference visual image. Simulation results revealed that the first proposed approach gives superior results to those of the second one from the computation time perspective. On the other hand, the second one is better from the quality metrics perspectives. In the future work, we will consider deep learning models for object detection from IR images.
References
Ashiba HI, Mansour HM, Ahmed HM, El-Kordy MF, Dessouky MI, El-Samie FEA (2018) Enhancement of infrared images based on efficient histogram processing. Wirel Pers Commun 99:619–636. https://doi.org/10.1007/s11277-017-4958-9
Bai X (2015) Morphological infrared image enhancement based on multi-scale sequential toggle operator using opening and closing as primitives. Infrared Phys Technol 68:143–151
Bai X, Liu H (2017) Edge enhanced morphology for infrared image analysis. Infrared Phys Technol 80:44–57
Balntas V, Johns E, Tang L, Mikolajczyk K (2016) PN-Net: Conjoined triple deep network for learning local image descriptors. CoRR abs/1601.05030
Dai S, Liu Q, Li P, Liu J, Xiang H (2015) Study on infrared image detail enhancement algorithm based on adaptive lateral inhibition network. Infrared Phys Technol 68:10–14
Donahue J, Jia Y, Vinyals O, Ho_man J, Zhang N, Tzeng E, Darrell T (2014) Decaf: A deep convolutional activation feature for generic visual recognition. In:ICLR
Fan B, Kong Q, Trzcinski T, Wang Z, Pan C, Fua P (2014) Receptive _elds selection for binary feature description. IEEE Trans Image Process 23(6):2583–2595
Girshick RB, Donahue J, Darrell T, Malik J (2014) Rich feature hierarchies for accurate object detection and semantic segmentation. In: CVPR
Gonzalez RC, Woods RE (2018) Pearson, Digital Image Processing 4th edition, Prentice Hall
Gupta S, Mazumdar SG (2013) Sobel edge detection algorithm. International Journal of Computer Science and Management Research 2(2):2278–733X
Jung J, Gibson J (2006) The interpretation of spectral entropy based upon rate distortion functions, in IEEE International Symposium on Information Theory, pp. 277–281
Li Y, Zhang Y, Geng A, Cao L, Chen J (2016) Infrared image enhancement based on atmospheric scattering model and histogram equalization. Opt Laser Technol 83:99–107
Liang K, Ma Y, Xie Y, Zhou B, Wang R (2012) A new adaptive contrast enhancement algorithm for infrared images based on double plateaus histogram equalization. Infrared Phys Technol 55:309–315
Liu N, Chen X (2016) Infrared image detail enhancement approach based on improved joint bilateral filter. Infrared Phys Technol 77:405–413
Liu B, Pan J, McKay RI (2009) Entropy-based metrics in swarm clustering. Int J Intell Syst 24:989–1011
Pratt K W (1991). Digital Image Processing, Second Ed. Wiley, New York
Qi W, Han J, Zhang Y, Bai L-f (2016) Infrared image enhancement using cellular automata. Infrared Phys Technol 76:684–690
Raghatate RP, Rajurkar SS, Waghmare MP, Ambatkar PV (2013) Night vision techniques and their applications. International Journal of Modern Engineering Research 3(2):816–820
Saad MA, Bovik AC, Charrier C (2012) Blind image quality assessment: a natural scene statistics approach in the DCT domain. IEEE Transaction on Image Processing 21(8):3339–3352
Simo-Serra E, Trulls E, Ferraz L, Kokkinos I, Fua P, Moreno-Noguer F (2015) Discriminative learning of deep convolutional feature point descriptors. In: ICCV
Song Q, Wang Y, Baia K High dynamic range infrared images detail enhancement based on local edge preserving filter. Infrared Phys Technol. https://doi.org/10.1016/j.infrared.2016.06.023,2016
Thakur P, Thakur RS (2016) An Overview of Various Edge Detection Techniques used in Image Processing, International Journal of innovations in Engineering and technology, 2319–1058
Zeiler MD, Fergus R (2014) Visualizing and understanding convolutional networks. In: ECCV
Zhang S, Li P, Xu X, Li L, Chang CC (2018) No-reference image blur assessment based on response function of singular values. Symmetry 10(304):2–15
Zhao J, Qu S (2011) The fuzzy nonlinear enhancement algorithm of infrared image based on Curvelet transform. Procedia Engineering 15:3754–3758
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
Ashiba, M.I., Tolba, M.S., El-Fishawy, A.S. et al. Gamma correction enhancement of infrared night vision images using histogram processing. Multimed Tools Appl 78, 27771–27783 (2019). https://doi.org/10.1007/s11042-018-7086-y
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-018-7086-y