Research Article
A Global Multilevel Thresholding Using Differential Evolution Approach
Algorithm 1
The DE algorithm with “DE/rand/1/bin” strategy.
(1) Generate the initial population randomly | (2) Evaluate the fitness for each individual in the population | (3) while the maximum generation G is not reached do | (4) for to NP do | (5) Select uniform randomly | (6) | (7) for to do | (8) if or is equal to then | (9) | (10) else | (11) | (12) end if | (13) end for | (14) end for | (15) for to NP do | (16) Evaluate the offspring | (17) if is better than or equal to then | (18) Replace with | (19) end if | (20) end for | (21) end while |
|