Research Article

Multilevel Image Segmentation Based on an Improved Firefly Algorithm

Algorithm 1

) Set the parameters and generate initial fireflies
() Define the objective function
() Light intensity is determined by the objective function value
() While
()  Calculate the fitness value of every firefly, and rank the fireflies
()  Find the current best solution and the corresponding fitness value
()  Update fireflies according to (6)
()  If
()      Count continuously occurred number
()    If
()     Executive Diversity enhancing strategy with Cauchy mutation
()    Elseif
()     Randomly select one strategy from Diversity enhancing strategy with Cauchy mutation
      and Neighborhood strategy
()    Elseif
()     Executive Neighborhood strategy
()    Elseif
()     Terminate and go Step ()
()    End If
()    
() Elseif
()    Randomly select one strategy from Diversity enhancing strategy with Cauchy mutation
     and Neighborhood strategy
() End If
() End While
() Output the optimum result