1 Introduction

The goal of Image enhancement is to process an image using some transformation function such that the resultant image is more suitable than the original one for some specific applications (Gonzalez and Woods 2002). Enhancement is taken as a pre-processing step in image processing field because many images, such as remote sensing images, medical images and also various real-life images suffer from poor contrast or the image is darker. Image enhancement can be applied for various image processing applications like contrast enhancement, noise reduction, edge enhancement and edge restoration.

In this paper, contrast enhancement of gray level dark images taken into consideration. Not only gray level, color images can be enhanced. Color images can be enhanced by separating the image into the chromaticity and intensity components (Gorai and Ghosh 2009, 2011). Histogram transformation is considered as one of the fundamental processes for contrast enhancement of gray level images (Garg et al. 2011). Histogram equalization (HE) is a mechanism that has no control over the rate of enhancement. The enhanced image always follows the uniform distribution. But the controlled enhancement is done by putting constraints on the probability density function with the bin underflow and bin overflow (Yang et al. 2003). Although based on histogram information different techniques are proposed in literature but enhancement of dark and low contrast images in a controlled fashion is still a big problem. For this reason there is steady rise of soft computing oriented approaches. Recently natures inspired population based metaheuristics have been devised to solve optimization problems (Yang 2010). So, they can also apply in image processing field where some problems like image enhancement, segmentation etc. has been considered as an optimization problems (Pal et al. 1994; Hashemi et al. 2010; Yun-Fei et al. 2012; Ma et al. 2011). Differential Evolution (DE) and Genetic Algorithm (GA) are stochastic and robust metaheuristics in the field of evolutionary computation and also used in image processing field to solve optimization problems (Yun-Fei et al. 2012; Ma et al. 2011; Coelho et al. 2009). Mutation factor and crossover rate have been modified by chaotic sequence of traditional DE algorithm and experimental result shows that modified DE is far better than traditional DE in image enhancement field with fast convergence rate and maintain also a good diversity property (Coelho et al. 2009). Swarm optimization algorithms like PSO based on social behavior of organisms such as bird flocking and fish schooling are have been widely applied in image enhancement field where some parameters are optimized (Gorai and Ghosh 2009, 2011; Braik et al. 2007; Shanmugavadivu et al. 2014). PSO outperforms the GA in image enhancement field (Gorai and Ghosh 2009, 2011). PSO not only used for grey scale image enhancement but also used as a color image enhancement (Gorai and Ghosh 2011). Newly developed another metaheuristic named ant colony optimization (ACO) is also applied in image enhancement technique and it gives better results than PSO and GA (Gupta and Gupta 2012). In this paper image enhancement has been taken as a non-linear optimization problem. In this context, this paper introduces two version of FA to solve this optimization problem. One is FA via lévy flight and another is FA via chaotic sequence. FA is a powerful swarm based optimization technique; it simulates the flashing behavior of fireflies (Yang 2010a, b; Fister et al. 2013). FA via lévy flight outperforms the traditional PSO and genetic algorithm (GA) in some optimization field and lévy flight has been used as random walk to control the diversification (Yang 2010). In the proposed second version of the FA, chaotic sequence has been used to replace lévy flight. Because, Food Collection behavior of bees and birds, cooperative behaviour of ants are also shows chaotic behaviour (Sheikholeslami and Kaveh 2013). Actually, chaotic sequence has been used in metaheuristic algorithms for the two purposes. One is to generate random numbers and another reason is to enhance the searching quality using chaotic search (Sheikholeslami and Kaveh 2013). In evolutionary computation and swarm based computation chaotic sequence is used to enhance the capability of those algorithms (Coelho and Mariani 2008; Leandro and Viviana 2009; Caponetto et al. 2003). With chaotic sequence population diversity is also taken into account in this paper. Population diversity plays an important role in swarm based optimization algorithms. So that the algorithm does not converges prematurely (Fister et al. 2013). In every generation new population of individuals is developed depending upon the population diversity information. There is no analytical proof that which random number generator is best for the specific metaheuristic algorithm. It is problem and domain specific (Sheikholeslami and Kaveh 2013). Because of this in the second version of FA use chaotic sequence as random number generator. In this paper, low contrast images are enhanced using an algorithm that based on the principal of contrast stretching technique described in Sect. 2. FA with lévy flight and FA with chaotic sequence described in Sect. 3. Experimental Results proved that modified FA with chaotic sequence and population diversity information is far better than FA with lévy flight in image enhancement field.

2 Image enhancement as optimization problem

2.1 Image enhancement algorithm

Image enhancement tools better the contrast, features and thereby smoothen the progress of further image processing applications such as segmentation. As a result it improves the ability of human or machine recognition system to understand the useful information in the images (Coelho et al. 2009). The contrast stretching technique (Gonzalez and Woods 2002; Braik et al. 2007) used here to modify the contrast is given below:

$$ g\left( {i,j} \right) = \left[ {{{\left\{ {f(i,j) - c \times m(i,j)} \right\}} \mathord{\left/ {\vphantom {{\left\{ {f(i,j) - c \times m(i,j)} \right\}} {\left( {\max - m(i,j)} \right)}}} \right. \kern-\nulldelimiterspace} {\left( {\max - m(i,j)} \right)}}} \right] \times {{\left( {M \times k} \right)} \mathord{\left/ {\vphantom {{\left( {M \times k} \right)} {\left( {\sigma (i,j) + b} \right)}}} \right. \kern-\nulldelimiterspace} {\left( {\sigma (i,j) + b} \right)}} $$
(1)

where, \( g\left( {i,j} \right) \) and \( f(i,j) \) is the gray level intensity of pixels in the output and input images and \( max \) is the maximum gray scale value. \( m\left( {i,j} \right) \) and \( \sigma (i,j) \) are the mean and standard deviations of the image, computed using \( [3 \times 3] \) window. M is the global mean value of the image. In Eq. (1) c, k, b are the associated three parameters to obtain a large variation in resultant image. Range of three parameters are same as (Gorai and Ghosh 2009). c \( \in \) [0, 1], b \( \in \) [0, 0.5], k \( \in \) [0.5, 1.5]. Initially k and c have been taken as 1 and b as 0. Parameter c always has been takes as a fractional value so that a fraction of the mean always subtracted from the pixel’s grey level intensity value.

2.2 Objective function

The necessity of Objective function of optimization algorithms that used for image enhancement is to select a criterion that is associated to a fitness function which will say all about the image feature. To develop the objective function contrast, entropy and energy of the image has been taken into account. Depending upon the gray level co-occurrence matrix contrast, energy has been calculated. Local variations of gray levels are measured by contrast parameter. Large neighboring gray level differences are associated with high contrast. Energy is the measure of image homogeneity; it reflects pixel-pair repetitions (Haralick 1979). The feature entropy is a measure of non-uniformity in the image or region of interest. Depending upon these three parameters the proposed objective function has been described as:

$$ F(I_{e} ) = log{{\left\{ {\left[ {\exp (I_{con} ) \times \exp (H_{e} )} \right]} \right.} \mathord{\left/ {\vphantom {{\left\{ {\left[ {\exp (I_{con} ) \times \exp (H_{e} )} \right]} \right.} {\left. {I_{en} } \right\}}}} \right. \kern-0pt} {\left. {I_{en} } \right\}}} $$
(2)

where, \( F(I_{e} ) \) is the fitness function. \( I_{e} \) is the enhanced image, \( H_{e} \) is the entropy of the enhanced image, \( I_{con}\;{\rm and}\;I_{en} \) are the contrast and energy of the co-occurrence matrix. exp is the exponential operator.

3 Different firefly algorithms for image enhancement

3.1 Lévy flight

Lévy Flight has been used to generate random walk which plays a great role in metaheuristic algorithms. A random walk is a mathematical method of representing a series of consecutive random steps. It has wide applications in the fields of computer science, physics, statistics, economics and engineering (Yang 2010a, b). It can be expressed by the formula

$$ S_{N} = \mathop \sum \limits_{i = 1}^{N} X_{i} $$

where, \( X_{i} \) is a random step size drawn from a random distribution and \( S_{N} \) is the sum of each of these consecutive random steps. Lévy Flight is a random walk whose step length is determined from the lévy distribution. It is capable of exploring large amount of search space. Lévy Flight is also found in nature as certain species of birds and insects exhibit this type of motion while gathering food (Yang 2010c). Even physical phenomena such as diffusion of gas molecules have been seen to follow Lévy Flight behavior under the right conditions. Lévy Flight can be produced using different algorithms which include Rejection algorithm, McCulloch’s algorithm, Mantegna’s algorithm etc. In this study Mantegna’s algorithm has been used. It produces random numbers according to a symmetric Lévy stable distribution as described below—

$$ \sigma = \left[ {{{\varGamma (1 + \alpha )\sin (\pi \alpha /2)} \mathord{\left/ {\vphantom {{\varGamma (1 + \alpha )\sin (\pi \alpha /2)} {\varGamma \left( {(1 + \alpha )/2\alpha 2^{{{{(\alpha - 1)} \mathord{\left/ {\vphantom {{(\alpha - 1)} 2}} \right. \kern-0pt} 2}}} } \right)}}} \right. \kern-0pt} {\varGamma \left( {(1 + \alpha )/2\alpha 2^{{{{(\alpha - 1)} \mathord{\left/ {\vphantom {{(\alpha - 1)} 2}} \right. \kern-0pt} 2}}} } \right)}}} \right]^{{{1 \mathord{\left/ {\vphantom {1 \alpha }} \right. \kern-0pt} \alpha }}} $$
(3)

where, \( \varGamma \) is the gamma function (Yang and Deb 2010; Yang 2010c), 0 < α ≤ 2 (Yang 2010c), in this study it is taken as 1.5 which is same as (Yang and Deb 2010). \( \sigma \) is the standard deviation.

As per Mantegna’s algorithm the step length \( v \) can be calculated as,

$$ \nu = {\raise0.7ex\hbox{$x$} \!\mathord{\left/ {\vphantom {x {\left| y \right|^{{{1 \mathord{\left/ {\vphantom {1 \alpha }} \right. \kern-0pt} \alpha }}} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\left| y \right|^{{{1 \mathord{\left/ {\vphantom {1 \alpha }} \right. \kern-0pt} \alpha }}} }$}} $$
(4)

here, x and y are taken from normal distribution and \( \sigma_{x} = \sigma ,\sigma_{y} = 1 \) (Yang 2010c). Where \( \sigma \) is the standard deviation.

The resulting distribution has the same behavior of Lévy distribution for large values of the random variables (Yang and Deb 2010; Leccardi 2005).

Lévy Flight is used for the diversification as well as intensification in stochastic optimization algorithm (Yang 2010b, c; Yang and Deb 2010). For the case of diversification the step length has been taken larger than in the case of intensification. The repetition of the same position in its space by lévy Flight is less than the Brownian motion (Yang 2010b, c).

3.2 Chaotic sequence

It has been proved that the cooperative behavior of ants and food collection behavior of bees and birds also shows chaotic behavior (Sheikholeslami and Kaveh 2013). The complex behavior of non-linear deterministic system is defined by chaos (Boccaletti et al. 2000; Leandro and Viviana 2009). Chaos has non-repetition property and for this it searches best solution faster than any searching strategy that depends upon the probability distribution (Leandro and Viviana 2009). It also has ergodicity property.

Recently, chaos combined with metaheuristic algorihms and produce good result (Coelho and Mariani 2008; Leandro and Viviana 2009; Caponetto et al. 2003). Particle swarm Optimization (PSO) used it for enhance the diversification property (Leandro and Viviana 2009). Evolutionary optimization algorithms can enhance its capability of searching global best solution using chaotic sequences (Caponetto et al. 2003).

There are several chaotic generators like logistic map, tent map, gauss map, sinusoidal iterator, lozi map, chua’s oscillator etc. (Caponetto et al. 2003). Among those simple logistic equation that based on logistic map is used in this paper to generate mutation factor. The equation of logistic map is given below:

$$ L_{m + 1} = aL_{m} (1 - L_{m} ) $$
(5)

a is a control parameter and 0 < a ≤ 4, \( L_{m} \) is the chaotic value at mth iteration. The behavior of the system is mostly depends on the variation of a. Value of a is 4 and \( L_{0} \) does not belong to {0, 0.25, 0.5, 0.75, 1} otherwise the logistic equation does not show chaotic behavior (Coelho et al. 2009). The range of \( L_{m} \) is transformed to [0, 1] in this study.

3.3 Theory of firefly algorithm

One of the most efficient and rigid metaheuristic algorithm for solving computational problems is the Firefly Algorithm (Yang 2010a, b; Fister et al. 2013).

Firefly algorithm using Lévy flight was originally presented by Xin She Yang under inspiration of flashing behavior of fireflies (Yang 2010).

3.4 Behaviour of fireflies

The model of flashes is often extraordinary for a specific species. The bursting of bright light is created by a method of bioluminescence, and the actual functions of such gestural systems are still in discussion. However, two fundamental functions of such flashes are to attract breeding partners (communication), and to evoke potential prey. The regular pattern of flash, the rate of flashing and the amount of duration form sector of the signal system that attracts both sexes together. Females reacts to a male’s creative sequence of flashing in the identical species, while in some categories such as photuris, female fireflies can replicate the mating flashing pattern of other division so as to tempt and eat the male fireflies who may mistake the flashes as a promising appropriate partner (Yang 2010).

So, three flawless guideline of glowing behaviour of fireflies are:

  1. 1.

    All fireflies are unisex so that one firefly will be allured to other fireflies regardless of their sex;

  2. 2.

    Attractiveness proportional to their brightness, thus for any two glowing fireflies, the less bright one will be attracted towards the dazzling one. The attractiveness is proportional to the brightness and they both decrease as their interval amplifies. If there is no lustre one than a particular firefly, it will move haphazardly;

  3. 3.

    The brightness of a firefly is determined by the landscape of the fitness function. In case of maximization problem, the brightness of firefly proportionally related to the value of the fitness function (Yang 2010; Fister et al. 2013).

In the firefly algorithm, there are two main issues: the difference of luminous intensity and production of the attractiveness (Yang 2010; Fister et al. 2013). For a given medium with a fixed light absorption coefficient\( \gamma \), the light intensity \( I \) varies with the distance\( r \). For this

$$ I = I_{0} \times \exp ( - \gamma r) $$

where, \( I \) is the original light intensity.

As a firefly’s attractiveness is proportionally related to the light intensity.

We can now define the attractiveness \( \beta \) of a firefly by

$$ \beta (r) = \beta_{0} \times \exp ( - \gamma r^{2} ) $$

\( \beta_{0} \) is the attractiveness at r = 0.

3.5 Firefly algorithm with chaotic lévy flight

Begin

Take an objective function \( fit \)

Create initial population of enhanced images

Light intensity or fitness value \( I_{i} \) of firefly or enhanced image \( X_{i} \) is determined by \( fit(X_{i} ) \)

Define light absorption coefficient

While (\( t \) <= maximum generation)

 For \( i \) = 1 to \( n \) all n enhanced images

  For \( j \) = 1 to \( n \) all n enhanced images

   If (\( I_{j} \) >\( I_{i} \))

Move firefly \( X_{i} \) towards \( X_{j} \) via lévy flight using chaotic step length

   End if

Attractiveness varies with distance

Evaluate new solution and update light intensity or fitness value

  End for \( j \)

End for \( i \)

Rank the enhanced images and select current best

End while

Post process results

End

In this algorithm, firefly \( X_{i} \) move towards \( X_{j} \) via lévy flight using the equation given below:

$$ X_{i} = X_{i} + \beta_{0} e^{{ - \gamma r_{ij}^{2} }} \left( {X_{j} - X_{i} } \right) + L_{m} sign\left[ {rand - \frac{1}{2}} \right] \otimes Levy $$
(6)

\( \alpha ,\gamma \) are the randomization parameter, \( sign \) function gives the direction, \( rand \) is a random number within [0, 1], \( \otimes \) is the entry-wise multiplication. Choosing of step length of lévy flight is very crucial. In the above algorithm chaotic sequence within the range [0, 0.5] has been used as step length because it has ergodicity property. Lin and Lee (2012) proposed to use chaotic sequence as the step length of lévy flight (Walton et al. 2013).

Distance \( r_{ij} \) measured between \( X_{i} \) and \( X_{j} \) using the equation given below:

$$ r_{ij} = \sqrt {\sum\nolimits_{k = 1}^{d} {\left( {X_{i, k} - X_{j, k} } \right)}^{2} } $$
(7)

where, d is the dimension of the problem.

In this paper\( d = 3, \beta_{0} = 0.5, \gamma = 0.5 \) for the traditional firefly algorithm.

When \( \beta_{0} = 0 \) then firefly do a random walk. There is no share of information or communication between solutions or fireflies. In the traditional firefly algorithm implementation, lévy flight has been used to do this random walk and the reasons are described in Sect. 3.1.

There are several disadvantages of this algorithm. These are listed below:

  1. (a)

    Several parameters have to maintain in this algorithm \( ( \beta_{0} , \alpha , \gamma ) \). Appropriate value choosing of these parameters is a crucial matter. In the first algorithm \( \beta_{0} , \gamma \) are constant.

  2. (b)

    This standard FA does not keep information about the population diversity and for this reason the algorithm can be prematurely converge.

  3. (c)

    Lévy flight is used as random walk in this FA. But lévy flight generates the random numbers from lévy distribution. Thus there is a chance to repeat same value and hence, does not ergodic. But chaotic sequence has non-repetition property (Leandro and Viviana 2009).

3.6 Proposed firefly algorithm with chaotic sequence

In the proposed approach, \( \beta_{0} \) has been taken from chaotic sequence within the range [0, 0.5], \( \alpha , \gamma \) are assigned with the value of inverse of golden ratio \( {{\left( {1 + \sqrt 5 } \right)} \mathord{\left/ {\vphantom {{\left( {1 + \sqrt 5 } \right)} 2}} \right. \kern-0pt} 2} \) which has been taken as \( {\emptyset } \). Golden ratio has been taken because it performs better than random fraction (Jamil and Zepernick 2013). Now, we have to measure population diversity so that the algorithm does not converge prematurely. Depend upon the population diversity we have to select individuals to make the population.

3.7 Creation of population

In the traditional FA each parent population has been replaced by the offspring population in each generation. So, each parent is alive for one generation (Fister et al. 2013). Best solution is not kept in memory (Fister et al. 2013). For those reasons this new population making method has been taken into account.

Selection of individuals to make the population is plays an important role in any metaheuristic algorithm. If the population diversity is reach to saturation very quickly then the algorithm converges prematurely (Fister et al. 2013). So, if the population diversity is measured and depends upon this factor the individuals are selected to make the set of population then algorithm does not converge too early or do not trapped in local minima and also gives a balance between exploration and exploitation. This technique also depends upon the fitness value of each solution. The whole idea is depend on the fitness diversity metric (FDM). This FDM is used to measure the population diversity (Fister et al. 2013). On the other hand, this metric helps to balancing between the diversification and intensification in metaheuristic algorithms (Fister et al. 2013). It is defined as follows:

$$ \varphi = 1 - mod\left[ {{{\left( {fit_{avg} - fit_{min} } \right)} \mathord{\left/ {\vphantom {{\left( {fit_{avg} - fit_{min} } \right)} {\left( {fit_{max} - fit_{min} } \right)}}} \right. \kern-0pt} {\left( {fit_{max} - fit_{min} } \right)}}} \right] $$
(8)

where, \( fit_{avg} \), \( fit_{min} , \) \( fit_{max} \) are the average, minimum and maximum fitness value within the population.

So, from the equation we can deduce that \( \varphi \in [0,1] \).

When the value of \( \varphi \) is close to zero the population diversity is low and when close to one population diversity is high. So population diversity has been measured. The steps to select individuals to make population are:

Step 1: At first 2 N numbers of individuals are created. Where, N is the number of individuals that have been taken for evaluation in algorithm.

Step 2: First N individuals are taken as parent set (\( P_{parent} \)) and next N individuals are taken as offspring set (\( P_{offspring} \)).

Step 3: Sort the 2 N numbers of individuals according to their fitness value. Make two set, \( P_{high} \) and \( P_{low} \). Where, \( P_{high} \) contains N individuals with higher fitness value and \( P_{low} \) contains N individuals with lower fitness value.

Step 4: Select N numbers of individuals from \( P_{high} \) and \( P_{low} \) by the following rule:

A random number \( r \) is generated in the interval [0, 1].

$$ \begin{aligned} if\;r < \left( {0.5 - \varphi } \right)\quad then \;take\; individual\,from\,P_{low} \hfill \\ otherwise\quad take \;individual\,from\,P_{high} \hfill \\ \end{aligned} $$

By using the above rule make the set \( P_{eval} \) with N individual to evaluate in search process.

Step 5: In the next generation the evaluated N individuals from the \( P_{eval} \) are replaced the set \( P_{offspring} \).

In the every iteration this new population model has been created to maintain population diversity.

3.8 The algorithm is given below

Begin

Take an objective function \( fit \)

Create new population model as per Section 3.2.4.1

Light intensity or fitness value \( I_{i} \) of firefly or enhanced image \( X_{i} \) is determined by \( fit(X_{i} ) \)

Define light absorption coefficient

While (\( t \) <= maximum generation)

 For \( i \) = 1 to \( n \) all n enhanced images

  For \( j \) = 1 to \( n \) all n enhanced images

   If (\( I_{j} \) > \( I_{i} \))

Move firefly \( X_{i} \) towards \( X_{j} \) via chaotic sequence

End if

Attractiveness varies with distance

Evaluate new solution and update light intensity or fitness value

   End for \( j \)

End for \( i \)

Rank the enhanced images and select the current best

End while

Post process results

End

In this algorithm, firefly \( X_{i} \) move towards \( X_{j} \) via lévy flight using the equation given below:

$$ X_{i} = X_{i} + L_{m} e^{{ - {\emptyset }r_{ij}^{2} }} \left( {X_{j} - X_{i} } \right) + {\emptyset } sign\left[ {rand - \frac{1}{2}} \right] \otimes L_{m} $$
(9)

In this algorithm, chaotic sequence has been used to generate random number as random walk which replaces the lévy flight. Lévy flight is used in metaheuristic because of a great reason that certain species of birds and insects exhibit this type of motion while gathering food and it has better variance than Gaussian distribution that helps to explore large area (Yang 2010c). Recent studies show that the cooperative behavior of ants and food collection behavior of bees and birds also shows chaotic behavior (Sheikholeslami and Kaveh 2013). Chaotic sequence has non repetition property because it does not generate from probabilistic distribution unlike lévy flight. There is no analytical result that which random number generator is best that enhance the capability of metaheuristic algorithms (Sheikholeslami and Kaveh 2013). As it is experimental, in the second version of modified FA algorithm chaotic sequence has been used as a random number generator (Tables 1, 2).

Table 1 Comparison of contrast, energy, entropy and fitness value
Table 2 Enhancement factor of the images

4 Experimental results

4.1 Enhancement factor (EF)

Enhancement factor (EF) is calculated using variance and mean of the image (Jha and Chouhan 2014) as given below—

$$ EF = \frac{{\left( {\sigma_{e}^{2} /\mu_{e} } \right)}}{{\left( {\sigma_{o}^{2} /\mu_{0} } \right)}} $$
(10)

where, \( \sigma_{e}^{2} \) and \( \sigma_{o}^{2} \) are the variances of the enhanced and original images, and \( \mu_{e} \) and \( \mu_{0} \) are the means of the enhanced and original images.

4.2 Comparison of the number of maximum generation in graphical form

Three algorithms have been applied over 100 images with initial population number being varied from 10 to 50 and maximum generations up to 100. In this study, numbers of initial populations less than 5 or greater than 40 gives not so good result and it has been put optimally to 25. From the experiment, the maximum generations have been optimally put 50 for FA via chaotic sequence, 70 for FA via chaotic lévy and 95 for PSO. The graphical interpretation has been given below (Figs. 4, 5, 6).

Fig. 1
figure 1

a Original camera man image, b output of FA with chaotic sequence, c output of FA with chaotic lévy flight, d output of PSO, e output of GA, f output of HE

Fig. 2
figure 2

a Original lady image, b output of FA with chaotic sequence, c output of FA with chaotic lévy flight, d output of PSO, e output of GA, f output of HE

Fig. 3
figure 3

a Original lena image, b output of FA with chaotic sequence, c output of FA with chaotic lévy flight, d output of PSO, e output of GA, f output of HE

Fig. 4
figure 4

Maximum generation (X axis) versus fitness value (Y axis) for FA via chaotic sequence for camera man image

Fig. 5
figure 5

Maximum generation (X axis) versus fitness value (Y axis) for FA via chaotic lévy for camera man image

Fig. 6
figure 6

Maximum generation (X axis) versus fitness value (Y axis) for PSO for camera man image

4.3 Parameters setting

In this study ranges of three parameters are same as (Gorai and Ghosh 2009)(Tables 3, 4).

Table 3 Range of parameters of parameterized contrast stretching function
Table 4 Parameters of chaotic lévy FA and chaotic FA

\( \beta_{0} \),\( \gamma \) and \( \alpha \) controls the diversification power of FA. \( \beta_{0} \) and \( \gamma \) influences the movement of a firefly with respect to another firefly. \( \alpha \) is the step size of lévy flight which plays a crucial role to amplify the power of convergence rate. It also helps FA so that it does not get trapped in local minima. The experiment has been done over 100 images and best average value of \( \beta_{0} \) and \( \gamma \) is found to be near to 0.5 for each image with respect to objective function. Basically the values of both parameters take a scattered value but for the simplicity, average of scatter values has been taken into consideration which is near to 0.5. Lin and Lee (2012) proposed to use chaotic sequence as the step length of lévy flight (Walton et al. 2013). In chaotic lévy FA, chaotic sequence within the range of [0, 0.5] has been taken as step length. The range of chaotic sequence has been chosen optimally from the experiment. But in the case of chaotic FA the value of parameters are different. In Chaotic FA chaotic sequence has been used to generate \( \beta_{0} \) within the range of [0, 0.5] which is an experimental feature. For chaotic FA step length \( \alpha \) has been set to inverse the value of golden ratio because Golden ratio performs better than random fraction (Jamil and Zepernick 2013). It is also found that average value of \( \alpha \) and \( \gamma \) for each image is near to 0.4 with respect to the objective function in chaotic FA.

5 Conclusion

This paper compares the two different FA in the image enhancement domain. The FA with chaotic sequence outperforms the FA with lévy flight. There is no analytical result in literature that chaotic sequence is better than lévy flight to generate random numbers. Those are problem specific. But in this study chaotic sequence enhance the capability of FA better than lévy flight. It also notable that population diversity and golden ratio is also increase the efficiency of FA. FA via chaotic sequence not only gives better objective value, also takes less number of generations. In further research these efficient algorithms can be applied in image segmentation domain, de-noising domain where these problems have been taken as optimization problem. These algorithms also extended as multi-objective optimization algorithm.