1 Introduction

Image enhancement is an important and attractive field of image processing, where the subjective quality of the image is essential for human interpretation. Contrast enhancement is an image enhancement technique used for both computer vision and human perception. Image quality improvement is a renovation applied to the raw input image to produce enhanced image with selectively emphasized region of interest. The contrast enhancement techniques are very diverse, broadly classified into two categories: direct enhancement method and indirect enhancement method (Gonzalez and Woods 2002; Goyal et al. 2018; Malik et al. 2018; Bhandari et al. 2018; Arici et al. 2009). Histogram equalization (HE) is most commonly used histogram processing technique, which aims to equalize the probability density function so that it can match uniform distribution approximately (Gonzalez and Woods 2002). HE has mean shift problem, which implies that the mean brightness is often very far from the input image mean brightness, which is not desirable in many cases or different application-oriented images such as satellite and medical images. To overcome these limitations, numerous researchers have offered different approaches to improve the enhancement quality of the HE-based approaches. Brightness preserving bi-histogram equalization (BBHE) (Kim 1997) was the earliest work on preserving the brightness of the original input image in the enhanced output image.

Furthermore, dualistic sub-image histogram equalization (DSIHE) (Wang et al. 1999) has been proposed to overcome the enhancement limitations. Although, these techniques are visually pleasing than the convention HE technique but they do not offer any controllability for over enhancement and are not very robust to noise. Afterward, a relatively new technique named as image contrast enhancement method for preserving mean brightness (ICEPMB) (Huang and Yeh 2013) was proposed which employed an automatic histogram separation block using PSNR based segmentation followed by intensity transformation block. Another new approach has been proposed towards the histogram modification framework using gamma correction methods. Adaptive gamma correction with weighting distribution (AGCWD) (Chiu et al. 2011; Rani and Kumar 2014) uses the idea of defining a separate gamma for every bin available in the histogram. The value of gamma is obtained from the modified cumulative distribution function (CDF) value and it is adaptive to the image.

Recently, a simple histogram modification scheme (SHMS) is proposed (Chang and Chang 2010) to solve the patchiness effect and washed-out appearance in the image through the application of conventional HE method. The histogram is modified before applying HE method. The first nonzero bin is replaced with zero bins to overcome washed out appearance and last nonzero bin is replaced by a minimum of two last non-zero bins to combat patchiness effect. This technique can be applied to the single threshold as well as multi-threshold histograms such as BBHE and DSIHE methods. However, for the case of multiple thresholds, relatively higher degree of brightness preservation is required to avoid generation of artifacts in the enhanced images. Consequently, quadrants dynamic histogram equalization (QDHE) (Ooi and Isa 2010) enhances the image by dividing the original image histogram into four sub-histograms, which are based on the median brightness of the input image.

Unlike the above methods, the weighted histogram approximation method (WAHE) (Arici et al. 2009) does not modify the original histogram directly by transformation function. Only the pixels having sufficient contrast with respect to their neighbors are counted in the histogram to avoid extreme change of smooth areas. Then, a weighted histogram approximation method is applied for further smoothing of the histogram. Finally, contrast stretching is performed to exploit the dynamic range of gray-levels method which is effective on the histogram pits only. Furthermore, gamma correction and addition based histogram modification (GCAHM) (Wang and Chen 2017) has been proposed through the combination of gamma correction and WAHE method to get more improvement which makes it suitable for the pits as well as spikes in the histogram.

Histogram equalization is a simple image contrast enhancement (CE) method but it produces excessive enhancement and creates unnatural artifacts on images with high peaks in their histograms. Therefore, many advancement have been reported in the literature towards the image contrast and brightness preservation related issues. In 2013, a novel scheme to enhance the image and video contrast has been presented through Bezier curve (Cheng and Huang 2013). In 2014, for real time image processing applications, a new hardware-based CE method has been proposed which have simple design to implement on hardware. In this paper, approximation concepts are considered to minimize the time complexity (Huang and Chen 2014). In 2015, a histogram-based locality-preserving contrast enhancement (CE) algorithm has been introduced (Shin and Park 2015), which aims to preserve locality of the input image histogram while enhancing the global contrast. Recently, an adaptive CE method has been proposed by considering both the shape of a 1D histogram and statistical detail on the gray-level differences among neighboring pixels computed by a 2D histogram (Kim and Kim 2017). Thereafter, a CE technique termed stratified parametric-oriented histogram equalization (SPOHE) is presented to efficiently produce a district and improved outcome without introducing any visual distortion such as halo or blocking effects, which is usually present in the previous streamlined image enhancement techniques (Liu et al. 2017a, b).

Due to significant performance in contrast and brightness enhancement areas, histogram based method continuously attracts many researchers to solve image enhancement related problems. Kumar et al. (2012) proposed a new method for low-contrast satellite image enhancement based on the singular value decomposition (SVD) and discrete cosine transform (DCT), which is obtained after processing through the traditional HE method. Subsequently, in 2014, they have introduced another two new approaches by exploiting the concept of the cuckoo search algorithm and artificial bee colony to get the optimum contrast and brightness enhancement using DWT–SVD for satellite image, which is also first processed by traditional HE. Later, in 2016, an improved knee transfer function and gamma correction based algorithm has been developed to realize the contrast and brightness enhancement of satellite images (Bhandari et al. 2016). Although various methods have been proposed to formulate the specific problem of contrast enhancement, these approaches have improved image qualities in a miscellaneous way especially by exploiting histogram-based methods. Enhancement of many natural images poses special challenges, because there may be less spectral variation from pixel to pixel and most importantly, there may be a high degree of correlation among the data from different sources. Therefore, to overcome these drawbacks, this paper addresses problems of quality enhancement, which is mainly focused to obtain a good trade-off between mean brightness preservation and contrast enhancement along with other basic parameters. In this paper, an effective histogram modification framework using DCT-µ, and DCT-A techniques for brightness preserved color satellite image enhancement has been proposed.

The rest of the paper is organized as follows. Section 2 gives an overview of discrete cosine transform. Section 3 provides a detailed discussion of the traditional histogram equalization and histogram modification technique. The proposed method is discussed in Sect. 4. Section 5 provides experimental results and discussion. Section 6 concludes the paper.

2 Motivation and overview of DCT

To overcome the problem of over and under area improvement issues, a group of researchers proposed many new techniques to achieve brightness preserving contrast enhancement. Celik and Tjahjadi (2011) have proposed a contextual information and variational model based image contrast enhancement algorithm. Further, they have proposed an automatic image contrast improvement scheme via histogram equalization and gaussian mixture modeling theory to perform nonlinear data mapping for producing visually pleasant enhanced images (Celik and Tjahjadi 2012). Likewise, a two-dimensional histogram equalization based image contrast enhancement method has been introduced which exploits the contextual detail nearby each gray level value (Celik 2012). In 2016, he has proposed a new method for global contrast enrichment through spatial mutual information (SMI) of gray scale information of an input image and PageRank algorithm ((Celik 2016). Recently, a simple and proficient fusion-based methodology have been developed through the combination of different image processing concepts to improve the contrast of the weakly illumination images (Fu et al. 2016). In order to overcome the shortcoming of the above methods, another brightness preserving adaptive contrast enhancement scheme has been proposed which uses 1D and 2D histogram models (Kim and Kim 2017).

The foremost reason behind proposing this scheme is to mainly overcome the problem of over and under enhancement that can be seen in many histogram based methods. The proposed algorithm can well enhanced the low contrast images with more naturalnesss, color preservation ability, and also prevents the artificial colors in the enhanced image unlike the other approaches. Furthermore, the proposed algorithm can well maintain the details of the image while sustaining the natural presence of the image. In this scheme, the local details of the image are emphasized through the coefficient scaling directly in the compressed domain using DCT. The computational time of the proposed method is also very less as compared to other methods.

The DCT is a technique to obtain frequency information from the signal. DCT works by representing the signal as the sum of weighted cosine basis functions, which are orthogonal in nature (Khayam 2003). For M × N image the 2-D cosine basis functions are computed by multiplying the horizontally oriented 1D cosine basis with a vertically oriented set of same functions. Thus, the transform can be given as:

$$y\left( {k,l} \right)=~\sqrt {\frac{2}{M}} \sqrt {\frac{2}{N}} {\alpha _k}{\alpha _l}\mathop \sum \limits_{{m=0}}^{{M - 1}} \mathop \sum \limits_{{n=0}}^{{N - 1}} x\left( {m,n} \right) \times \cos \frac{{\left( {2m+1} \right)k\pi }}{{2M}}\cos\frac{{\left( {2n+1} \right)l\pi }}{{2N}}$$
(1)
$${\alpha _k}=~\left\{ {\begin{array}{ll} {\frac{1}{{\sqrt 2 }}}&{k=0} \\ 1&{else} \end{array}} \right\}$$
(2)

It can be assumed that the component corresponding to (0, 0) i.e. y (0, 0) is the largest energy component or DC component which contain average value of sample image. The DCT helps to separate the image into spectral sub-bands of differing importance. The contrast enhancement using DCT is based upon the fact that lower absolute value of y (k, l) represents a lower energy component means lesser spatial details.

Inverse discrete cosine transform is used to obtain image back from the frequency domain which is defined as:

$$x\left( {m,n} \right)=~\sqrt {\frac{2}{M}} \sqrt {\frac{2}{N}} \mathop \sum \limits_{{k=0}}^{{M - 1}} \mathop \sum \limits_{{l=0}}^{{N - 1}} {\alpha _k}{\alpha _l}~y\left( {k,l} \right) \times \cos \frac{{\left( {2m+1} \right)k\pi }}{{2M}}\cos\frac{{\left( {2n+1} \right)l\pi }}{{2N}}$$
(3)

3 Histogram equalization and modification

Several image contrast improvement approaches compute mapping function from the traditional HE technique or the modified type. Traditional histogram equalization method tries to determine a enhance image with a histogram which is as close to an identical allocation as possible.

3.1 Histogram equalization

The traditional histogram equalization offers exploitation of original histogram to obtain mapping function and attempts to achieve an image with histogram close to a uniform distribution.

Let \(I\) be an input image with a gray level range [0, K − 1]. The probability density function can be defined as:

$$p\left( k \right)=\frac{{{h_i}\left( k \right)}}{N}{\text{~~~~~~~~~~~~~~~~~~~~~~for~~}}k=0,1, \ldots ,K - 1,$$
(4)

where hi is input image histogram and N is the number of pixels in the image.

Based on probability density function (PDF) the cumulative distribution function (CDF) can be defined as:

$$C\left( k \right)=\mathop \sum \limits_{{l=0}}^{k} p\left( l \right)~~~~~~~~~~~~~~~~{\text{for~~}}k=0,1, \ldots ,K - 1$$
(5)

Conventional HE maps the input intensity k to output intensity T(k) using the following transformation function:

$$T\left( k \right)=\left\lfloor {\left( {K - 1} \right) \times C\left( k \right)+0.5} \right\rfloor$$
(6)

The mapping function is directly affected by the rate of increment of CDF function, which is directly proportional to PDF function value. Hence, if PDF has very high value at some instant, then the rate of increment of CDF will be more and vice versa. This dependence will cause excessive brightness change for very high rate and patchiness effect for the very slow rate.

3.2 Addition based histogram modification (AHM)

To overcome the problem underlined in conventional HE, a suitable solution is to modify the histogram to the extent so that histogram peaks and pits are no more a problem in equalization and shape of the histogram i.e. ascending and descending pattern, is maintained. Let h be an input histogram and u be a uniform histogram then a complementary set of requirements i.e. pits and peaks are less and histogram shape is maintained, which can be obtained by objective function as defined in (Arici et al. 2009).

$$\tilde{h} = arg\mathop {min}\limits_{h} ||h - h_{i} ||_{2}^{2} + \lambda ||h - u||_{2}^{2}$$
(7)

where \(\tilde {h},h,{h_i}\) and \(u \in {R^{K \times 1}}\), and \(\lambda \in \left[ {0,+\infty } \right)\) is an adjustable parameter.

The solution to Eq. (7) can be given as:

$$\tilde {h}=\left( {\frac{1}{{1+\lambda }}} \right) \times \left( {{h_i}+\lambda u} \right)$$
(8)

The modified histogram is thus a weighted average of original and uniform histograms. The level of enhancement can be varied by tuning the parameters. As the adjustable parameter is increased, the mapping function goes towards original one. As pointed out by (Arici et al. 2009) the AHM is effective on the pits in the histogram but it is not robust for histogram peaks.

4 Proposed method

In this section, the proposed scheme has been discussed in detail that is followed by comprehensive steps and an overall flowchart routine.

4.1 Global contrast enhancement

4.1.1 Logarithmic law based histogram modification

Since, the addition based contrast enhancement method is not very effective to overcome the spikes in the histogram of the image (Arici et al. 2009). Therefore, a logarithmic law based approach has been exploited to overcome such kind of problem for quality image enhancement. From the communication systems, we know that during speech coding to suppress the high-frequency components a phenomenon called companding (compressing–expanding) is utilized. In companding the higher frequency components are relatively mapped to the smaller area over the amplitude axis, thus the number of bits used to represent the data is reduced. When data is received at receiver end it is expanded using the inverse law of the function utilized to compress it. In this paper, two forms of compander are used which are A-law and µ-law companders. Only compressing operation is required from the combined operation of compressing and expanding. To suppress peaks in the histogram of the image, a modified form of compander can be used which only affect the peaks and leaves the pits untouched.

For A-law

$${h_m}\left( x \right)=\left\{ {\begin{array}{ll} { - Ah\left( x \right)/\left( {1+ln\left( A \right)} \right){\text{ }}h\left( x \right)<1/A} \\ { - \left( {1+ln\left( {Ah\left( x \right)} \right)} \right)/\left( {1+ln\left( A \right)} \right){\text{ otherwise }}} \end{array}} \right.$$
(9)

For µ-law

$${h_m}\left( x \right)=\left\{ {\begin{array}{ll} {\mu h\left( x \right)/\left( {ln\left( {1+\mu } \right)} \right){\text{ }}h\left( x \right)< 1/\mu {\text{ }}} \\ {\left( {ln\left( {1+\mu h\left( x \right)} \right)} \right)/\left( {\left( {{\text{ln}}\left( {1+\mu } \right)} \right)\times \ln \left( 2 \right)} \right){\text{ otherwise }}} \end{array}} \right.$$
(10)

where A is a parameter defined for companding. hm is modified histogram and h is input histogram. Various levels of enhancement are obtained using the values of A or µ in corresponding laws.

4.1.2 Logarithmic law and addition based histogram modification

For suitable contrast enhancement without excessive brightness and patchiness effect a combination of addition and logarithmic law-based histogram modification is utilized.

Addition based histogram modification mentioned in Eq. (8) can be further simplified to represent it as the sum of the original histogram and weighted uniform histogram. Therefore, the logarithmic law based modifications are applied to the modified histogram. Hence, the resulting histogram can be given as:

$${h_f}=CP\left( {{h_i}+~\delta } \right)$$
(11)

where CP(·) is defined as compressing operation and hf is the final modified histogram.

4.1.3 Selection of parameters

The effectiveness of the presented algorithm depends upon the value of the parameters used to control the level of enhancement. There are two tuning parameters in each case of compressor utilized in this paper. To choose optimum tuning parameter, in case of A-law, the value of A and δ, whereas in case of µ-law, values of µ and δ should be selected according to the fluctuant curve of the histogram.

4.1.3.1 The value of δ

Addition of some value to the histogram can modify the histogram to make it nearer to the uniform histogram. Thus, the value of δ should be such that it improvises the varying nature of histogram. If the histogram is varying too much the value of δ should be higher to compensate and vice versa.

The standard deviation is the factor, which models the variability of the histogram. Thus, the parameter δ can be assumed to have a value equal to some fraction which depends upon the level of enhancement required. In this work, the value of δ is taken to be equal to the value of standard deviation:

$$\delta =\sqrt {\frac{1}{K}\mathop \sum \limits_{{k=0}}^{{K - 1}} {{\left[ {{h_i}\left( k \right) - \tilde {u}} \right]}^2}}$$
(12)

where hi is input histogram and \(\tilde {u}\)is average of hi.

4.1.3.2 The value of A/δ

The parameters A/δ can overcome spikes in the histogram. A bigger value of parameter A/δ means more enhancements in the contrast. The value of the parameter A/δ should be related to the contrast of the image. Roughly, the contrast of the image is related to the standard deviation of the image. Hence, the value of A/δ is assumed to be a multiple of standard deviation. In this paper, the value of A/δ is taken to be 3/4th of the standard deviation.

4.2 Local detail enhancement

This paper is focused to achieve feature preserved image contrast enhancement. Therefore, with regards to enhancing the contrast of the image both globally and locally, we adopt the procedure defines in (Fu et al. 2015) for scaling the coefficients directly in the compressed domain. As defined above, the DCT is used to obtain coefficients in the frequency domain. For further improvement of the image contrast, DCT components are exploited in the compressed domain. The coefficients of the frequency domain having lower values are scaled up with factor alpha (α) if they are under certain limit as defined in (Khayam 2003):

$$\mathop y\limits^{\prime} \left( {k,l} \right) = ~\left\{ {\begin{array}{ll} {y\left( {k,l} \right)} & {if~\left| {y\left( {k,l} \right)} \right|> 0.01 \times y\left( {k,l} \right)} \\ {\alpha y\left( {k,l} \right)} & {otherwise} \\ \end{array} } \right.$$
(13)

The value of scaling factor α > 1 controls the level of enhancement. Automatic selection of parameter alpha can be defined as below:

$$\alpha =1+\sqrt {\left| {H\left( {\tilde {I}} \right) - H\left( I \right)} \right|}$$
(14)

where H(·) is entropy of the image and \(\tilde {I}\) is the image after global image contrast enhancement.

At last, the final output image is reconstructed back from the compressed domain using inverse DCT (IDCT). A very large value of parameter would cause over enhancement in terms of edges and details losses. Automatic parameter setting provides a good trade-off between the level of enhancement and detail preservation. The flowchart of the proposed algorithm is given in Fig. 1.

Fig. 1
figure 1

Flow chart of DCT based method

An overall detailed methodology with steps is given as below:

Step 1:

As a first step, an input image with low contrast has been taken for processing.

Step 2:

Separate out luminance and chrominance component of input image. Only luminance component is further processed for enhancement purpose.

Step 3:

Histogram of the luminance component is obtained from the input image.

Step 4:

Histogram of input image is modified sequentially, first by using addition based modification then compressing based operation. The parameter chosen for AHM and compressing are δ and A/δ, which are equal to standard deviation and 3/4th of standard deviation respectively.

Step 5:

The luminance layer is equalized using the mapping function obtained from modified histogram.

Step 6:

To improve local details, scaled value of DC component is utilized from the transformation matrix as in Eq. (13) with the parameter alpha (α), which is related to entropy of the image.

Step 7:

The AC component of DCT of luminance component are modified according to Eq. (13). Then the image is reconstructed back to spatial domain by applying inverse operation.

Step 8:

The original chrominance and modified luminance component are layered together to construct the final enhanced image.

5 Experiments and discussion

In this section, the experimental results are presented. Therefore, the performance of the proposed algorithm is evaluated using well-known image quality checking fidelity parameters such as SSIM, CPP, DE, PSNR, AMBE EME and MEME. Table 1 represents the fidelity parameter considered to test the efficiency of proposed method. The definition of different objective assessment parameters can be described as given below.

Table 1 Comparison of MEME values computed by different algorithm and proposed method

5.1 Structural similarity index (SSIM)

The structural similarity index (Wang et al. 2004) compares the structure of original image with enhanced image. The SSIM is calculated as:

$${\text{SSIM}}\left( {I{\text{,}}\tilde {I}} \right)=\frac{{\left( {2{\mu _I}{\mu _{\tilde {I}}}+C1} \right)\left( {2{\sigma _{I\tilde {I}}}+C2} \right)}}{{\left( {\mu _{I}^{2}+{\mu ^2}_{{\tilde {I}}}+C1} \right)\left( {\sigma _{I}^{2}+{\sigma ^2}_{{\tilde {I}}}+C2} \right)}}$$
(15)

where µI is mean intensity of the image and given as:

$${\mu _I}=\frac{1}{N}\mathop \sum \limits_{{i=1}}^{N} {I_i}$$
(16)

and \({\sigma _{I\tilde {I}}}\)is the standard deviation of the image defined as:

$${\sigma _{I\tilde {I}}}=\frac{1}{{(N - 1)}}\mathop \sum \limits_{{i=1}}^{N} \left( {{I_i} - {\mu _I}} \right)\left( {{{\tilde {I}}_i} - {\mu _{\tilde {I}}}} \right)$$
(17)

C1 and C2 are the constants and are included to avoid instability when \(\mu _{I}^{2}+{\mu ^2}_{{\tilde {I}}}\) and \(\sigma _{I}^{2}+{\sigma ^2}_{{\tilde {I}}}\) are very close to zero. A higher value of SSIM shows better performance.

5.2 Constant per pixel (CPP)

Contrast per pixel (CPP) (Santhi and Banu 2015) is a performance metric which measures the level of contrast in an image. The contrast of each pixel with respect to the pixels in its neighborhood is calculated and averaged as:

$$C=\frac{{\mathop \sum \nolimits_{{i=0}}^{N} \mathop \sum \nolimits_{{j=0}}^{M} (\mathop \sum \nolimits_{{\left( {m,n} \right) \in R_{3}^{{\left( {i,j} \right)}}}} \left| {\gamma \left( {i,j} \right) - \gamma \left( {m,n} \right)} \right|)}}{{MN}}$$
(18)

The higher value of CPP means better contrast.

5.3 Discrete entropy (DE)

Discrete entropy (DE) quantifies the information present in the image (Celik 2014). More is the information content more will be the entropy. The entropy is defined as:

$$DE\left( I \right)= - \mathop \sum \limits_{{\forall k}} P\left( k \right)log\left( {P\left( k \right)} \right)$$
(19)

where p(k) is PDF as defined in Eq. (4). A higher value of DE implies richer details.

5.4 Peak signal to noise ratio (PSNR)

Peak signal to noise ratio (PSNR) (Bhandari et al. 2014a, b) is performance metric used for the evaluation of the quality of the enhanced image. It represents the ratio between the maximum possible power of the signal and power of distorting noise that affects the quality of its representation. It is given as:

$$PSNR=~20{\log _{10}}\frac{{255}}{{RMSE}}$$
(20)

where the RMSE can be defined as:

$$RMSE={\left( {\frac{1}{{MN}}\mathop \sum \limits_{{x=0}}^{{M - 1}} \mathop \sum \limits_{{y=0}}^{{N - 1}} {{\left| {{{\tilde {I}}_{xy}} - {I_{xy}}} \right|}^2}} \right)^{1/2}}$$
(21)

Higher the value of PSNR means lower the mean square error, hence better is image quality but this measure does not include human perspective.

5.5 Absolute mean brightness error (AMBE)

Absolute mean brightness error (AMBE) (Wang and Chen 2017) is defined as the difference between the mean intensity values of input and enhanced image.

$$AMBE=~\left| {{\mu _{\tilde {I}}} - ~{\mu _I}} \right|$$
(22)

where µI is average intensity of image as defined in Eq. (16).

Smaller the AMBE value means the average intensity of input image is better preserved.

5.6 Modified measure of enhancement (MEME)

The parameter measure of enhancement (EME) is prone to noise and it does not mix with inter-block contrast, since it depends only upon the maximum and minimum value in a block, not on the distribution of the other values and there is no mixing of contrast measure blockwise. Hence, a modified version of the EME called MEME is given by (Wang and Chen 2017) as:

$$MEME=\alpha \times \frac{{{C_{{I_{DC}}}}}}{{{k_1} \times {k_2}}} \times \frac{1}{{{k_1} \times {k_2}}}\mathop \sum \limits_{{i=1}}^{{k1}} \mathop \sum \limits_{{j=1}}^{{k2}} C_{{i,j}}^{w}$$
(23)

where k1 × k2 is number of sub-images. IDC is a thumbnail image of I. \({\text{~}}C_{{i,j}}^{w}\) and \({C_{{I_{DC}}}}\) are intra block and inter block contrast. C is defined as:

$$C=\sqrt {\frac{1}{{L \times M}}\mathop \sum \limits_{{m=1}}^{L} \mathop \sum \limits_{{n=1}}^{M} {{\left( {{I_{m,n}} - mean\left( {{I_{m,n}}} \right)} \right)}^2}}$$
(24)

where M × N is the size of the image I of interest.

5.7 Subjective analysis

Ten images with diverse image feature are examined in this section for performance evaluation and enhancement quality checking. Generally, a particular state-of-the-art technique works best for a special kind of image only and may not be useful in a very wide sense for the different purpose. Towards robustness for different kind of images provides an additional quality of the proposed approach. Enhancement results and histogram plots of the proposed and existing methods are shown in Figs. 2 and 3, respectively. In each case, the proposed algorithm provides a better result as compared to other methods. It can be observed in Fig. 3 that the histogram plots of the proposed approach preserve the original shape of the histogram in a better way. For example, the resultant image in Fig. 2j, k for the first test image has the highest contrast enhancement and the histogram of that image is best matched with the original histogram among all compared methods. The color appearance of the proposed output image is very similar to the concern input test image. The first test image is a dark image, still, the output image using the proposed scheme produces a homogeneous and smooth texture.

Fig. 2
figure 2

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 3
figure 3

Histogram image of a Original image, b HE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

In the case of Fig. 4a, a background is close to a plain color and there is a probability of degradation in methods which are not controlling the rate of CDF function prior to applying histogram equalization such as BBHE, DSIHE and ICEPMB. Both A-law and µ-law methods provide comparable performances as seen from the histogram of the images. The proposed algorithm is very effective in preserving the mean brightness and yet providing good results even in the case of dark images also as seen from the Figs. 5 and 6. Likewise, Figs. 7 and 8 show optimum as well as balance level of enhancement provided by the proposed algorithm. Consequently, the input image in Fig. 7a shows the same trends in the enhancement level as in the image in Fig. 4a. It can be easily remarked from the enhancement quality of Figs. 4j, k and 7j, k that there is no loss of any feature or information. Similarly, in case of satellite images considered in Figs. 9, 10, 11 and 12, proposed algorithm provides the optimum level of enhancement without degrading the quality of the image. Figures 13, 14 and 15 validate the superiority of the proposed method.

Fig. 4
figure 4

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 5
figure 5

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 6
figure 6

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 7
figure 7

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 8
figure 8

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 9
figure 9

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 10
figure 10

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 11
figure 11

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 12
figure 12

a Original image processed by bHE, c BBHE, d DSIHE, e QDHE, f SHMS, g ICEPMB, h WAHE, i AGCWD, j Proposed DCT-µ, k Proposed DCT-A

Fig. 13
figure 13

a, b MEME and AMBE performance graphs for each test images using traditional and proposed method respectively

Fig. 14
figure 14

a, b DE and PSNR performance graphs for each test images using traditional and proposed method respectively

Fig. 15
figure 15

a, b SSIM and CPP performance graphs for each test images using traditional and proposed method respectively

Global and local enhancement results using proposed method have been demonstrated in Fig. 16 for girl and lady image. In Fig. 16c, f, the color and detail improvement can be easily identified in the background and object region of the girl and lady image. On the other hand, illustrations provided in the Figs. 17, 18, 19, 20, 21, 22, 23, 24, 25 and 26 represent the enhanced images processed by different closely related techniques such as Fuzzy-Contextual Contrast Enhancement (FCCE) (Parihar et al. 2017), Exposure Based Sub Image Histogram Equalization (ETHE) (Singh and Kapoor 2014), Dominant Orientation-based Texture Histogram Equalization (DOTHE) (Singh et al. 2016), Multiscale Retinex (MSR) (Liu et al. 2017a, b), and Dong’s method (Dong et al. 2011). Furthermore, Fig. 27 depicts the original and corresponding output image using proposed scheme for five more satellite images. The satellite images demonstrated that the proposed method could well preserved the brightness and contrast of the original image without introducing artifacts.

Fig. 16
figure 16

a, d The local enhanced image, b, e denote global enhanced image, and c, f indicate the proposed method respectively

Fig. 17
figure 17

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 18
figure 18

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 19
figure 19

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 20
figure 20

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 21
figure 21

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 22
figure 22

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 23
figure 23

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 24
figure 24

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 25
figure 25

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 26
figure 26

a FCCE, b ETHE, c DOTHE, d MSR, e Dong, and f proposed DCT-A

Fig. 27
figure 27

ae The original satellite images and fj denote the enhanced images by the proposed method, respectively

5.8 Objective analysis

The proposed algorithm is compared to different well-known state-of-the-art techniques and results are arranged in form of separate tables for fair comparison of each parameter. In this paper, numerous famous enhancement techniques are included for better comparison of the proposed methodology, which are HE (Gonzalez and Woods 2002), BBHE (Kim 1997), DSIHE (Wang et al. 1999), QDHE (Ooi and Isa 2010), SHSM (Chang and Chang 2010), WAHE (Arici et al. 2009), ICEPMB (Huang and Yeh 2013) and AGCWD (Chiu et al. 2011). The reason behind selecting these methods is the exploitation of traditional histogram-based approach. These methods are focused on sub-histogram, histogram clipping or dynamic histogram equalization schemes. Some of the techniques such as HE, BBHE, DSIHE, QDHE, SHSM, are related to histogram equalization, whereas WAHE is related to histogram modification-based techniques. Other compared techniques are ICEPMB and AGCWD, which are related to PSNR based segmentation and adaptive gamma correction respectively. In addition, the two versions of the proposed method is also presented with the parameters as described above in the proposed methodology section.

Figures 13, 14 and 15 report the graphical representation of the data presented in the tabular format from Tables 2, 3, 4, 5, 6 and 7, which provide a comprehensive study of each method along with the proposed approach. The discrete entropy is calculated over the intensity component of the image only and in case of discrete entropy, the proposed algorithm provides the best value in all the cases studied in this paper without any exception. Tables 2, 3, 4, 5, 6 and 7 report the performance metrics for each method. Since from the subjective evaluation, we can clearly see that ICEPMB lacks in the enhancement criteria, hence this is an expected result. SSIM (Wang et al. 2004; Bhandari et al. 2014a, b), presented in Fig. 15a, which measures the structural similarity between input and output images. It can be seen that the proposed algorithm provides a better trade-off between enhancement and preservation for the dark images too as compared to HE, BBHE, DSIHE, QDHE, SHSM, WAHE, ICEPMB and AGCWD methods.

Table 2 Comparison of AMBE values computed by different algorithm and proposed method
Table 3 Comparison of DE values computed by different algorithm and proposed method
Table 4 Comparison of PSNR values computed by different algorithm and proposed method
Table 5 Comparison of SSIM values computed by different algorithm and proposed method
Table 6 Comparison of CPP values computed by different algorithm and proposed method
Table 7 Comparison of MEME values computed by different algorithm and proposed method

The other parameters such as MEME (Wang and Chen 2017) and CPP (Santhi and Banu 2015) are related to the level of enhancement. MEME yields optimum values that is close to the MEME value of input image as shown in Fig. 13a. CPP provides higher values for almost each case as seen from the Fig. 15b. Since the proposed algorithm makes a tradeoff between the level of enhancement and structural similarity which is depending upon values of parameters employed in the proposed algorithm and can be tuned to get better performance. Moreover, the proposed techniques give the flexibility to adopt a suitable tuning parameter according to the need of enhancement, which may increase or decrease on the basis of the level of distortion level in an image. Thus, from the validated output enhancement results and histogram plots perspective, it can be concluded that the proposed method outperforms and it also overcomes the drawbacks of traditional HE method which possesses over enhancement and under enhancement properties. However, histogram based existing methods such as HE, BBHE, DSIHE, QDHE, SHSM, WAHE, ICEPMB and AGCWD introduce major changes in the image gray level when the image is low contrast or spread of the histogram is not significant.

From Figs. 28, 29, 30, 31, 32 and 33, it is clear that the proposed method produces the superior scores for MEME, AMBE, DE, PSNR, SSIM, and CPP parameter as compared to the FCCE, ETHE, DOTHE, MSR, and Dong’s methods in almost every case. Table 8 reports computational complexity in terms of running time where proposed method offers fast processing speed as compared to FCCE, ETHE, DOTHE, MSR, and Dong’s method. Furthermore, the graph pattern of computation complexity has been given in Fig. 34 to examine the time complexity for each method. Hence, it may be concluded that the proposed method shows better enhancement performance against other methods.

Fig. 28
figure 28

MEME performance graph for each method

Fig. 29
figure 29

AMBE performance graph for each method

Fig. 30
figure 30

DE performance graph for each method

Fig. 31
figure 31

PSNR performance graph for each method

Fig. 32
figure 32

SSIM performance graph for each method

Fig. 33
figure 33

CPP performance graph for each method

Table 8 Comparison of CPU time (s) computed by different algorithm and proposed method
Fig. 34
figure 34

Time analysis graph for each method

Furthermore, histogram and retinex based existing methods such as FCCE, ETHE, DOTHE, MSR, and Dong’s method introduce major changes in the image gray level when the image is low contrast or spread of the histogram is not significant. These methods cannot preserve the mean image-brightness which is critical to many applications. The comparison of MEME, AMBE, DE, PSNR, SSIM, and CPP value for each method has been shown in Tables 7, 9, 10, 11, 12 and 13. From the evaluation of experimental outcomes, it can be concluded that the proposed DCT A-law and µ-law methods produce images that are not only quantitatively superior but also well in terms of quality as compared to HE, BBHE, DSIHE, QDHE, SHMS, ICEPMB, WAHE, AGCWD, FCCE, ETHE, DOTHE, MSR, and Dong’s methods. These methods cannot preserve the mean image-brightness which is critical to many image processing applications. The proposed method significantly reduces the amplified noise and low-light distortion without affecting original color and detail of the input image, therefore, it can be used for many visual imaging devices, which requires image enhancement with naturalness and brightness preservation. The limitation of the proposed architecture is that it will not work effectively work for medical images or very dark images. Other demerit of the proposed method could be considered that it may introduced some color artifacts when the contrast level of input image is highly distorted.

Table 9 Comparison of AMBE values computed by different algorithm and proposed method
Table 10 Comparison of DE values computed by different algorithm and proposed method
Table 11 Comparison of PSNR values computed by different algorithm and proposed method
Table 12 Comparison of SSIM values computed by different algorithm and proposed method
Table 13 Comparison of CPP values computed by different algorithm and proposed method

6 Conclusion

In this paper, a novel logarithmic histogram modification scheme has been proposed for image enhancement with naturalness and brightness preservation. The proposed algorithm is composed of global and local enhancement process to produce overall good results. At first, to compute global enhancement, addition and logarithmic law based modifications have been applied to the histogram and then histogram equalization is applied to calculate mapping function. Thereafter, to enhance the local details, a coefficient scaling method using DCT has been applied. A number of experiments were performed over proposed method to find out its robustness and it is concluded that proposed algorithm produces a very high quality of image enhancement for different type of images such as satellite images, dark image or low illumination image. The enhanced images produced by the proposed methodology generally keep its naturalness intact in spite of histogram equalization steps. The proposed method is simple in complexity due to straightforward operations like addition and logarithmic. Experimental results demonstrate that the proposed scheme produces highest SSIM, PSNR, entropy and optimum MSE, MEME, AMBE, CPP values for almost all the cases for each method.

As a scope of future work, the proposed algorithm can be used as an objective function for various evolutionary optimizing techniques to get optimum enhancement results. Furthermore, different combinations of the presented method can be used through the multi-objective optimization based problems to improve the quality of poor quality images. This method can also be useful for enhancement of medical images, weakly illuminated images as well as remote sensing images for various applications.