1 Introduction

Image enhancement is one of the most important prerequisites for facilitating image in multimedia information retrieval [1,2,3]. In recent, different types of image enhancement mechanisms are suggested, such as image de-noising [4], image de-hazing [5,6,7], image sharpening [8], image de-blurring [9], image fog removal [10], image filtering [11], histogram stretching [12], image shadow removal [13], image smoothing [14, 15], histogram equalization [16,17,18,19,20]. Histogram equalization (HE) [16] is one of the simplest and quickest methods in the area of brightness conservation and contrast improvement of digital images, where using the probability density function of the input histogram, image intensity is mapped to a dynamic range for contrast improvement of digital images [16]. However, a variety of HE methods are utilized for enhancing different types of images such as, underwater image [21], infrared (IR) image [22, 23], magnetic resonant imaging (MRI) [24], computed tomography (CT) image [25], endoscopic image [26], heritage image [27], satellite image [28].

Basically, HE shifts the mean intensity of the image abruptly and causes extra artifacts. However, to diminish such occurrences bi-HE oriented methods like, brightness preserving bi-HE (BBHE) [29], dualistic sub-image HE (DSIHE) [30], minimum mean brightness error bi-HE (MMBEBHE) [31] are presented, where input histogram is divided in two different sub-histograms using respective sub-histogram separation criteria and equalized each sub-histogram independently. Later, recursive mean separate HE (RMSHE) [32], recursive sub-image HE (RSIHE) [33] schemes are suggested, where histogram is divided using a recursive level r. Initially, when \(r=1\) histogram separation is done using the mean and the median intensity of the input image for RMSHE and RSIHE. Subsequently, BBHE and DSIHE methods are applied in two sub-histograms for RMSHE and RSIHE, respectively, and each sub-histogram is equalized independently. Here, when \(r=2\), RMSHE and RSIHE are divided into four sub-histograms. In both of the methods, resultant output produces miscellaneous artifacts.

In general, above-mentioned methods could not restrict over-enhancement outcome. So, to restrict over-enhancement, plateau limit (PL) or clip limit (CL) criteria for histogram are recommended in bi-HE with a PL (BHEPL) [34], where histogram is spit in two sub-histograms and PL mechanism is applied in two sub-histograms before final independent sub-histogram equalization. Chen and Nor [35] proposed dynamic quadrants HE using plateau limit (DQHEPL) method, where PL of four sub-histograms is based on the mean of each sub-histogram, respectively. Then, modified histograms are equalized autonomously. Similarly, in [36] double plateau limit-based HE method is suggested, where plateau limits are computed using multiple coefficients using input histogram but could not enhance low-light or degraded images efficiently. Another bi-HE-based method is proposed in [18], where probability density values of an input histogram are selected for bisection threshold parameter. Here, degradation of output is observed for dim and low-contrast images. Modified histogram clipping using the difference of histogram bins (MCDHB) is proposed in [37], where 15% of threshold parameter is redistributed with clipped histogram, and difference of the original histogram and the histogram of the conventional HE is taken into consideration for six types of adaptive PL criteria before the final HE process.

In recent, various quad-histogram-based HE methods are proposed [38,39,40], where input histograms are subdivided in four sub-histograms, using respective criteria and finally equalized independently. These quad-based HE methods provide brightness preservation of the input image quite proficiently, but could not enhance degraded or low-contrast images very efficiently. In [20], combination of low dynamic range (LDR) HE and Haar wavelet transform (HWT) is used for local and global contrast enhancement of images. Here, special inverse operation is done for regulating extra enhancement in the construction phase. Recursion-oriented multi-histogram clipping HE method is suggested in [41], where histogram is separated in two or more sub-histogram and six types of histogram clipping are considered for brightness preservation and contrast enhancement. These types of multi-plateau and multi-histogram equalization normally increase computational complexity. Histogram division is an important issue in multi-histogram equalization; in most of the above-discussed methods, separation of histogram is done in imbalanced range, such as over-extended or small-spanning. To overcome such issue, Lin et al. [42] uttered statistic separate tri-HE technique (SSTHE), where input histogram is split into clusters of three sub-histograms using the mean brightness and the standard deviation (SD) of the image, then each sub-histograms are equalized independently. Here, SSTHE does not include clipping of histogram, and subsequently, over enhancement in the output image can be observed.

In [43], PL-based tri-HE method (PLTHE) is suggested using the SD of the image, where middle sub-histogram acquires maximum histogram pits and the average of the mean and the median of the histogram is used as a plateau limit, and finally, sub-histograms are equalized separately, whereas first and the last sub-histograms often remain un-clipped, and therefore, over-enhancement can be visible in the output image. In [44], mean or median-based triple dynamic clipped HE (TDCHEM) is proposed, where the initial separation of the input histogram is made of two parts using the median or the mean of the input image. Then, the range of first sub-histogram is denoted from minimum input image intensity to 66% of entire number of pixels in the upper sub-histogram, and the range of second sub-histogram is indicated from first separation point to 33% of entire number of pixels in the lower sub-histogram, and the range of third sub-histogram is indicated from second separation point to maximum level of input image intensity. However, the output of this method creates unwanted artifacts and over-enhancement due to the mapping of partitions into dynamic ranges abruptly. Zarie et al. [45] proposed SD-based triple clipped dynamic HE method (TCDHESD), where histogram of input image is separated into three pieces with nearly equal amount of pixels based on the SD of the input image, and subsequently, the PL of each sub-histogram is done using the mean of each sub-histogram. In TCDHESD, the desired output become slightly over-enhanced, and few visible artifacts are observed due to mapping of sub-histograms in new dynamic ranges.

Motivated from the various tri-HE base methods, specially PLTHE method and various PL criteria of histogram as discussed above, in this paper, we have suggested a novel tri-plateau limit tri-HE method, where input histogram is separated in three sub-histograms using separation threshold parameter, and individual sub-histogram plateau limit criteria is included to compute tri-plateau sub-histograms. Later, redistribution of clipped portion is done to sub-histogram, and finally, modified sub-histograms are equalized separately to achieve the enhanced output.

Fig. 1
figure 1

Partition and modification criteria of histogram for the proposed algorithm

Fig. 2
figure 2

Example of the proposed method: (a) Original image, (b) Histogram modification for the proposed method, (ce) Three sub-histograms for the proposed method, (fh) Clipped sub-histograms, and (ik) Redistributed sub-histograms

Fig. 3
figure 3

(Fig. 2 continued): for three sub-histograms (ac) Probability distributions, (df Cumulative probability distributions (gi) Input-output mapping curves, (jl) Three sub-images from mapping curves, (m) Output image, and (n) Transformation function (merging three mapping curves) for the proposed method

Contributions of this paper are given as follows:

  1. 1.

    Histogram of the input image is divided in three sub-histograms, and histogram division mechanism is prepared using threshold parameters, which are generated using standard deviation of the input image. In PLTHE [43] method, for most of the images, the initial and the last sub-histograms, i.e., two boundary sub-histograms remain very small and negligible, because calculation of threshold parameters does not include the maximum and the minimum intensity of the image. Here, in this proposed method, the maximum and the minimum intensity of the image is considered for two boundary sub-histogram generation.

  2. 2.

    In histogram modification criteria, sub-histograms are clipped using individual plateau limit criteria, where the average of the mean and the median of the individual sub-histogram is considered as plateau limit. Clipped sub-histograms are redistributed using redistribution parameter, which is formulated using the clipped pixels of the histogram.

  3. 3.

    In performance analysis, various recent trend HE methods are preferred, out of which tri-HE methods, like SSTHE [42], PLTHE [43], TDCHEM [44], and TCDHESD [45], are also considered. For quantitative assessment, average information content (AIC) [46], feature similarity index metric (FSIM) [47], multi-scale structural similarity index measure (MS-SSIM) [48], visual saliency induced index (VSI) [49], and gradient magnitude similarity deviation (GMSD) [50] are considered. Images with diverse image features from various well-known data-sets, like USC-SIPI image data-set [51], Kodak image data-set [52], CSIQ image data-set [53], and Berkeley image data-set [54] are selected. Quantitative results of various HE methods for more than 550 images are represented as graphical and tabular forms considering image data-sets [52,53,54] .

The remaining part of this paper is organized as follows: Sect. 2 describes the proposed adaptive tri-plateau limit tri histogram equalization method, Sect. 3 demonstrates experimental results and analysis, and finally, Sect. 4 represents conclusions.

2 Proposed method

Conventional histogram equalization amplifies the contrast of an image by stretching the histogram as wide as possible to a specified range. For a given image I, the histogram H(i) for intensity level i is defined as

$$\begin{aligned} {H}(i)=n_{i} ~~~~ for~i=0,1,2,...(L-1), \end{aligned}$$
(1)

where L is the maximum range of gray level, (256 for an 8-bit image, 0 to 255). Here, \(n_{i}\) is the number of pixels of the image whose intensity level is i. Here, N is the total number of pixels in the image, and it is shown as:

$$\begin{aligned} N=\sum _{i=0}^{L-1}{H}(i). \end{aligned}$$
(2)

Figure 1 demonstrates partition and modification mechanism of input histogram for the proposed method.

Initially, the input histogram is split into three sub-histograms using two threshold parameters \({X}_{L}\) and \({X}_{U}\), which are given as follows:

$$\begin{aligned} {\left\{ \begin{array}{ll} {X}_{L}={X}_{0}+SD\\ {X}_{U}={X}_{m}-SD, \end{array}\right. } \end{aligned}$$
(3)

where SD is the standard deviation [42] of the input image, and \({X}_{0}\) and \({X}_{m}\) are the minimum and the maximum intensities of the input image, respectively. Three sub-histograms are denoted as \(H_{L}\), \(H_{M}\), and \(H_{U}\), and their corresponding range of intensities is from 0 to \({X}_{L}\), \({X}_{L}+1\) to \({X}_{U}\), and \({X}_{U}+1\) to \(L-1\), respectively. However, loss of contact between two sub-histograms can create artifacts, so lower sub-histogram ends in \({X}_{L}\) intensity and middle sub-histogram starts in \({X}_{L}+1\) intensity. In the same way, middle sub-histogram ends in \({X}_{U}\) intensity and upper sub-histogram starts in \({X}_{U}+1\) intensity, respectively.

Figures 2 and 3 clearly illustrate the proposed method graphically, where the input image, histogram of the input image, histogram division, sub-histogram modification, probability density function, cumulative probability density function, transformation function for input-output mapping curve, and output image are shown.

To restrict over-enhancement, most of the HE-based methods use the mean or the median as a plateau limit. Basically, the mean and the median are alike in symmetrical data-distribution. If the data are not symmetrically distributed (positively skewed/negatively skewed), then the mean and median are not equal. This proposed method gives the flexibility to deal with these variations in the data-distribution, and it is achieved by the average of the median and the mean of the individual sub-histogram for choosing the plateau limit threshold parameters. These parameters are formulated as

$$\begin{aligned} {\left\{ \begin{array}{ll} PL_{L} = \displaystyle \frac{mean[H_{L}(i)]+median[H_{L}(i)]}{2} ~ \quad for \quad 0 \le i \le {X}_{L}\\ PL_{M} = \displaystyle \frac{mean[H_{M}(i)]+median[H_{M}(i)]}{2} ~~ for \quad {X}_{L}+1 \le i \le {X}_{U}\\ PL_{U} = \displaystyle \frac{mean[H_{U}(i)]+median[H_{U}(i)]}{2} \quad for \quad {X}_{U}+1 \le i \le L-1. \end{array}\right. } \end{aligned}$$
(4)

Plateau limit sub-histograms are generated using plateau limit threshold parameters, and these modified sub-histograms are computed as

$$\begin{aligned} {\left\{ \begin{array}{ll} {H}_{PL}(i)= {\left\{ \begin{array}{ll} PL_{L} &{}\hbox { if}\ H(i) \ge PL_{L} \\ H(i) &{}\hbox { if}\ H(i)< PL_{L} \end{array}\right. } ~~~~~~ for \quad 0 \le i \le {X}_{L}\\ {H}_{PM}(i)= {\left\{ \begin{array}{ll} PL_{M} &{}\hbox { if}\ H(i) \ge PL_{M} \\ H(i) &{}\hbox { if}\ H(i)< PL_{M} \end{array}\right. } ~~ for \quad {X}_{L}+1 \le i \le {X}_{U}\\ {H}_{PU}(i)= {\left\{ \begin{array}{ll} PL_{U} &{}\hbox { if}\ H(i) \ge PL_{U} \\ H(i) &{}\hbox { if}\ H(i) < PL_{U} \end{array}\right. }\quad for \quad {X}_{U}+1 \le i \le L-1. \end{array}\right. } \end{aligned}$$
(5)

Plateau limit sub-histograms are combined as

$$\begin{aligned} H_{TPL} = {H}_{PL} \cup {H}_{PM} \cup {H}_{PU}. \end{aligned}$$
(6)

Next, the total number of clipped pixels can be represented as the histogram, \(H_{S}\) and this is formulated as

$$\begin{aligned} H_{S}(i) = {H}(i) -{H}_{TPL}(i) \quad \quad for \quad 0 \le i \le L-1. \end{aligned}$$
(7)

In this proposed approach, a redistributed parameter is merged with plateau limit sub-histograms to cut down over-enhancement and provide clear visualization, and this redistributed parameter is calculated as

$$\begin{aligned} R = \frac{mean[H_{S}]+median[H_{S}]}{2}. \end{aligned}$$
(8)

This proposed method also provides the flexibility to the redistribution parameter. The mean or the median of the clipped portion is not taken directly as a redistributed parameter. Here, it is achieved by the average of the median and the mean of the clipped portion from the input histogram.

Now, using redistributed parameter, redistributed sub-histograms are computed as

$$\begin{aligned} {\left\{ \begin{array}{ll} {H}_{RL}(i)= {\left\{ \begin{array}{ll} H_{PL}(i) &{}\hbox { if}\ H_{PL}(i)< 1 \\ H_{PL}(i) + R &{}\hbox { if}\ H_{PL}(i) \ge 1 \end{array}\right. }\quad ~~~~for \quad 0 \le i \le {X}_{L}\\ {H}_{RM}(i)= {\left\{ \begin{array}{ll} H_{PM}(i) &{}\hbox { if}\ H_{PM}(i)< 1 \\ H_{PM}(i) + R &{}\hbox { if}\ H_{PM}(i) \ge 1 \end{array}\right. }\quad for \ {X}_{L}+1 \le i \le {X}_{U}\\ {H}_{RU}(i)= {\left\{ \begin{array}{ll} H_{PU}(i) &{}\hbox { if}\ H_{PU}(i) < 1 \\ H_{PU}(i) + R &{}\hbox { if}\ H_{PU}(i) \ge 1 \end{array}\right. }\quad for \ {X}_{U}\!+\!1 \!\le \! i \!\le \! L\!-\!1.\nonumber \end{array}\right. }\!\!\!\!\!\!\!\!\!\!\!\!\!\!\\ \end{aligned}$$
(9)

Here, redistributed parameter is merged with non-empty histogram bins. Generally, for low contrast image, a very small amount of non-empty histogram bins are present. If redistributed parameter is merged with all histogram bins comparatively less enhanced image is formed. Whereas, if non-empty histogram bins are selected for merging the redistributed parameter than comparatively well enhanced image can be achieved. A demonstration of such phenomenon is shown in Fig. 4

Fig. 4
figure 4

Example of the effect of adding redistribution parameter. (a) low contrast input image, (b) output of the proposed method, where the redistribution parameter is added with all histogram bins, (c) output of the proposed method, where the redistribution parameter is added only with non-empty histogram bins. (df) histogram of (ac), respectively, where vertical axis indicates number of pixels and horizontal axis indicates image intensity

Probability density functions (PDFs) of redistributed sub-histograms are \(PD_{L}\), \(PD_{M}\) and \(PD_{U}\), which are computed as

$$\begin{aligned} {\left\{ \begin{array}{ll} PD_{L}(i) = \frac{{H}_{RL}(i)}{N_{L}} ~\quad for \quad 0 \le i \le {X}_{L}\\ PD_{M}(i) = \frac{{H}_{RM}(i)}{N_{M}} \quad for \quad {X}_{L}+1 \le i \le {X}_{U} \\ PD_{U}(i) = \frac{{H}_{RU}(i)}{N_{U}} \quad for \quad {X}_{U}+1 \le i \le L-1. \end{array}\right. } \end{aligned}$$
(10)

where \(N_L\), \(N_M\), and \(N_U\) are total number of pixels in redistributed sub-histograms \(H_{RL}\), \(H_{RM}\), and \(H_{RU}\), respectively. Finally, the transformation function is calculated as

$$\begin{aligned} {T}_{F}(i)= {\left\{ \begin{array}{ll} {X}_{L}\times \sum _{i=0}^{{X}_{L}}PD_{L}(i) \quad \quad \quad \quad \quad \quad for \quad 0 \le i \le {X}_{L}\\ ({X}_{L}+1)+({X}_{U}-({X}_{L}+1))\times \sum _{i={X}_{L}+1}^{{X}_{U}}PD_{M}(i)\\ \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad for \quad {X}_{L}+1 \le i \le {X}_{U} \\ ({X}_{U}+1)+((L-1)-({X}_{U}+1))\times \sum _{i={X}_{U}+1}^{L-1}PD_{U}(i)\\ \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad for \quad {X}_{U}+1 \le i \le L-1.\nonumber \end{array}\right. }\!\!\!\!\!\!\!\!\!\\ \end{aligned}$$
(11)

Transformation function \(T_{F}\) represents the desired mapping function for the proposed algorithm. Here, variable k is used to calculate cumulative probability till k-th intensity.

Detail steps of the proposed method are given as follows:

  1. 1.

    Histogram, H(i) is formed from the input image.

  2. 2.

    Histogram separation threshold parameters, \({X}_{L}\) and \({X}_{U}\), are calculated using Eq. 3.

  3. 3.

    Three sub-histograms, \(H_{L}\), \(H_{M}\), and \(H_{U}\) are formed using histogram separation threshold parameters, where corresponding ranges of intensities for sub-histograms are from 0 to \({X}_{L}\), \({X}_{L}+1\) to \({X}_{U}\), and \({X}_{U}+1\) to \(L-1\), respectively.

  4. 4.

    Plateau limit parameters, \({PL}_{L}\), \({PL}_{M}\) and \({PL}_{U}\), are calculated for three sub-histograms using Eq. 4.

  5. 5.

    Plateau limit sub-histograms, \({H}_{PL}\), \({H}_{PM}\) and \({H}_{PU}\), are formulated as shown in Eq. 5.

  6. 6.

    Plateau limit sub-histograms are combined and subtracted from the original histogram to generate the histogram of clipped pixels using Eqs. 6 and 7, where \({H}_{TPL}\) is the combination of plateau sub-histograms and \({H}_{S}\) is the histogram of clipped pixels.

  7. 7.

    Redistribution parameter, R, is calculated using Eq. 8.

  8. 8.

    Modified sub-histograms are formulated using the redistribution parameter, as shown in Eq. 9.

  9. 9.

    After that probability density functions (PDFs) of modified sub-histograms are given as \(PD_{L}\), \(PD_{M}\), and \(PD_{U}\), as shown in Eq. 10.

  10. 10.

    Next, transformation function \(T_{F}\) is formulated using Eq. 11 for the proposed method, where cumulative PDFs are used for respective sub-histogram equalization. Finally, image intensities are rounded to the nearest integer.

3 Experimental results and analysis

To evaluate performance of the proposed method, state-of-the-art algorithms like SSTHE [42], DQHEPL [35], MCDHB [37], PLTHE [43], TDCHEM [44], and TCDHESD [45] are compared. Quantitative and qualitative assessments are accomplished using MATLAB environment with windows 10 operating system, Intel core i5 (3.6GHz), and 8 GB RAM. Here, gray-scale images are taken directly for experiments, whereas for color images, the input image is converted from RGB to YUV color space. Different HE algorithms are applied only on the Y component, and quantitative results of different HE methods are applied on Y component only, where U and V color components are unchanged. After applying any HE technique to Y component, YUV to RGB conversion is done [16]. Images are selected from various image data-sets, like USC-SIPI image data-set [51], Kodak image data-set [52], CSIQ image data-set [53], and Berkeley image data-set [54], where quantitative results of images from three data-sets [52,53,54] are symbolized in graphical and tabular forms.

Table 1 Performance evaluation of contrast enhancement algorithms
Table 2 Performance evaluation of contrast enhancement algorithms

3.1 Quantitative assessment

In quantitative assessment, quantitative measures like AIC [46], FSIM [47], MS-SSIM [48], VSI [49], and GMSD [50] are considered. In recent, these quantitative measures are highly used in different image enhancement methods [55,56,57,58,59] for quantitative evaluations.

3.1.1 AIC

AIC or average information content represents total information content in an image [46]. The AIC is defined as:

$$\begin{aligned} AIC=-\sum _{i=0}^{L-1} P(i)\log _{2} P(i), \end{aligned}$$
(12)

where probability density function of an image is P(i) at intensity point i and L is the maximum image intensity level. Larger value of AIC indicates more information content.

3.1.2 FSIM

Feature similarity index metric or FSIM demonstrates the overall similarity between the input image \(m_{1}\) and the enhanced image \(m_{2}\). Phase congruence for \(m_{1}\) and \(m_{2}\) is described as \(P_{1}\) and \(P_{2}\), respectively. \(S_{LS}(i)\) provides the local similarity of \(m_{1}(i)\) and \(m_{2}(i)\) at i pixel position. Maximum of \(P_{1}(i)\) and \(P_{2}(i)\) is denoted as \(P_m(i)\). Entire image in spatial domain is denoted as \(\Omega \). FSIM outcome between \(m_{1}\) and \(m_{2}\) is formulated as:

$$\begin{aligned} FSIM=\frac{\sum _{i\subset \Omega }^{}{S_{LS}(i).P_{m}(i)}}{{\sum _{i\subset \Omega }^{}P_{m}(i)}}. \end{aligned}$$
(13)

FSIM output is between 0 and 1, and higher value indicates greater enhancement.

3.1.3 MS-SSIM

Multi-scale structural similarity index measure or MS-SSIM is suggested by Wang et al. [48]. General structural similarity index [48] between signal x and y is as follows:

$$\begin{aligned} GSSIM= {[l(x,y)]}^{\alpha }{[c(x,y)]}^{\beta }{[s(x,y)]}^{\gamma }, \end{aligned}$$
(14)

where luminance, contrast, and structure factors of the image are denoted as [l(xy)], [c(xy)], and [s(xy)], respectively, where \(\alpha \), \(\beta \), and \(\gamma \) are used to define the relative importance of three components. MS-SSIM is defined as follows:

$$\begin{aligned} {MS-SSIM}= {[l_{M}(x,y)]}^{\alpha M}.{\prod _{j=1}^M}{[c_{j}(x,y)]}^{\beta j}{[s_{j}(x,y)]}^{\gamma j}.\nonumber \!\!\!\!\!\!\!\!\\ \end{aligned}$$
(15)

Here, \([c_{j}(x,y)]\) and \([s_{j}(x,y)]\) are computed at j-th scale and only luminance comparison [l(xy)] is calculated in M scale as shown in Eq. (15). Larger value of MS-SSIM confirms superior image quality.

3.1.4 VSI

Visual saliency index or VSI of input image \(m_{1}\) and output image \(m_{2}\) is described as \(V_{s1}\) and \(V_{s2}\), respectively. \(S_{LS}(i)\) provides the local similarity of \(m_{1}(i)\) and \(m_{2}(i)\) at i pixel position. Maximum of \(V_{s1}(i)\) and \(V_{s2}(i)\) is denoted as \(V_{mx}(i)\). Entire image in spatial domain is denoted as \(\Omega \). Higher value of VSI indicates greater enhancement. VSI outcome between \(m_{1}\) and \(m_{2}\) is formulated as:

$$\begin{aligned} VSI=\frac{\sum _{i\subset \Omega }^{}{S_{LS}(i).V_{mx}(i)}}{{\sum _{i\subset \Omega }^{}V_{mx}(i)}}. \end{aligned}$$
(16)

3.1.5 GMSD

Xue et al. [50] established an image quality measurement metric called gradient magnitude similarity deviation (GMSD). Standard deviation of gradient magnitude similarity (GMS) at each pixel of an image is called as GMSD. In the mathematical formulation, \(M_{m1}\) and \(M_{m2}\) are the magnitudes of gradients of the input image \(m_{1}\) and the distorted image \(m_{2}\), respectively, at i pixel location, where C is a positive constant. Mean of GMS (GMSM) is used to formulate GMSD with total pixel number \(P_{X}\) as shown in Eqs. (17) and (18). Equation (19) gives the calculation for GMSD.

$$\begin{aligned}&GMS(i)=\frac{2M_{m1}(i).M_{m2}(i)+C}{M^{2}_{m1}(i).M^{2}_{m2}(i)+C}. \end{aligned}$$
(17)
$$\begin{aligned}&GMSM =\frac{1}{P_{X}}\sum _{i=1}^{P_{X}} (GMS(i))^{2}. \end{aligned}$$
(18)
$$\begin{aligned}&GMSD =\Bigg (\frac{1}{P_{X}}\sum _{i=1}^{P_{X}} (GMS(i)-GMSM)^{2}\Bigg )^{1/2}. \end{aligned}$$
(19)

Lower value of GMSD explains less distortion in image quality so that the visual perception is better.

Tables 1 and 2 represent output of various quantitative metrics for different HE methods, where fifteen test images (Tiffany, Kodim02, Moon, Dragonfly, Girl, Airplane, Hawks, Hills, Buffalo, Lady, Child, Gate, Kangaroo, Pyramid, and Family) are considered. Figure 5 is showing these test images, which are of diverse image features like different contrast and brightness from various well-known image data-sets ( [51,52,53,54]). The best result is shown in boldface, and the second best result is specified using underline for Tables 1, 2 and 3.

Fig. 5
figure 5

Images from different data-sets for experimental analysis

Fig. 6
figure 6

Box plot for different quantitative measures using different HE methods for Kodak [52] data-set, where outcome of three best methods is marked as blue

From Tables 1 and 2, it is clearly observed that the proposed method provides the best AIC values for all images except Tiffany, Child and Gate images, where the proposed method gives the second best result of AIC for Tiffany image. Proposed method offers the best FSIM and VSI results for all fifteen images. Suggested method delivers the highest MS-SSIM results for all images except Moon, Tiffany, and Gate images, where the next best values of MS-SSIM for these three images are given by the proposed method. Except Child and Airplane images, the proposed method demonstrates the best GMSD values for all images, where the second best value for Child and Airplane images are represented by the proposed method.

Box plot for different quantitative measures using different HE methods for various data-sets such as Kodak [52], CSIQ [53], Berkeley [54] is shown in Fig. 6, 7 and 8, respectively, where outcome of three best methods is marked as blue. It is observed that the proposed method provides superior performance with respect to the other techniques.

Fig. 7
figure 7

Box plot for different quantitative measures using different HE methods for CSIQ [53] data-set, where outcome of three best methods is marked as blue

Fig. 8
figure 8

Box plot for different quantitative measures using different HE methods for Berkeley [54] data-set , where outcome of three best methods is marked as blue

Table 3 Performance evaluation of various methods, where the average values of different quantitative metrics are shown for various image data-sets
Table 4 Average computational time (in sec) of various algorithms for different image data-sets
Fig. 9
figure 9

Hawks image and output of SSTHE [42], DQHEPL [35], MCDHB [37], PLTHE [43], TDCHEM [44], TCDHESD [45], and Proposed method

Fig. 10
figure 10

Buffalo image and output of SSTHE [42], DQHEPL [35], MCDHB [37], PLTHE [43], TDCHEM [44], TCDHESD [45], and Proposed method

Fig. 11
figure 11

Kodim02 image and output of SSTHE [42], DQHEPL [35], MCDHB [37], PLTHE [43], TDCHEM [44], TCDHESD [45], and Proposed method

Fig. 12
figure 12

Moon image and output of SSTHE [42], DQHEPL [35], MCDHB [37], PLTHE [43], TDCHEM [44], TCDHESD [45], and Proposed method

Fig. 13
figure 13

Hills image and output of SSTHE [42], DQHEPL [35], MCDHB [37], PLTHE [43], TDCHEM [44], TCDHESD [45], and Proposed method

Fig. 14
figure 14

Airplane image and output of SSTHE [42], DQHEPL [35], MCDHB [37], PLTHE [43], TDCHEM [44], TCDHESD [45], and Proposed method

Fig. 15
figure 15

Tiffany image and output of SSTHE [42], DQHEPL [35], MCDHB [37], PLTHE [43], TDCHEM [44], TCDHESD [45], and Proposed method

Fig. 16
figure 16

Output of different HE methods using HSV color space for Tiffany image (first row) and Hawks image (second row)

Table 3 illustrates average results of different quantitative metrics for various HE methods on different well-known image data-sets [52,53,54]. Here, except AIC metric of CSIQ [53] data-set, the proposed method shows the best performance for rest of the entities.

Table 4 represents the average computation time of various methods for different image data-sets (Kodak image data-set [52] (24 images of size \(768\times 512\) pixels), CSIQ image data-set [53] (30 images of size \(512\times 512\) pixels), Berkeley image data-set [54] (500 images of size \(481\times 321\) or \(321\times 481\) pixels)). Here, DQHEPL takes much higher time due to quad histogram separation, whereas MCDHB takes reasonably longer time due to multiple plateau limit operations. The suggested method is computationally capable, and it is appropriate for real-time applications.

3.2 Visual assessment

In visual assessment, seven test images (Hawks, Buffalo, Kodim02, Moon, Hills, Airplane and Tiffany ) are taken into consideration from different image data-sets ( [51, 52, 54]).

Figure 9 shows a low contrast Hawks image and output of different HE methods, where SSTHE provides an erroneous outcome in the middle of the image, and DQHEPL illustrates a little better output, but extra artifacts can be visible. MCDHB furnishes over-enhanced result with extra dark pixels. PLTHE does improve well, but a few pixels are washed out in the feather area of the large hawk as shown in the cropped section. TDCHEM and TCDHESD supply almost alike output with some artifacts in the background region. Suggested scheme furnishes clear enhanced result with well-visualized background and foreground regions.

In Fig. 10, products of various HE methods are given for a slightly low contrast and dim Buffalo image, where SSTHE shows enhanced product with a few white and gloomy pixels. MCDHB gives over-enhanced output with a few extremely dark pixels. DQHEPL, TDCHEM, and TCDHESD give alike result with added dark pixels in the head region of the buffalo, but the water region is lightly well enhanced. PLTHE provides a well-enhanced outcome in most of the region of the image, but a few dark regions can be observed around the head area. Our recommended technique illustrates the best visualization concerning the other methods.

From the output results of various HE methods, as shown in Fig. 11, it is observed that our projected scheme not only restricts unwanted over-enhancement but also provides clear details with well-enhanced output concerning to the other methods.

For the Moon image, as shown in Fig. 12, SSTHE produces well-improved output with few artifacts in the middle region of the image. DQHEPL, TDCHEM, and TCDHESD give significantly better-enhanced outcome, but a few areas around the moon region get slightly over-enhanced. MCDHB algorithm offers over-enhanced result around the moon and sky regions. PLTHE can perform well but, minor pixels are washed-out around the moon region. The suggested scheme illustrates the best output with properly detailed enhancement.

Hills image and output of a diverse HE schemes are provided in Fig. 13, where SSTHE and DQHEPL present similar erroneous outcome, especially in the sky regions. MCDHB demonstrates extra dark pixels in the sky regions. PLTHE and TCDHESD give similar result with a few dark and erroneous pixels in the sky regions. TDCHEM shows dull and low-contrast outcome. Our suggested technique produces the best product with clear visualization.

Figure 14 provides different results for the Airplane image. Here, SSTHE, TDCHEM, and TCDHESD present alike dull and low-contrast outcome. DQHEPL and PLTHE deliver similar result, where a few regions of plane and sky remain lightly dark. MCDHB provides extra dark regions and unwanted artifacts. Proposed method shows well-enhanced output, though few portion in the background get over-enhanced, but cropped section effectively justifies the superior outcome. Moreover, the histogram of output image is nicely distributed in dynamic intensity regions.

Figure 15 presents various HE outcomes of Tiffany image, where SSTHE gives extra dark pixels in the background region. DQHEPL, PLTHE, and TCDHESD show similar outcome, but few areas of head region remain dull and gloomy. MCDHB shows unwanted dark pixels over the whole region of the image. Background of TDCHEM is slightly over-enhanced with extra artifacts. Proposed scheme provides well-enhanced output with clear visualization with respect to the other methods.

A cropped portion is demonstrated for each image in Fig. 9, 10, 11, 12, 13, 14, 15. In Figs. 14 and 15, histogram of various HE methods is presented, where vertical axis indicates number of pixels and horizontal axis indicates image intensity. In Fig. 15, for each histogram, red, green, and blue color components are shown by red, blue, and green colors, respectively.

Figures 9, 10, 11, 12, 13, 14, 15 demonstrate visual representation of different HE methods for various images (Hawks, Buffalo, Kodim02, Moon, Hills, Airplane and Tiffany) considering YUV color space [60]. Apart from YUV color space, various other color spaces [21, 56, 60,61,62] are utilized in image enhancement techniques. HSV [21] color space is one of them. Here, an example of HSV color space using different HE methods for two images (Girl and Hawks) are shown in Fig. 16. Here, SSTHE and DQHEPL perform well, but MCDHB, TDCHEM, and TCDHESD provide extra artifacts. PLTHE provide comparatively well-enhanced output. The proposed method provides the best outcome comparing other techniques.

Visual outcomes and quantitative results positively authenticate the superiority of the suggested technique; however, our proposed technique would be extended by establishing a parallel processing technology to minimize the computational time.

4 Conclusions

In this paper, a novel adaptive tri-plateau limit tri-histogram equalization technique is suggested for digital image enhancement, where input histogram is split in three sub-histograms, and subsequently each sub-histogram is clipped and modified using redistribution parameter, and finally, each modified sub-histogram is equalized individually. Recent improved algorithms like SSTHE, DQHEPL, MCDHB, PLTHE, TCDHEM, and TCDHESD are compared with the proposed approach. Quantitative metrics like AIC, FSIM, MS-SSIM, VSI, and GMSD are utilized for comparative assessment; in addition, three well-known image data-sets are considered for various quantitative outcomes of different HE methods and illustrated in graph plots, which depicts the superior result of our proposed technique. Moreover, the visual output of the suggested method gives superior clear visualization concerning the other state-of-the-art methods.