1 Introduction

With the latest technologies, Digital images are considered to be one of the most important methods of recording and representing information [23]. Mobile phones and digital cameras have acquired the technology of photography. Image processing is a field of study that implements a few steps in the input images to make a few changes to the output images and turn them into useful images. When image acquisition, bad lightning, adverse environmental conditions, an unfavorable environment, and negligence when image acquisition can affect the quality of the image. For reasons like these, there are some practical issues with handling images. In today’s modern world, digital image processing has made a huge impact in solving such problems. The main reason for this is the rapid development of home electronics, medical field research, image analysis in a submarine, etc. So, low light and low contrast images are enhanced by computer vision and pattern recognition. Over the past few decades, histogram equalization (HE), fuzzy logic-based methods, etc. have played a significant role in improving images taken in low light. Many HE-based methods [1, 9, 12,13,14, 16, 17] have been proposed to enhance the quality of an image for better visual perception. Yussof et al. [30] used contrast limited adaptive histogram equalization (CLAHE) technique to derive the enhanced image from a combination of outputs performed on the RGB color model and hue, saturation, value (HSV) color model that was done through the euclidean norm. In the medical field, to cope with the problem of poor contrast in medical images, Wadhwa et al. [28] presented a method based on morphological transforms to improve the quality of the images. Zhuang et al. [32] developed a novel edge-preserving filtering retinex algorithm for single underwater image enhancement. In recent days the technology has improved from 2D images to 3D data [10, 18, 29]. Panetta et al. [22] introduced a new technique for contrast enhancement for color images called histogram shifting with alpha rooting.

Fuzzy set theory has the best ability to deal with uncertain areas in digital image processing. Zadeh [31] proposed the theory in 1965; since then, it is widely used in various fields, especially in digital image processing. Hanmandlu et al. [11] introduced a global contrast escalation operator (GINT), which contains three variables, intensification parameter, fuzzifier, and the crossover point, to enhance the color images. In 2009, Nair et al. [20] evaluated the conventional contrast enhancement techniques known as the recent Gray-level ensemble method and ambiguous logic method to find out what is suitable for automatic variation enhancement for ocean satellite images obtained from various sensors. In 2013, a novel fuzzy-based and histogram-based algorithm for enhancing low-intensity color images have been proposed by Raju et al. [25]. The algorithm is fast compared to standard and other new enhancement algorithms based on two important variables: M and K. Here, M is the average intensity value of the given image, which is calculated from the histogram, and K is the contrast escalation variable. Furthermore, current methods for image enhancement are based on transformational domain methods, which may introduce color artifacts and reduce the intensity of input remote sensing images. Sharma et al. [26] introduced a modified approach that can enhance the contrast in digital images efficiently by using a modified blur-based development algorithm to overcome this problem.

Sometimes the membership function of fuzzy sets cannot simultaneously represent evidence of support, opposition, and reluctance. To overcome this problem, Atanassov [2] introduced the higher version of fuzzy sets known as intuitionistic fuzzy sets (IFSs). In 1996, Burillo and Bustins [6] defined the distance between intuitionistic fuzzy sets, and they gave a definitive definition of intuitionistic fuzzy entropy and a theorem that characterizes it. Nowadays, several intuitionistic fuzzy c-means clustering algorithm methods have been introduced in [3, 5, 8, 27] by using intuitionistic fuzzy entropy.

Images captured in low light have low brightness, low contrast, relatively high noise, and artifacts. That captured low-light images seriously affects the visual experience, which leads to a significant decline in image quality and leads to difficulty in distinguishing details with the normal eye and tough in carrying out subsequent image processing. The above problem is critical to many vision tasks because computer vision algorithms like image denoising, image fusion, image restoration, image segmentation are primarily designed to accommodate high-quality inputs. So it is tough to process the low light images without enhancing them. The objective of image enhancement is to bring out hidden details and increase the contrast and the quality of an image. In the history of image enhancement, histogram equalization has received the most attention because of its intuitive implementation quality and high efficiency. However, histogram equalization in image enhancement technologies largely does not consider the fuzziness of the image but changes the contrast of the whole image or suppresses the noise, thus, often suppress the noise and weaken the detail of the image. The standard process of this method is to re-map the grayscale of the low illumination image and approximate the resulting histogram uniform distribution. This standard process assumes that the image quality will be the same in all areas, and a unique grayscale mapping will provide a similar improvement over all parts of the image. However, when the distribution of grayscale shifts from one region to another, this assumption is not valid, resulting in an unnatural appearance and fading appearance in images. To overcome this problem, a new fuzzy-based enhancement algorithm is proposed here. The original crisp image is first converted into a fuzzy image. However, when a crisp image is converted to a fuzzy image, its intensity values only change from 0-255 to 0-1. Nevertheless, there will be no change in the image’s visualization. The fuzzy image again transformed into an intuitionistic fuzzy image to fix this shortcoming. The intuitionistic fuzzy image resolves the fading appearance of the given low-light image. Finally, one can get an enhanced image after applying the histogram equalization. In this manuscript, we introduce a new image enhancement technique for low light color images. A new feature of the proposed method is the determination of the degree of hesitation in Yager’s intuitionistic fuzzy generator system.

This manuscript is arranged as follows. Section 2 outlines the initial stages of the intuitionistic fuzzy set (IFS). Section 3 discusses intuitionistic fuzzy images using Yager’s intuitionistic fuzzy generator with histogram equalization. Section 4 demonstrates the experimental results of the proposed work. Finally, the decision is made in Section 5.

2 Preliminaries

2.1 Fuzzy sets (FSs)

Let S = {s1,s2,...,sn} be a non-empty set. Define a fuzzy set B of S as

$$ \begin{array}{@{}rcl@{}} B=\left\{\left( s,\mu_{B}(s)\right)| s\in S\right\} \end{array} $$
(1)

where \(\mu _{B}(s):S \rightarrow [0,1]\) represent the degree of membership of s in S.

2.2 Concept of intuitionistic fuzzy set

To create both member and non-member functions, Atanasov [2] introduced a new version of the fuzzy sets, called the IFS. An intuitionistic fuzzy set A in S, can be expressed as:

$$ \begin{array}{@{}rcl@{}} A=\left\{\left( s,\mu_{A}(s),\nu_{A}(s)\right)\mid s \in S\right\} \end{array} $$
(2)

where \( \mu _{A}(s)\rightarrow [0,1],\nu _{A}(s)\rightarrow [0,1]\) are the belongingness and non belongingness degrees of an element s in the set A with the condition 0 ≤ μA(s) + νA(s) ≤ 1 when νA(s) = 1 − μA(s) for every s in set A, then the set A becomes an intuitionistic fuzzy set.

Again Atanasov introduced a degree of hesitation πA(s) for all IFS and it is expressed as

$$ \begin{array}{@{}rcl@{}} \pi_{A}(s)=1-\mu_{A}(s)-\nu_{A}(s) \end{array} $$
(3)

clearly 0 ≤ πA(s) ≤ 1. Because of the hesitation degree, the membership values are lies between [μA(s),μA(s) + πA(s)]

2.3 Construction of intuitionistic fuzzy sets

Let \({\Psi } (S):[0,1]\rightarrow [0,1]\) be an increasing, and decreasing continuous function and intuitionistic fuzzy generator if

Ψ(s) ≤ (1 − s) for all s ∈ [0,1] and Ψ(0) ≤ 1 and Ψ(1) ≤ 0 For more details one can refer [5, 7, 27] and references therein. In this manuscript, an intuitionistic fuzzy generator is constructed from Yager’s generating function [6]. The fuzzy generator function is expressed as

$$ \begin{array}{@{}rcl@{}} \c{N}(\mu_{A}(s))=h^{-1}(h(1)-h(\mu_{A}(s))) \end{array} $$
(4)

where h(⋅) is an increasing function and \(h:[0,1]\rightarrow [0,1]\).

Yager’s class can be generated by using the following function in the above equation (4) as follows:

$$ \begin{array}{@{}rcl@{}} h(s)=s^{\upbeta} \end{array} $$
(5)

So, Yager’s intuitionistic fuzzy generator can be expressed as:

Ņ(s) = (1 − sβ)1/β,β> 0 where Ņ(1) = 0,Ņ(0) = 1. Here Ņ(s) are calculated by Yager’s generating function. Hence, one can obtain the following IFS: \(A^{IFS}=\left \{\left (s,\mu _{A}(s),(1-\mu _{A}(s)^{\upbeta })^{1/\upbeta }\right )|s\in S\right \}\) and the hesitation degree is:

$$ \begin{array}{@{}rcl@{}} \pi_{A}(s)=1-\mu_{A}(s)-(1-\mu_{A}(s)^{\upbeta})^{1/\upbeta} \end{array} $$
(6)

Also

$$ \begin{array}{@{}rcl@{}} \mu_{A}(s)= 1-\pi_{A}(s)-(1-\mu_{A}(s)^{\upbeta})^{1/\upbeta} \end{array} $$
(7)

Remark 1

If μA(s) + νA(s) = 1 then πA(s) = 0. Suppose if μA(s) + νA(s) < 1 then the hesitation value πA(s) > 0. Intuitionistic fuzzy generator has been utilized to obtain the value of πA(s) > 0.

2.4 Histogram equalization

Increasing the contrast of a low-contrast image involves distributing the pixel values of an image more evenly across the range of allowable values. An alternate approach is known as histogram equalization, which is entirely automatic, extremely simple to implement, and parameter-free.

Histogram equalization first converts the probability density function (captured by the normalized histogram) to a cumulative distribution function (CDF) by computing the running sum of the histogram:

$$ \begin{array}{@{}rcl@{}} \bar c [\rho]=\sum\limits_{k=0}^{\rho} \bar h[k], \rho =0,1,...,255 \end{array} $$

where ρ are gray levels of the histogram. \(\bar c\) is the running sum of the histogram. \(\bar h\) is a floating-point value.

The running sum can be computed efficiently by initializing the first element of the array according to \(\bar c[0]=\bar h[0]\) and then updating \(\bar c[\rho ]=\bar c[\rho -1]+\bar h[\rho ]\) for each gray level ρ. Once the CDF has been computed, a pixel with gray level ρ is simply transformed to \(\rho ^{\prime } = Round(255\cdotp \bar c[\rho ])\). Note that since the integral of a probability density function (PDF) is always 1, the CDF always evaluates to 1 at the largest value, and thus \(\bar c[255]=1\). As a result, the output \(\rho ^{\prime }\) is in the range from 0 to 255 as desired.

HE stretches the dynamic range of an image and enhances image contrast. The same argument can also be applied to color images by separating the RGB channels and applying the algorithm individually. However, it also tries to change the brightness of an image with an unnatural contrast magnification. For further details, one can refer [1].

3 Proposed fuzzy based method

3.1 Fuzzy image (FI)

An image I of M × N dimension is considered as an array of fuzzy singletons. An intuitionistic fuzzy set A in S, whose support is defined as supp(A) = {sSμA(s) > 0} for further information, see [21]. The source image I is fuzzified by using the following expression [4]

$$ \begin{array}{@{}rcl@{}} \mu_{A}(I(i,j))=\frac{\xi_{ij}-\xi_{min}}{\xi_{max}-\xi_{min}}, 1 \leq i \leq M, 1 \leq j \leq N. \end{array} $$
(8)

where ξij is the intensity value of (i,j)th pixel. ξmax and ξmin denote the maximum and minimum intensity value of the image I, respectively.

3.2 Intuitionistic fuzzy image (IFI)

Using Yager’s intuitionistic fuzzy generator, πA(s) is constructed using equation (6). From (6) and (8), we can construct an Intuitionistic fuzzy image as

$$ \begin{array}{@{}rcl@{}} IFI=\frac{\xi_{ij}-\xi_{min}}{\xi_{max}-\xi_{min}}+\pi_{A}(s) \end{array} $$
(9)

where πA(s) = 1 − μA(s) − (1 − μA(s)β)1/β,β> 0

$$ \begin{array}{@{}rcl@{}} i.e\qquad IFI=\mu_{A}(I(i,j))+\pi_{A}(s)\ \end{array} $$
(10)

for all i = 1,2,...,m and j = 1,2,...,n

3.3 Estimation of β

β value for equation (6) is calculated using entropy value described in section 4.1.1 as shown in Fig. 2. First, the β values are calculated from 0.1 to 1, each of which is calculated by the entropy value. The amount of β that gives the most entropy to them that is, the maximum entropy value, is taken as the selected value. These β values are different for different images.

3.4 Defuzzification

Defuzzification is the process of representing a fuzzy set with a crisp number. The same argument is suitable for fuzzified images. For further information on defuzzification, refer [4] and for defuzzification of intuitionistic fuzzy sets refer [15, 24]. The crisp image derived from the fuzzified image becomes the following expression,

$$ \begin{array}{@{}rcl@{}} \xi_{ij}=FI(\xi_{max}-\xi_{min})+\xi_{min} \end{array} $$
(11)

Hence to defuzzify the intuitionistic fuzzy image, the expression becomes

$$ \begin{array}{@{}rcl@{}} \xi_{ij}=(IFI)(\xi_{max}-\xi_{min})+(\xi_{min})-\pi_{A}(s)(\xi_{max}-\xi_{min}). \end{array} $$
(12)

3.5 Proposed algorithm

Step 1:

Take a color image I which is taken in low light of size n (= M × N).

Step 2:

Find fuzzy image μ(I(i,j)) for the given original image I by using the expression \(\mu _A(I(i,j))=\frac {\xi _{ij}-\xi _{min}}{\xi _{max}-\xi _{min}}\). where ξij is the intensity value of (i,j)th pixel. ξmax and ξmin denote the maximum and minimum intensity value of the image I, respectively.

Step 3:

Calculate β value as described in section 3.3 to find non-membership degree (1 − μA(s)β)1/β for μA(I(i,j)) by using Yager’s generating function as discribed in section 2.3.

Step 4:

Find hesitation degree for μA(I(i,j)) by using the expression πA(s) = 1 − μA(s) − (1 − μA(s)β)1/β.

Step 5:

Construct intuitionistic fuzzy image IFI(i,j) from μA(I(i,j)) by using the expression IFI= μA(I(i,j)) + πA(s).

Step 6:

Apply histogram equalization as described in section 2.4 for IFI to get the enhanced intuitionistic fuzzy image IFI1.

Step 7:

Finally defuzzy the enhanced image by mapping an intuitionistic fuzzy image to a crisp image i.e \(IFI_{1} \rightarrow I\) to get the proposed enhanced image by using the expression ξij = (((IFI)(ξmaxξmin)) + ξmin) − πA(s)(ξmaxξmin).

4 Experimental result and analysis

An experiment is performed under the following environment. The machine CPU is an Intel (R) Core (TM) i7-9700 processor that works with a fundamental frequency of 3.00GHz Quad-Core technology. The hard disk is 2TB, and RAM is 16 GB installed with the Windows 10 Pro operating system’s ultimate version. The experimental setup is run over the MATLAB R2018b by using the image processing toolbox.

Experimental tests are executed on 150 images which are taken from low light paired dataset (LOL) (“https://daooshee.github.io/BMVC2018website/”). The flow chart of the proposed algorithm is given in Fig. 1. The generation of the IFI is given in Fig. 2. The schematic diagram of the proposed method is given in Fig. 3. Figure 4 illustrates the original images and their corresponding enhanced images with their corresponding β values. In Fig. 5, the first column stands for original images. The second column stands for low light images tested by the histogram equalization method. Third, fourth, fifth, sixth, seventh, and finally eighth are tested by CLAHE, HSA, DCT, BPDFHE, IFI, and the proposed method. One can visualize that the proposed method gives better results than other existing literature.

Fig. 1
figure 1

Flow chart of the proposed algorithm

Fig. 2
figure 2

Generation of intuitionistic fuzzy image

Fig. 3
figure 3

Schematic diagram of the proposed method

Fig. 4
figure 4

Original and enhanced images with their corresponding β values

Fig. 5
figure 5

The enhanced output of the low light images comparing with various methods

4.1 Performance analysis

The quality of an image can be objectively measured using mathematical functions. There are many mathematical functions or measures to evaluate the quality of improved images, such as entropy and the structural similarity index, Etc. The method proposed in each performance analysis yields good results.

4.1.1 Entropy

Here Shannon entropy with maximum information is used to measure the quality of an image. Images with high entropy have the best quality of the image. Expression of entropy value is

$$ \begin{array}{@{}rcl@{}} E=-\sum\limits_{i=1}^m\sum\limits_{j=1}^nP(i,j)logP(i,j) \end{array} $$
(13)

Where i and j represent two different gray-levels of the pictures, P refers to the number of co-appearance of gray-levels i and j.

In Table 1, The entropy values for the enhanced images have been discussed in Table 1. Moreover, researchers well know that images with maximum entropy values have the best quality images; for instance, see [19]. The table values that the proposed method gives good quality in images. The histogram output of entropy values for the low light images is given in Fig. 6.

Table 1 Performance measures using entropy values for images in Fig. 5
Fig. 6
figure 6

Histogram output of entropy values for Fig. 5

4.1.2 Structural similarity index (S S I M)

The structural similarity index measure between images o and e is followed by

$$ \begin{array}{@{}rcl@{}} SSIM(o,e)=\frac{(2\bar{\mu}_o\bar{\mu}_e+c_1)(2\sigma_{oe}+c_2)}{(\bar{\mu}^2_o+\bar{\mu}^2_e+c_1)(\sigma^2_o+\sigma^2_e+c_2)} \end{array} $$
(14)

where c1 and c2 are positive constants. o and e represent original and enhanced images. \(\bar {\mu }_o\) and \(\bar {\mu }_e\) depict the mean intensities of o and e respectively. σoe represents the covariance of o and e. \(\sigma ^2_o\) and \(\sigma ^2_e\) are the variance of o and e respectively.

In Table 2, the SSIM values [15] for the enhanced images are discussed. If the two images have the same quality, the SSIM values will be 1; otherwise, 0. Figure 7 displays the histogram output for SSIM values between the low light images and the enhanced images. We can easily identify that the original images and the proposed enhanced images are neither close to 1 nor close to 0, which proves that the enhanced image does not lose its originality.

Table 2 Performance measures using SSIM values for images in Fig. 5
Fig. 7
figure 7

Histogram output of SSIM values for Fig. 5

5 Conclusion and future direction

This study proposes an efficient intuitionistic fuzzy-based color image enhancement method. During the experimental section, the proposed method has been compared with other existing methods such as HE, CLAHE, HSA, DCT, BPDFHE, and IFI. The comparative analysis has been made by entropy and SSIM; it was decided that the proposed method provides best in most cases based on quantitative and qualitative improvement. The proposed method is more suitable for low light enhancement for color images than other existing methods. In the future, this proposed fuzzy set ideas will be extended to analyse 2D images to 3D images. The proposed method will be utilized to study the video enhancement techniques.