Keywords

1 Introduction

Main purpose of image enhancement to increase subjective quality parameters of image. This process is very simple and used to recover the image which is more appropriate than original one and gives better information about image for any explicit application. Its applications are in various areas like medical imaging, remote sensing, satellite image processing, airborne imaging, fingerprint matching, IRIS matching, digital camera applications etc. [1].

For every different type of image, optimizing the parameters and approach is a very meticulous job therefore image enhancement becomes a complex optimization problem. This paper describes the various metaheuristic algorithms. Every optimization algorithms have its own characteristics and limitations. Its objective is to take up the advantages of respective search algorithm while avoiding and ignoring limitations.

In literature, various metaheuristic algorithms have been proposed like Genetic Algorithms, Differential Evolution, Ant Colony Optimization Algorithm, Cuckoo Search, Honey Bee Algorithm, Particle Swarm Optimization etc. these algorithms are capable to obtain low error rate with high computation time [2]. Here a comparison between traditional technique and metaheuristic technique for image enhancement is done.

2 Techniques Used for Image Enhancement

The process of image enhancement is heuristic in nature and basically there are two major categories of image enhancement:

  • Frequency domain: It actually works with Fourier transform of an image.

  • Spatial domain: It is a procedure, which works directly on pixels of an image.

For an image, frequency domain based techniques can be directly applied on an image via Fourier Transform, Discrete Wavelet Transform (DWT), and Discrete Cosine Transform (DCT). Its advantage is less computation complexity, easy to manipulate the frequency component of an image etc. [3, 4]. The main drawback is that, it can not enhance all parts of image all together. Here new image is obtained by the convolution of an image through linear position invariant operator, and is given by:

$$ n\left( {x,y} \right) = h\left( {x,y} \right)*m(x,y) $$
(1)

Where,

\( m(x,y) \): Input image

\( n\left( {x,y} \right) \): New image

\( h\left( {x,y} \right) \): Linear position invariant operator

The main advantage of spatial domain based technique is- it is very simple in nature and can be easily applied to a number of real time applications. Its limitation is that generally it enhances the whole image in uniform manner which is actually not desirable in many cases. The process of spatial domain is written as [4, 5]:

$$ n\left( {u,v} \right) = T[m(u,v)] $$
(2)

Here,

\( m(u,v) \): Input Image

\( n\left( {u,v} \right) \): Processed Image

\( T \): An operator on m, which is defined for some neighborhood of \( \left( {u,v} \right) \)

There are various type of image enhancement techniques used in spatial domain, few of them are: histogram equalization, grey scale manipulation, contrast stretching, image negative, compression of dynamic range, improving quality parameters using logical and arithmetic operations [6].

Image Quality Metrics.

Always it is required to quantify the features of any image; therefore metrics are used to compute the image quality. It is divided into two categories:

  • Objective fidelity criteria: they provide equations which are used to quantify errors and characterize quality of image.

  • Subjective fidelity criteria: they are not based on any metrics.

MSE- Difference between estimator and estimated value.

$$ MSE = \frac{1}{mn}\sum\nolimits_{i = 0}^{m - 1} {\sum\nolimits_{j = 0}^{n - 1} {\left[ {I\left( {i,j} \right) - \left( {k\left( {i,j} \right)} \right)} \right]} }^{2} $$
(3)

PSNR- Ratio of possible power (max.) of a signal to power of corrupting noise.

SNR- Ratio of power of a significant signal to power of surroundings noise or unwanted signal.

$$ SNR = \frac{{P_{signal} }}{{P_{noise} }} $$
(4)

Where,

P: average power.

It is necessary that both signal and noise power must be calculated at the same points in any system. It is also required that it should be within the same system bandwidth.

3 Cuckoo Search

Yang and De, in the year 2009 have given thought of CS. Similar to other metaheuristic techniques, this one also kind of population based optimization approach. Cuckoo species have a tendency of putting their eggs in nest to other swarm birds. Cuckoos have a special characteristic, known as Egg Laying Space, is used by research scholars in many daily life applications. These birds either destroy the eggs or they leave their nest within specified space [7, 8].

The procedure of CS is a three step:

  • For a particular time a cuckoo lays 1 egg and haphazardly dump its egg into any other chosen nest.

  • For consequently generation, finest nest having best quality of eggs will take over.

  • When total number of present host nest is fixed then egg laid by a cuckoo is exposed by host birth with likelihood.

4 Firefly Algorithm (FA)

Xin-She Yang in year 2010 given idea about FA for encouraging metaheuristic algorithm. FA is actually based on the characteristics of firefly. Firefly is a category of insect which is produced by the process of bioluminescence. They are capable for producing short and rhythmic flashes. Firefly moves because of the light intensity, and this behavior is used to solve worldwide optimization problem. FA gives better performance as compared to other metaheuristic algorithms due to of its automatic subdivision and the capability of dealing with multimodality. Generally Firefly algorithm follows three rules [9]:

  • Since these are unisex, so they will be attracted towards others irrespective of their sex.

  • Basically a flashing firefly is fascinated toward other firefly if other is brighter but if both fireflies have same brightness then other will move haphazardly. Attractiveness varies according to light intensity.

  • Using background of function, brightness can be determined.

Variation of light intensity with distance is defined by following formula:

$$ I(r) = I_{0} e^{{ - \gamma r^{2} }} $$
(5)

Where,

I- Intensity of intensity

I0- Original intensity of light

γ- Absorption coefficient of light

r- Distance of one firefly from other firefly

β represents attractiveness. And given by

$$ \beta = \beta_{0} e^{{ - \gamma r^{2} }} $$
(6)

Where,

β0- Attractiveness known at distance r = 0

Distance between any two fireflies is calculated by helping Cartesian distance:

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

If brightness of j is greater than i, then i will be attracted toward firefly j. This type of movement is defined be the following expression:

$$ \Delta x_{i} = \beta^{{0e^{{ - \gamma r^{2} ij}} \left( {x^{t}_{j} - x^{t}_{i} } \right)^{2} }} + \alpha \varepsilon_{i} ,\quad x_{i}^{t + 1} +\Delta x_{i} $$
(8)

In above equation, the first term explains attraction, \( \gamma \) is the limiting factor (either value approaching to zero or it is too large). If \( \gamma \) is very small and approaches to zero \( (\gamma \to 0) \), then the attractiveness and brightness will be constant, \( \beta = \beta_{0} \) but if \( \gamma \) s too large the attractiveness decreases and firefly moves randomly.

5 Results and Discussion

The results of image enhancement using cuckoo search algorithm and firefly algorithms have been presented for two images of bird and leaf. Here the objective is to increase the overall intensity of edge of image, therefore maximizing the number of pixels in edge. The mentioned algorithms are compared in terms of computation time to run algorithm, fitness value, computational time for image enhancement, SNR and PSNR. Figure 1 shows the original image as well as images obtained after applying cuckoo search and firefly algorithm.

Fig. 1.
figure 1

Original image and enhanced images using CS and FA

After comparing all results author observed here, performance of Firefly Algorithm (FA) is much better in comparison Cuckoo Search (CS) because in case results obtained using Firefly algorithm, brightness and contrast level is appearing more visible with good PSNR. Image having higher number of pixels is viewed as more detailed content. Table 1 shows the various parameters obtained from both metaheuristic techniques and Table 2 shows the data obtained from both algorithms.

Table 1. Comparison of various parameters
Table 2. Comparison of PSNR Value

Both the algorithms have been executed for 100 runs of times and below mentioned the values obtained for the simulation time for CS and FA:

CS: 169.78 s

FA: 150.49 s

Therefore after comparing all the data, it can be stated that FA gives better performance because it takes less simulation time as compared to CS.

6 Conclusion and Future Work

Author worked on performance of metaheuristic techniques like cuckoo search and firefly algorithms has been tabulated and compared for image enhancement. Two types of images have been taken for comparison and analysis. Result shows that firefly algorithms give much better results in comparison to cuckoo search; various parameters are evaluated and mentioned in table.

This approach can be extended to hybrid algorithms, which may consist of more than two search methodologies. Fine tuning of various parameters can also be done in terms of reducing maximum number of iterations. In future, optimization can also be accomplished with help of hyper heuristic.