Research Article

A Comparative Study of Improved Artificial Bee Colony Algorithms Applied to Multilevel Image Thresholding

Algorithm 1

(IABC/best/1 algorithm).
01 Initialize the population: is the number of the threshold. SN is the population size.
   , , .
02 Evaluate the population: = Evaluate( ) by Otsu’s function, (4)
03 generation = 1, , limit = 50, NFC = SN,
04 Repeat
05 /* Employed Bees Phase */
06  For = 1 to SN
07    Randomly choose , , from current population
08    Randomly choose from
09    , (15)
10    = Evaluate( ) by Otsu’s function, (4), NFC = NFC + 1,
11     If
12    , ,
13     Else
14   
15     End If
16  End For
17  Calculate the probability values by (12)
18  /* Onlooker Bees Phase */
19  
20  For to SN
21  If then
22    Randomly choose , , from current population
23    Randomly choose from
24     , (15)
25     = Evaluate( ) by (4), NFC = NFC + 1,
26    If
27     , ,
28    Else
29    
30    End If
31  End If
32   
33   If
34   
35   End If
36 End For
37   /* Scout Bees Phase */
38 For = 1 to SN
39 If
40   , ,
41   = Evaluate( ) by (4), NFC = NFC + 1,
42 End If
43 End For
44 Memorize the best solution achieved so far
45 generation = generation + 1
46 Until (generation = Maximum Generation)