Color Image Enhancement Using Particle
Swarm Optimization (PSO)
Er.Kumar Gaurav*, Er.Ajay Kaushik**
*M.Tech (Student) M.M.E.C, Mullana
**Lecturer M.M.E.C, Mullana
Image enhancement is aimed to improve image quality by maximizing the information content in the input image. In this article a PSO based hue preserving color image enhancement technique is proposed. The process is as follows. Image enhancement is considered as an optimization problem and particle swarm optimization (PSO) is used to solve it. The quality of the intensity image is improved by a parameterized transformation function, in which parameters are optimized by PSO based on an objective function. The intensity transformation function uses local and global information of the input image and the objective function considers the entropy and edge information to measure the image quality. The enhanced color image is then obtained by scaling, which sometimes leads to gamut problem for few pixels. Rescaling is done to the saturation component to remove the gamut problem. The algorithm is tested on several color images and results are compared with two other popular color image enhancement techniques like hue-preserving color image enhancement without gamut problem (HPCIE) and a genetic algorithm based approach to color image enhancement (GACIE). Visual analysis, detail and background variance of the resultant images are reported. It has been found that the proposed method produces better results compared to other two methods.
Optimization is a mathematical discipline that concerns the finding of minima and maxima of functions, subject to so called constraints. Optimization originated in the
1940s, when George Dantzig used mathematical techniques for generating
"programs" (training timetables and schedules) for military application. Since
then, his "linear programming" techniques and their descendents were applied to a
wide variety of problems, from the scheduling of production facilities, to yield management in airlines. Today, optimization comprises a wide variety of techniques from operations research, artificial intelligence and computer science, and is used to improve business processes in practically all industries.
Discrete optimization problems arise, when the variables occurring in the optimization function can take only a finite number of discrete values. For example, the staff scheduler of a hospital unit has a finite set of staff members available, and thus staff scheduling consists of taking discrete decisions, one for each slot of the resulting schedule. Discrete optimization aims at taking these decisions such that a given function is maximized (for example revenue) or minimized (for example cost), subject to constraints, which express regulations or rules, such as required numbers of rest days for the staff in a schedule.
Optimization
Particle Swarm Optimization was firstly introduced by Dr. Russell C. Eberhart and Dr. James Kennedy in 1995. As described by Eberhart and Kennedy [22], PSO algorithm is a population based search algorithm based on the simulation of the social behaviour of birds within a flock. The initial intent of the particle swarm concept was to graphically simulate the graceful and unpredictable choreography of a bird flock, with the aim of discovering patterns that govern the ability of birds to fly synchronously, and to suddenly change direction with a regrouping in an optimal formation. From this initial object ive, the concept evolved into a simple and efficient optimization algorithm. In PSO, individuals, referred to as particles, are “flown” through hyper dimensional search space. Changes to the position of particles within the search space are based on the social psychological tendency of individuals to emulate the success of other Individuals. The changes to a particle within the swarm are therefore influenced by the experience, or knowledge, of its neighbours. The search behaviour of a particle is thus affected by that of other particles within the swarm (PSO is therefore a kind of symbiotic cooperative algorithm). The consequence of modelling this social behaviour is that the search process is such that particles stochastically return toward previously successful regions in the search space.
Particle Swarm has two primary operators:
Velocity update
Position update
For the global best PSO, or gbest PSO, the
neighbourhood for each particle is the
entire swarm. The social network employed by the gbest PSO reflects the star topology. In star neighbourhood topology, the social component of the particle velocity update reflects information obtained from all the particles in the swarm. In this case, the social information is the best position found by the swarm, referred to as .
For gbest PSO, the velocity of particle i is calculated as
[
] + [ ] (3.1)
Where, w is weight inertia.
is the velocity of particle i in dimension j = 1, . . . , nx at time step t. is the position of particle i in dimension j at time step t.
& are positive acceleration constants used to scale the contribution of the cognitive and social components respectively.
& U (0, 1) are random values in the range [0, 1], sampled from a uniform distribution. These random values introduce a stochastic element to the algorithm.
The personal best position, yi, associated with particle i is the best position the particle has visited since the first time step.
Considering minimization problems, the personal best position at the next time step, t + 1, is calculated as
(3.2) Where, f(.) is fitness function. The gbest at any time step is equal to min
{f(y0(t)), . . . , f(yns(t))} and ns is number of particle in a swarm. The gbest PSO is summarized figure 3.2
The local best PSO, or lbest PSO, uses a ring social network topology where
smaller neighbourhoods are defined for
each particle. The social component reflects information exchanged within the neighbourhood of the particle, reflecting local knowledge of the environment. With reference to the velocity equation, the social contribution to particle velocity is proportional to the distance between a particle and the best position found by the neighbourhood of particles.
Create and initialize an nx – dimensional swarm;
// set the personal best position
if f(Xi) < f(Yi) then
Yi = Xi;
// set the global best position if
f(Yi) < f( ) then
= Yi;
update the velocity
update the position
In this paper we have proposed a PSO
based automatic color image enhancement technique. Results of the proposed technique are compared with two other recent image enhancement techniques. For all the three images shown in this paper, it is observed that the proposed technique produces better results compared to other methods. In HPCIE technique pixels may get transformed to CMY color space without having gamut problem also. This technique is not adaptive with image type without human intervention. The proposed technique takes care of these points. In PSO, the most important property is that it can produce better results with fine tuning of parameters. At present there are many variants of PSO, we can try our proposed algorithm using these variants to improve the results further. We can also try with multi objective particle swarm optimization to improve the enhancement quality of color images considering other relevant objective function.
[1] Rafael C. Gonzalez, and Richard E. Woods, “Digital Image Processing”, 2nd edition, Prentice Hall, 2002.
[2] PITIE F., KOKARAM A.C.,
DAHYOT R.: „Automated colour grading using color distribution transfer‟, Comput Vis. Image Underst., Special issue on Color Image Processing,
2007, 107, pp. 123–137
[3] S. Lau, “Global image enhancement
using local information,” Electronics
Letters, vol. 30, pp. 122–123, Jan. 1994.
[4] H. Joel Trussell, Eli Saber, and Michael Vrhel, “Color image processing”, IEEE Signal Processing Magazine, vol.
22, no. 1, pp. 14-22, 2005.
[5] Michael Vrhel, Eli Saber, and H. Joel Trussell, “Color image generation and display technologies”, IEEE Signal Processing Magazine, vol. 22, no. 1, pp.
23-33, 2005.
[6] Rajeev Ramanath, Wesley E. Snyder, Youngjun Yoo, and Mark S. Drew, “Color image processing pipeline”, IEEE Signal Processing Magazine, vol. 22, no. 1, pp.
34-43, 2005.
[7] A. K. Jain, “Fundamentals of Digital
Image Processing”. Englewood Cliffs, NJ:
Prentice-Hall, 1991.
[8] S. Te-Jen, L. Tzu-Hsiang, L. Jia-Wei, “Particle Swarm Optimization for Gray- Scale Image Noise Cancellation”, Intelligent Information Hiding and Multimedia Signal Processing, International Conference, PP: 1459 –
1462, 2008.
[9] K. K. V. Toh, H. Ibrahim, and M. N.
Mahyuddin, “Salt-and-pepper noise detection and reduction using fuzzy switching median filter,” IEEE Trans. Consumer Electron., vol. 54, no. 4, pp.
1956–1961, Nov. 2008