Abstract
In this paper, we propose an optimized contrast enhancement algorithm for color images that improves visual perception of information. As color plays an important cue in many application areas, to prevent unwanted artifacts on color, our proposed method translates the color image into de-correlated lαβ color space based on the statistics of cone response to natural images. A color is defined in the lαβ space by an achromatic channel (brightness l), the red, green chrominance channel (α) and the yellow-blue chrominance channel (β). In order to avoid over saturation and annoying artifacts, our method is applied to the luminance component of the image and α and β are kept as constants. The key work of this paper is to use an adaptive gamma correction factor chosen by particle swarm optimization (PSO) to improve the entropy and enhance the details of the image. Gamma correction is a well-established technique that preserves the mean brightness of an image and produces more natural looking images by the choice of an optimal gamma factor. In the proposed method, the edge content and entropy are used as an objective function for each particle since a color image with good visual contrast includes many intensive edges. Since edges play a primary role in image understanding, one good way to enhance the contrast is to enhance the edges. Simulation results indicate that the proposed PSO optimized contrast enhancement improves overall image contrast and enriches the information present in the image. The proposed method is suitable for many real-time image processing applications.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
1 Introduction
Contrast enhancement techniques improve the perception of information in images or provide meaningful information for real-time image processing applications. Human perception excels at building a visual representation with bright colors and details across the wide-ranging photometric levels due to lighting variations. Reproducing an image equivalent to direct observation of the human visual system is an arduous task. The scene captured by the human visual system is extremely non-linear. Consequently, the captured image often deviates from the human perception of the original scene [9]. The contrast enhancement techniques found in literature works well on gray level images with uniform spatial distribution. But complexity arises when the recorded images suffer from a loss in clarity of the data and shade as light levels drop within the shadows and the distance from the lighting source increases. Henceforth it is necessary for a contrast enhancement algorithm that produces an enhanced color image which matches the direct observation of a scene by human visual system [17, 45, 47]. This paper addresses the contrast enhancement algorithm that overcomes the difficulties in the recorded image in an optimized way.
The rest of the paper is organized as follows. Attributes of visual sensation are discussed in section 2 and various color models are discussed in section 3. Various contrast enhancement algorithms are discussed in section 4 and the proposed contrast enhancement algorithm is discussed in section 5. Experimental results and performance evaluation of the proposed work are discussed in section 6. Finally, conclusions are drawn in section 7.
2 Attributes of visual sensation
The aim of contrast algorithm is to provide a more appealing image with vivid colors and clarity of details [48]. The contrast enhancement algorithms are intimately related to different attributes of visual sensation. The attributes are brightness, lightness, hue, colorfulness, chroma and saturation.
Brightness is a relative term and it depends on the visual perception of a human. Brightness can be defined as the amount of energy output by a source of light relative to the source compared to it. Lightness means the brightness of an area judged relative to the brightness of a similarly illuminated area that appears to be white or highly transmitting [48].
Hue is the term for the pure spectrum colors commonly referred to by the “color names” - red, orange, yellow, blue, green violet - which appear in the hue circle or rainbow (http://char.txa.cornell.edu/language/element/color/color.htm). Colorfulness is a visual sensation according to which the perceived color of an area appears to be more or less chromatic. Chroma is the colorfulness relative to the brightness of a similarly illuminated area that appears to be white or highly transmitting. The colorfulness of an area is judged in proportion to its brightness (http://char.txa.cornell.edu/language/element/color/color.htm).
The objective of contrast enhancement algorithms is to increase the visibility of details that may be obscured by deficient global and local lightness. The aim of color enhancement can be either (i) to increase the colorfulness or (ii) to increase the saturation. Increasing the lightness can give a perception of increased colorfulness. The perceived saturation can be increased by increasing chroma or reducing lightness, or both. If chroma is increased moderately while slightly reducing the lightness, both saturation and colorfulness in an image can be enhanced. Hence, it necessary to develop algorithms that satisfy the following attributes while improving the contrast of the image.
3 Color models
This section describes the color models used in color image processing applications. The choice of the color space plays a major role in color image contrast enhancement algorithms and that should not introduce any artifacts in the enhanced images.
3.1 RGB color space
RGB color space did not correspond with the human color perception and so, image enhancement algorithms applied directly to RGB images could lead to color artefacts [42]. Hence it is necessary to transfer the RGB image into some other color space whose dimensions corresponded to luminance, hue and saturation. The commonly used color spaces are HSV, HSL and CIE lαβ color spaces.
3.2 HSL and HSV color spaces
HSL stands for hue, saturation, and lightness. HSV stands for hue, saturation and value. These two are the most commonly used color spaces developed in 1970’s for computer graphics applications and used nowadays in color pickers, in image editing software, and less commonly in image analysis and computer vision applications [42]. These two color models are cylindrical-coordinate representations of points in an RGB color model. RGB is the way computer screens work, but it is not very intuitive. HSL is more intuitive, but you need to convert it to RGB before you can draw a pixel with it. The advantage in the application of this color model is that we can easily create rainbow gradients or change the color, lightness or saturation of an image with this color model.
3.2.1 RGB to HSV conversion
RGB to HSV and HSL conversions are given by [42]. Let R, G, B denotes red, green and blue colors. Now saturation(S) and value (V) can be computed as follows.
Where Max = max (R,G,B) and Min = min (R,G,B). Hue is defined by three different formulas that depend on maximum of value RGB color channel as given below:
-
(i)
If Red is max, then Hue = (G − B)/(Max − Min)
-
(ii)
If Green is max, then Hue = 2.0 + (B − R)/(Max − Min)
-
(iii)
If Blue is max, then Hue = 4.0 + (R − G)/(Max − Min)
3.2.2 RGB to HSL conversion
In HSL space, the luminance or lightness (L) can be calculated by adding the max and min values and dividing the sum by 2.
Saturation (S) is calculated based on the level of the luminance.
-
(i)
If luminance is smaller than 0.5, then S = (Max − Min)/(Max + Min)
-
(ii)
If luminance is greater than 0.5, then S = (Max − Min)/(2.0 − Max − Min)
The Hue (H) formula depends on what RGB color channel has the max value. The three different formulas are:
-
If red is max, then H = (G − B)/(Max − Min)
-
If green is max, then H = 2.0 + (B − R)/(Max − Min)
-
If blue is max, then H = 4.0 + (R − G)/(Max − Min)
The Hue value needs to be multiplied by 60 to convert it to degrees on the color circle.
3.3 RGB to lαβ color space
When a color image is represented in any of the color spaces, correlations can exist between different color channels. In RGB color space, most pixels have larger values for the red and green channel if the blue channel is large. This shows that if we want to change the appearance a pixel’s color, we must modify all color channels in tandem [34]. This complicates the contrast enhancement process. In order to avoid complications in contrast enhancement process, an orthogonal color space without correlation among the axes is required [4]. Such kind of color space was proposed by, Ruderman et al. [35] called lαβ color space. The lαβ color space was proposed to minimize the correlation between the achromatic and chromatic channels. A color is defined in the lαβ space by an achromatic channel (brightness l), the red- green chrominance channel (α) and the yellow-blue chrominance channel (β). The procedure for converting the RGB image into Ruder man’s lαβ color space is as follows.
-
Step 1:
The RGB image is converted into LMS cone space. Since lαβ is the transform of LMS cone space. We convert the image into LMS cone space in two steps. The first step is the conversion from RGB to XYZ tristimulus values.
Then, the LMS cone space is constructed from XYZ space as follows
-
Step 2:
The data in this color space shows a great deal of skew, which we can largely eliminate by converting the data to logarithmic space.
-
Step 3:
The logarithmic LMS cone space is de-correlated using principal component analysis (PCA) to treat the three color channels separately.
Thus the l axis represents an achromatic channel, while the α and β channels are chromatic red–green and yellow–blue opponent channels. In order to enhance the contrast of the image, algorithms can be applied on l axis.
-
Step 4:
After processing the l axis, transfer the result back into RGB to display the result. That is inverse operations can be applied to lαβ color space to convert into RGB space. First, the lαβ color space is converted into LMS using matrix multiplication
-
Step 5:
Then, after raising the pixel values to the power ten to go back to linear space, we can convert the data from LMS to RGB using
HSL and HSV are simple transformations of RGB which preserve symmetries in the RGB cube unrelated to human perception, such that its R, G, and B corners are equidistant from the neutral axis, and equally spaced around it. Unlike the RGB, HSV and HSL color models, lαβ color is designed to approximate human vision. It aspires to perceptual uniformity, and its L component closely matches human perception of lightness. Thus, it can be used in contrast enhancement by adjusting the lightness of the L component. It is illustrated in the images of a fire breather as shown in Fig. 1(a) to Fig. 1 (d). L in an lαβ color space defines quantity intended to match perceptual lightness response, and it appears similar in lightness to the original color image. L component of HSL and V component of HSV, by contrast, diverge substantially from perceptual lightness.
4 Related works
Contrast enhancement techniques are used as a pre-processing step in applications where the quality of the image is considered important. The core objective of contrast enhancement is to improve the perception of objects in an image and highly desired in many areas such as medical image processing, image/video processing [17, 22] and surveillance applications [32]. Contrast enhancement becomes more significant for image processing applications, as the utilization of digital images over the internet has expanded. The gamma correction approach is broadly used as a contrast enhancement algorithm in the literature in spite of many other existing algorithms due to its brightness preservation. However, various other contrast enhancement algorithms have also been reported to enhance the specific details of the image such as histogram equalization, global and local histogram equalization [5, 39] adaptive histogram equalization and Contrast Limited Adaptive histogram equalization [29, 49] and other histogram equalization based algorithms [1, 2, 6,7,8, 10, 12, 13, 21, 23, 27, 28, 37, 44]. Histogram based techniques introduce two main artefacts namely, over enhancement in the image where the region has more frequent gray levels and under enhancement where the region has less occurrence of gray levels. Brightness preserving dynamic histogram equalization (BPDHE) can produce an output image with the mean intensity that is almost equal to the mean intensity of the input image [19]. BPDHE maintains the mean histogram of the image and hence overcome the limitations of histogram equalization.
Adaptive histogram equalization (AHE) is a local contrast enhancement technique that can enhance the overall contrast of the image more effectively. AHE method is different from ordinary histogram equalization techniques. In AHE method, many histograms are computed where each histogram corresponds to a different image. In this technique, a small window slides through every pixel of the input image sequentially and only those blocks of pixels are enhanced that fall in this window. Gray level mapping is done only for the centre pixel of that window [20]. AHE makes good use of local information and more details can be observed. However, in AHE, the computational cost goes very high due to its fully overlapped sub-blocks and causes over enhancement in some portions of the image [14]. Another problem is that enhances the noise effect in the image as well [40].
Contrast limited adaptive histogram equalization (CLAHE) is an improved version of AHE. The AHE has practical limitation that homogenous regions of an image can cause over-amplification of noise because a narrow range of pixels is mapped to an entire visualization range. CLAHE was developed to prevent this over-amplification of noise in homogeneous regions. In CLAHE, the input image is partitioned into many non-overlapping regions that have almost equal sizes and HE is applied to each of this region. The obtained histograms for each region are clipped by a clip limit that is based on the desired contrast expansion and the size of the neighbourhood region. For each clipped histogram, a transformation function is obtained that performs gray scale mapping. Finally, CLAHE applies bilinear interpolation to eliminate the region boundaries [43]. However, CLAHE amplifies the noise in the flat region and produces ring artefacts at strong edges [30].
In order to obtain the desired quality of the enhanced images and overcome the drawbacks of histogram based techniques, swarm intelligent technique is combined with classical contrast enhancement techniques. Many researchers [3, 18, 25, 26, 36] used particle swarm optimization to enhance the quality of the image due to its effectiveness and implementation through any programming languages [26]. In order to overcome the drawback of the histogram- based technique, Shanmugavadivu et al. [36] combined the classical contrast enhancement technique with particle swarm optimization for improving the contrast of gray scale images. The main idea of this model is to first segment the input image into two parts using Otsu threshold method. The two sub-images are equalized independently using PSO by applying the brightness and contrast based objective function. This technique provides better results compared with other histogram based techniques, but the edges are not preserved in this work. An edge in an image is a boundary or contour at which a significant change occurs in some physical aspects of an image, such as the surface reflectance, illumination or the distances of the visible surfaces from the viewer. Edges also can be defined as discontinuities in image intensity from one pixel to another. The edges of an image are the important characteristics that offer an indication of the presence of high frequencies. Edges characterize boundaries and are therefore considered of prime importance in image processing such as face hallucination [25]. Moreover, histogram equalization based methods are only suitable for images with poor intensity distribution but not for images with uniform intensity.
Gorai and Ghosh [18] considered the contrast enhancement as an optimization problem and used PSO to solve it. The authors used parameterized transformation function for contrast enhancement by considering the local and global information present in the image. The authors achieved the best result, according to the objective function by optimizing the parameters of the transformation function with the help of PSO. The author in [3] also uses the same parameterized transfer function as in [18] but they have applied Accelerated PSO to optimize the parameters of the function. But both approaches fail to preserve the mean intensity and suitable for grayscale not for color images.
Qinqing et al. [31] also took contrast enhancement as an optimization problem and simulated annealing PSO algorithm is used to solve it. The authors also applied the parameterized transformation function for contrast enhancement of grayscale images based on local and global information on an image. The parameters are selected based on the entropy and edge based objective function. In this paper, the initial parameters are selected using a random process. The velocity and position of each particle are updated using PSO, and then simulated annealing is applied to each individual particle in order to select the individuals for the next generation. This hybrid procedure preserves the edge content and meanwhile, increases the computational complexity.
In literature, many works can be found for enhancing grayscale images, but for color images only minimal numbers of works are available. The above-mentioned techniques work well for the grayscale image but complexity arises while applying for color images. The reason is that in color image the intensity values of the pixels are highly correlated and changes in one part of the image lead to a drastic color change in another part. This will affect the overall contrast of the entire image. Hence, it is necessary to convert the image into any one of the color space and separate it into color and luminance channel. Brightness enhancement can be done only in the luminance part in order to avoid annoying artefacts in the color channels. Shibudas et al. [41] proposed a Gaussian based contrast enhancement technique which uses PSO that has an edge over other state-of- art methods. In this work, first, the input image is converted into lαβ color space (luminance and chrominance). The luminance histogram is modeled by the Gaussian mixture model. Enhanced image is generated by transforming a function that depends on PSO optimized parameters. In Gaussian mixture modeling an image with low contrast is automatically improved in terms of an increase in the dynamic range. But it is not suitable for high contrast images. Kwok et al. [24] proposed a contrast enhancement technique for color images using PSO. The author used RGB color space, although it is convenient for display, but not good for color image processing due to high correlation [16]. The authors tried to preserve the mean intensity and maximize the information content. Selecting the best color space still is one of the difficulties in image processing.
To overcome drawbacks of the existing system we have chosen an optimal color space lαβ containing every color the human eye can perceive and the entire gamut of CMYK and RGB. It is an excellent space for contrast enhancement, as it does not have any of the color limitations of other color spaces. Maximization of entropy and edges can provide meaningful features for image understanding. The main contribution of the proposed work is summarized as follows.
-
Preservation of mean intensity due to gamma correction approach
-
Particle swarm optimization algorithm is applied to select optimal gamma factor with the objective of maximization of entropy and edge content.
-
Edges are well enhanced that is suitable for good image understanding
-
The lαβ color space provides de-correlated achromatic channels for color images. The changes in one color would minimally affect the other. This makes it an effective optimal contrast enhancement for the color images without any cross-channel artefacts.
5 Proposed contrast enhancement algorithm
In this section, we present the proposed contrast enhancement approach which improves the contrast of the luminance channel based on the optimal gamma value determined by the particle swarm optimization. Fig. 2 demonstrates the block diagram of the proposed approach, in which PSO is employed to find an optimal gamma value for contrast enhancement. First, the RGB color image is transformed into lαβ color space and α, β channels are kept constant to avoid strange colors in the resultant image. After luminance enhancement, the brightness channel is added with chromatic components and then it is converted back into RGB color space.
5.1 RGB to lαβ color space conversion
For contrast enhancement of color images, it is necessary to separate the color components from intensity for various reasons such as robust lighting changes, or removing shadows and improving contrast. In our work, the color image is transformed to lαβ color space which separates luminance channel from chrominance. A color is defined in the lαβ space by an achromatic channel (brightness l), the red-green chrominance channel (α) and the yellow-blue chrominance channel (β). The color transformation procedure as follows
-
Step 1:
The RGB image is converted into LMS cone space using Eq. (4) and (5)
-
Step 2:
The logarithmic LMS cone space calculated from LMS cone space using Eq. (6)
-
Step 3:
The logarithmic LMS cone space is de-correlated using principal component analysis (PCA) to treat three the color channels separately using Eq.(7)
The lαβ color space is selected in the proposed approach and the reason is that it provides de-correlated achromatic channels for color images. So the changes in one color would minimally affect the other. This makes it an effective optimal contrast enhancement for the color images without any cross-channel artefacts. Our proposed method enhances the brightness of the image which in turn significantly improves the visibility of the image while preserving the original chrominance of the image.
5.2 Gamma correction approach
Gamma correction is a type of histogram modification technique and enhancement is achieved by using an adaptively changing parameter called gamma (γ) [10, 12]. It is a non-linear operation which adjusts the lightness or darkness of an image. The basic form of the transformed gamma correction (TGC) is given by
where γ refers to intensity curve, which follows a simple power law, I in is the actual intensity value of the input image and I max is the maximum intensity value of the input image. After applying Eq. (10) on the input image, the intensity value of each pixel in the input image is transformed into TGC. According to the gamma value, only image brightness can be adjusted. The gamma value ranges from 0.0 to infinity. Gamma value equal to 1.0 implies the faithful reproduction of the input image. If gamma value is less than 1.0 it lightens the image and gamma value greater than 1.0 darkens the image [17]. Therefore the precise value of gamma is imaging dependent and based on its intensity profile.
In this paper, an optimal framework has been developed to choose an optimal gamma value that enhances the contrast of an image, includes many intensive edges and maximizes the information content.
5.3 Particle swarm optimization
PSO is a population-based optimization technique with the aim of exploiting the population of possible solutions to probe the search space simultaneously. In a mathematical context, PSO can be stated as follows. Let
where, A is the search space and f is the objective function. The whole population is called a swarm and its individuals are called particles. The swarm is defined as a set:
of N particles (possible solutions), defined as:
Indices are randomly assigned to particles, the number of particles (N) is a user defined parameter of the algorithm and d is the dimension. Each particle has a unique fitness function value:
The particles are assumed to move inside the search space iteratively by adjusting their position using a proper location shift called velocity, as indicated:
Velocity is updated iteratively to make the particles efficiently move in any region. If t represents the iteration count, then the current position of the i th particle and its velocity is indicated as x i (t) and v i (t) respectively. The velocity of the particle is updated based on the information gained from previous steps of the algorithm [11]. PSO also has a memory set:
This contains the best positions:
These best positions are always visited by each particle. These positions are defined as
PSO is modeled based on the social behavior of birds that allows particles to mutually communicate their experience. The algorithm calculates the global best position, in a completely connected swarm behaviour by sharing the information of the best position visited by any particle. The global best position is denoted by index g. i.e. (highest fitness function value in P at a given iteration),
The velocity and positions of each particle are updated during each iteration by applying the following equation
where, ω is called as the inertia weight that controls the convergence behavior of PSO. Large inertia weight aids global search (searching new areas), while small inertia weight aids local search. The parameters c 1 and c 2 stabilizes the influence of the individual best and global best positions. The parameters r 1 and r 2 are applied to control the diversity of the population, and they are distributed in the range [0, 1].
5.4 Optimal gamma factor estimation using PSO
In this paper contrast enhancement is formulated as an optimization problem as given: The set of particle values (gamma value) is defined as a set of N particles
Where,
The entropy of the image is calculated for the gamma value and maximized using
Where p(i) is the probability of occurrence of i th intensity of the enhanced image. The particle set γ should also maximize the objective function (Edge content)
where, n_edges(E) stands for the number of detected edge pixels in the enhanced image which is calculated by a canny edge detector and T is the total number of pixels in the enhanced image. When more than one objective function is associated with the problem it is called a multi-objective optimization [33].
A multi-objective optimization technique usually applies a method called Pareto dominance, but this may increase the computational complexity. The effective approach to handling the multi-objective optimization issue is to construct an overall objective function as a linear arrangement of the multiple objective functions [33].
The overall objective function is defined as follows:
Where α 1 and α 2 are factors that show the relative importance of the objective function f 1 and f 2 . In this paper, the objective functions entropy and edge content are taken with equal importance, that is the value α 1 = α 2 = 0.5.
The proposed multi-objective function is formulated as follows:
Algorithm for the proposed method is given below.
In the proposed method, a random process is used to generate an initial population and velocity. The random process is a good start that plays an important role in search direction. After population initialization, the value of each particle set is passed to gamma correction approach to enhance the given input image. After enhancement, the entropy and edge content are calculated for each enhanced image. A comparison is made of all the particles and the best one is stored as the global optimum. If the result of the objective function is greater than that of the previous iteration, then the current iteration gamma value is considered as global optimum. The same process is continued until termination criteria, and the final gamma value is taken as the optimal gamma value that can be used to produce the contrast enhanced image.
A termination criterion is a condition that is used for ending the procedure of PSO. This condition may be a specified number of iterations or timing constraints or error threshold etc. In this paper, a specific number of iterations have been used as the termination criterion. The reason is that the particles get converged in between from 30 iterations to 45 iterations. In this work, the maximum number of iterations is set as 50 which is a termination criteria for the proposed work.
Figure 3 illustrates the concept of the proposed contrast enhancement algorithm using PSO. In this example the values 80, 20, 50, 90, 100, 110, 70, 60 and 50 are pixel values of the input image. The maximum intensity value of the image is 110. In this example, the first pixel having the actual intensity value as 80 is mapped to the enhanced pixel intensity value of 93, after gamma correction using the gamma value (0.5) generated from PSO. The same procedure is repeated for the entire image. The edge content and entropy of the enhanced image are calculated. For a single iteration, all the gamma values generated from PSO (0.5 to N) are used to calculate the new intensity values for the enhanced image. The same process is repeated until the maximum number of iterations is reached. The particle (gamma value) gives the maximum entropy and edge content considered as global best (gbest). Finally, using this gbest value, the image is enhanced that will be the final output image.
6 Experimental results and discussion
This section describes the implementation details of the proposed algorithm and other state- of- the-art techniques used for comparison. The result of proposed contrast enhancement algorithm is compared with other methods in terms of subjective user test and objective analysis.
6.1 Implementation details
The proposed algorithm was implemented by MATLAB2013 and tested on diverse color images taken from the USC SIPI database (http://sipi.usc.edu/pub/database/misc.zip) and (http://visl.techion.ac.il/1999/99-07). To evaluate the performance of the proposed optimized contrast enhancement algorithm it is tested against the histogram equalization (HE) [39], brightness preserving dynamic histogram equalization (BPDHE) [19], adaptive histogram equalization (AHE) [5] and contrast limited histogram equalization (CLAHE) [29]. The comparison has been made in terms of ability in - contrast and edge enhancement, appropriateness of enhanced images for real-time image processing applications and also the capability of the proposed contrast enhancement method to produce natural looking images.
6.2 Parameters selection
The images are subjected to PSO-based gamma correction approach with 50 generations. More particles might speed up the convergence of an algorithm. We have chosen 30 particles to form a particle swarm. The particle size depends on the problem space. If it is small it is better to use a small number but if the problem space is large it is better to use a larger swarm size. The proposed work deals with a single dimensional problem that is considered as a small problem space. Particle size 20 to 40 is the optimal size for small-scale problems [11, 33]. In this work, we chose 30 particles to reduce computational complexity and increase convergence speed. The parameters selected for PSO listed in Table 1.
6.3 Optimal gamma factor and convergence of PSO
Figure 4 shows the PSO-based optimal gamma value search that maximizes the entropy and edge content for pears, swan, Notredam, girl, bowl and couple images. The graph results in Fig. 4 clearly shows the effective implementation of optimal search mechanism since the best gamma value of each generation revolves around the global best entropy and edge content without much deviation. The optimal gamma factor (1.58, 0.2, 0.42, 0.26, 1.07, 0.2, 0.4 and 0.3) for contrast enhancement of pears, swan, Notredam, girl, bowl, couple, street and room images are converged in 31, 21, 44, 43, 33, 44, 37 and 30th generations respectively.
6.4 Subjective assessment-mean opinion score (MOS)
In this work, Mean Opinion Score (MOS) is used to strengthen the hypothesis that the proposed contrast enhancement algorithm can better match the direct observation of a scene by human visual system. In MOS, several individuals judge the quality of an image and then the mean value of their score is used as measure [46]. The subjective experiments were conducted with 50 non-expert viewers. The viewer analyses the tone, contrast, sharpness and texture of the enhanced image. The subjective method mainly includes absolute and relative measures (Table 2) [38].
The observers provided their quality ratings from Grade-5 (excellent) to Grade-1 (very poor) [15]. The MOS scores for various contrast enhancement techniques are listed in Table 3.
The MOS score for BPDHE method is very low while AHE and CLAHE methods have a better score than BPDHE. The proposed method has highest MOS score for all the fused images, indicating that the proposed method is visually superior compared to other state-of-the-art algorithms.
6.5 Objective assessment
Entropy and Edge content are the objective rating parameters used to judge the performance of enhancement in addition to subjective evaluation. The factor entropy was used to compare the information level of the resulted images. The image with the highest entropy value was rated as high contrasted image. The entropy obtained for each image is presented in Table 4. Moreover, the edge content measure was used to assess the detail content level of the resulted images. The values of edge content found for each enhanced image have been shown in Table 4 that shows that the proposed contrast enhancement technique outperforms other methods in many cases.
Simulation results indicate that the proposed optimized contrast enhancement technique produces more natural looking images. The contrast enhanced images have been shown in Figs. 5, 6, 7, 8, 9, 10, 11 and 12. The enhanced result produced by BPDHE, and AHE for pears (see Fig. 5(e) and Fig. 5(b) respectively) the images are not appealing due to over enhancement. The resultant image of CLAHE is not satisfactory because of the uneven texture pattern of the pears (Fig. 5(c)) and the maximization of noise. The enhanced image of the proposed method improves the contrast of pears and preserves the smooth texture pattern of the pears.
The shadow of the swan image should be removed to produce a better quality image. The proposed method removes the shadow, whereas AHE, CLAHE, and BPHE amplify the shadow; as a result, the swan looks unnatural for AHE, CLAHE and BPHE. In the same way, the proposed method has produced a more natural-looking Notredam image. The building is very clear and dark part of the wall is lightened.
The Fig. 7(b) and (c) we can observe that the AHE and CLAHE method darkens the sky part of the image and produces a number of black pixels around the sky. Whereas the proposed method produces pleasing effect around the sky and building. From Fig. 8(a) we can observe that due the absence of light the bookshelf is not clearly visible. After contrast enhancement, the bookshelf is visible in all state-of-the-art methods. The proposed method gives a clear view of the bookshelf when compared with the other methods (Fig. 9).
The input image of the girl does not reflect the mirror part of girl and trees in the car glass (Fig. 10(a)). The contrast enhancement techniques effectively enhance that information in the resultant images. The result of BPDHE is similar to input images (Fig. 10(e)). The reason is that BPDHE preserves the mean intensity of input image while adjusting the brightness of the image. For the girl image, the outcome of AHE is very poor. The reason behind this poor quality is that the white part of the sky gets reflected and as a consequence, the image looks blurred at many pixel locations around the tree. From the perspective of subjective assessment (MOS score), the result of proposed method for girl image seems to be over lightened. But objective analysis shows that the proposed method has high entropy and edge content when compared with other methods.
The bowl image is already highly contrasted (Fig. 11(a)). If an input image highly contrasted one then there is no point in improving the contrast. So the proposed method preserves the color of the bowl and background (Fig. 11(f)). AHE has introduced a number of white pixels on a bowl image that leads to its unnatural look. In the couple image, the texture of the wall and floor is not very smooth in the enhanced images produced by AHE and CLAHE (see Fig. 12). By visually examining the proposed enhanced images, it is clear that the presented PSO-based contrast enhancement technique produced more natural looking images with improved visual perception.
Thus, the experimental results showed that the presented method worked well on the less illuminated and dark images and improved the visual quality of an image. The proposed method does not introduce any artefacts for high contrast images. But the other state-of-the-art methods introduce artefacts in the fused images. Since it provides better results than other state-of-art methods in two criteria, it is suitable for real-time image processing applications.
7 Conclusion
In this paper, we proposed an optimized contrast enhancement technique based on particle swarm optimization for color images. Simulation results showed that the enhancement of the luminance channel prevented the unwanted artefacts in the chrominance part of the image. The proposed method is based on the gamma correction approach optimized with PSO in which the number of edges and entropy were used as fitness values. To evaluate the performance of the proposed method, less illuminated and dark images were selected as the input images. The experimental test results indicated that the proposed system improved the overall image contrast and enhanced the information content present in the image. The proposed contrast enhancement algorithm has the following attractive features:
First, applying the lαβ color space to the input image provides de-correlated achromatic channels. The changes in one color should minimally affect the other. This makes it an effective optimal contrast enhancement of the color images without any cross-channel artifacts.
Second, particle swarm optimization algorithm is used to select the optimal gamma factor that maximizes entropy and edge content of the image.
Finally, the edges are well enhanced which makes it suitable for good image understanding
References
Aghagolzadeh S, Ersoy O (1992) Transform image enhancement. Opt Eng 31(3):614–626
Arici T, Dikbas S, Altunbasak Y (2009) A histogram modification framework and its application for image contrast enhancement. IEEE Trans Image Process 18(9):1921–1935
Behera SK, Mishra S, Rana D (2015) Image enhancement using accelerated particle swarm optimization. Int J Eng Res Technol 4(3):1049–1054
Bianco G, Muzzupappa M, Bruno F, Garcia R, Neumann L (2015) A New color correction method for underwater imaging. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, Volume XL-5/W5, Underwater 3D Recording and Modeling, Piano di Sorrento, Italy
Caselles V, Lisani J, Morel J, Sapiro G (1998) Shape preserving local histogram modification. IEEE Trans Image Process 8(2):220–230
Chen S, Ramli A (2003) Contrast enhancement using recursive mean-separate histogram equalization for scalable brightness preservation. IEEE Trans Consum Electron 49(4):1301–1309
Chen SD, Ramli AR (2003) Minimum mean brightness error bi-histogram equalization in contrast enhancement. IEEE Trans Consum Electron 49(4):1310–1319
Chen SD, Ramli AR (2004) Preserving brightness in histogram equalization based contrast enhancement techniques. Digital Signal Processing 14(5):413–428
Chen Q, Xu X, Sun Q, Xia D (2010) A solution to the deficiencies of image enhancement. Signal Process 90:44–56
Chiu Y-S, Cheng F-C (2011) Efficient contrast enhancement Using adaptive gamma correction and cumulative intensity distribution. In: Proc. IEEE Conf. Syst. Man Cybern, pp 2946–2950
Coello CAC, Pulido GT, Lechuga MS (2004) Handling multiple objectives with particle swarm optimization. IEEE Trans Evol Comput 8(3):256–279
Coltuc D, Bolon P, Chassery J (2006) Exact histogram specification. IEEE Trans Image Process 15(5):1143–1156
Coltuc D, Bolon P, Chassery J (2006) Exact histogram specification. IEEE Trans Image Process 15(5):1143–1151
Dhariwal S (2011) Comparative Analysis of various image enhancement technique. IJECT 2(3):91–95
Fonseca L, Namikawa L, Castejon E, Carvalho L, Pinho C, Pagamisse A. Image fusion for remote sensing applications. Chapter 9, pp 153–178
Gauch J, Hsia C-W (1992) A comparison of three color image segmentation algorithm in four color spaces. In: Visual Communications and Image Processing'92, SPIE 1818, pp 1168–1181
Gonzalez RC, Woods RE (2007) Digital Image Processing, 3rd edn. Pearson Education
Gorai A, Ghosh A (2009) Gray-level image enhancement by particle swarm optimization. In: Proceedings of Nature & Biologically inspired computing, NaBIC, pp 72–77
Gupta B, Kaur Y (2014) Review of different histogram equalization based contrast enhancement techniques. Int J adv Res Comput Commun Eng 3(7):7585–7589
Gupta S, Kaur Y (2014) Review of different local and global contrast enhancement techniques for a digital image. Int J Comp Appl 100(18). doi:10.5120/17625-8384
Huang S-C, Cheng F-C, Chiu Y-S (2013) Efficient contrast enhancement using adaptive gamma correction with weighting distribution. IEEE Trans Image Process 22(3):1032–1041
Jidesh P, Bini AA (2014) A curvature-driven image Inpainting approach for high-density impulse noise removal. Arab J Sci Eng 39:3691–3713
Kim YT (1997) Contrast enhancement using brightness preserving bi-histogram equation. IEEE Trans Consum Electron 43(1):1–8
Kwok NM, Shi HY, Ha QP, Fang G, Chen SY, Jia X (2013) Simultaneous image color correction and enhancement using particle swarm optimization. Eng Appl Artif Intell 26:2356–2371
Liu L, Li W, Tang S, Gong W (2012) A novel separating strategy for face hallucination. 19th IEEE International Conference on Image Processing, Orlando, pp 1849–1852. doi: 10.1109/ICIP.2012.6467243
Nickfarjam AM, Soltaninejad S, Tajeripour F (2014) A novel supervised bi-level thresholding technique based on particle swarm optimization. Arab J Sci Eng 39:753–766. doi:10.1007/s13369-013-0638-6
Ooi CH, Isa NAM (2010) Quadrants Dynamic Histogram Equalization for contrast enhancement. IEEE Trans Consum Electron 56(4):2552–2559
Ooi CH, Mat Isa NA (2010) Adaptive contrast enhancement methods with brightness preserving. IEEE Trans Consum Electron 56(4):2543–2551
Pizer S, Amburn E, Austin J, Cromartie R, Geselowitz A, Greer T, Romeny B, Zimmerman J, Zuiderveld K (1987) Adaptive histogram equalization and its variations. Comput Vis Graph Image Process 39(3):355–368
Puiono, Pulung NA, Purnama IKE, Hariadi M (2013) Color enhancement of underwater voral reef images using contrast limited adaptive histogram equalization (CLAHE) with Rayleigh distribution. The Proceedings of the 7th ICTS, Bali
Qinqing G, Guang, Z, Dexin, C, Ketai H (2011) Image enhancement technique based on improved PSO algorithm. In: Proceedings of Industrial Electronics and Applications (ICIEA), pp 234–238. IEEE. doi:10.1109/ICIEA.2011.5975586
Radman A, Jumari K, Zainal N (2004) Iris segmentation in visible wavelength images using circular Gabor filters and optimization. Arab J Sci Eng 39:3039–3049
Rao SS (2013) Engineering Optimization Theory and practice, 3rd edn. Wiley
Reinhard E, Ashikhmin M, Gooch B, Shirley P (2001) Color transfer between images. IEEE Comput Graph Appl 21:34–41
Ruderman DL (1998) Statistics of cone responses to natural images: implications for visual coding. J Opt Soc Am 15(8):2036–2045
Shanmugavadivu P, Balasubramanian K (2014) Particle swarm optimized multi-objective histogram equalization for image enhancement. Opt Laser Technol 57:243–251
Sheet D, Garud H, Suveer A, Mahadevappa M, Chatterjee J (2010) Brightness Preserving Dynamic Fuzzy Histogram Equalization. IEEE Trans Consum Electron 56(4):2475–2480
Shi W, Zhu C, Tian Y, Nichol J (2005) Wavelet-based image fusion and quality assessment. Int J Appl Earth Obs Geoinf 6:241–251
Stark J (2000) Adaptive contrast enhancement using generalization of histogram equalization. IEEE Trans Image Process 9(5):889–906
Stark JA (2000) Adaptive image contrast enhancement using generalizations of histogram equalization. IEEE Trans Image Process 9(5):889–896
Subhashdas SK, Choi B-S, Yoo J-H, Ha Y-H. Color Image Enhancement Based on Particle Swarm Optimization with Gaussian Mixture. Proc. of SPIE-IS&T, vol 9395 939508–1
Travis D (1991) Effective Color Displays. Theory and Practice. Academic Press, ISBN 0–12–697690-2
Vishwakarma AK, Mishra A (2012) Color image enhancement techniques: a critical review. Indian J Comput Sci Eng 3(1):39–45
Wang Y, Chen Q, Zhang B (1999) Image enhancement based on equal area dualistic sub-image histogram equalization method. IEEE Trans Consum Electron 45(1):68–75
Wang Y-j, Qiu H-k, Wang L-l, Shi X-b (2013) Research on the algorithm of night vision image fusion and coloration. The Journal of China Universities of Posts and Telecommunications 20(1):20–24
Wei ZG, Yuan JH, Cai YL (1999) A picture quality evaluation method based onhuman perception. Acta Electron Sin 27(4):79–82
Welsh T, Ashikhmin M, Mueller K. Transferring Color to Greyscale Images. http://www.cs.sunysb.edu/~tfwelsh/colorize
Wyszecki G, Stiles WS (1982) Color science— concepts and methods, quantitative data and formulae. Wiley, NY
Zuiderveld K (1994) Contrast limited adaptive histogram equalization. Academic Press, Cambridge
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Kanmani, M., Narasimhan, V. Swarm intelligent based contrast enhancement algorithm with improved visual perception for color images. Multimed Tools Appl 77, 12701–12724 (2018). https://doi.org/10.1007/s11042-017-4911-7
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-017-4911-7