Research Article
Color Image Quantization Algorithm Based on Self-Adaptive Differential Evolution
Pseudocode 1
The pseudocode of the SaDE-CIQ.
Input color image | Set parameters , | | , //population initialization | | for to | Select a small number of individuals from current population according to , and adjust them by -means. | for | | if | | else | Update by formulas (5) | for | if then | else if then | else | end if | end if // mutation | | if or then | else //crossover | | Update CR by formulas (6) | Calculate and | if then | else //selection | Find the global optimal solution | Output the optimal colormap | Construct the quantized image |
|