Research Article
Multipeak Mean Based Optimized Histogram Modification Framework Using Swarm Intelligence for Image Contrast Enhancement
Algorithm 2
Optimization_PSO procedure.
INPUT: Image with a total number of pixels in the gray-level range | Output: Optimal value of and | BEGIN | Step 1. For each particle | (a) Initialize particle with feasible random number | End | Step 2. Do | (a) For each particle | (i) Calculate the fitness value (i.e) find the difference between Discrete Entropy | values of original and enhanced image. | (ii) If the fitness value is better than the best fitness value (pbest) in history then | Set current value as the new pbest | End | (b) Choose the particle with the best fitness value of all the particles as the gbest | (c) For each particle | (i) Calculate particle velocity according to velocity update (11) | (ii) Update particle position according to position update (12) | End | While (maximum iterations are not attained); | Step 3. Output the new population with the optimal values of enhancement parameters and | Step 4. Stop | END. |
|