Literature DB >> 27738423

Multiobjective Image Color Quantization Algorithm Based on Self-Adaptive Hybrid Differential Evolution.

Zhongbo Hu1, Qinghua Su1, Xuewen Xia2.   

Abstract

In recent years, some researchers considered image color quantization as a single-objective problem and applied heuristic algorithms to solve it. This paper establishes a multiobjective image color quantization model with intracluster distance and intercluster separation as its objectives. Inspired by a multipopulation idea, a multiobjective image color quantization algorithm based on self-adaptive hybrid differential evolution (MoDE-CIQ) is then proposed to solve this model. Two numerical experiments on four common test images are conducted to analyze the effectiveness and competitiveness of the multiobjective model and the proposed algorithm.

Entities:  

Mesh:

Year:  2016        PMID: 27738423      PMCID: PMC5056010          DOI: 10.1155/2016/2450431

Source DB:  PubMed          Journal:  Comput Intell Neurosci


1. Introduction

Image color quantization is one of the common image processing techniques. It is the process of reducing the number of colors presented in a color image with less distortion [1]. Most of the image color quantization methods [2-12] are essentially based on data clustering algorithms. Recently, some heuristic methods, such as genetic algorithm (GA) [13, 14], particle swarm optimization algorithm (PSO) [15-17], and differential evolution (DE) [18-21], have been employed to solve the image color quantization problems which are considered as optimization problems. Evaluation criteria, which are used as objective functions of optimization problems, often incorporate mean square-error (MSE) [22-24], intracluster distance (), and intercluster separation (d min) [25-28]. Most of the image color quantization algorithms based on heuristic methods are single-objective methods; that is, only one evaluation criterion is used. References [26-28] have used three evaluation criteria, but their three criteria have been merged to get a linear weighting objective function. In general, the objective function in any of the above algorithms holds only one evaluation criterion or a linear combination of several evaluation criteria. This paper presents the following two aspects: Develop multiobjective model for image color quantization problems. Based on the model, we can obtain a quantized image with the smallest color distortion among those images which meet a trade-off between the optimal color gradation and the optimal color details. Propose a multiobjective algorithm based on a self-adaptive DE for solving the multiobjective image color quantization model. The rest of the paper is organized as follows. Section 2 establishes a multiobjective image color quantization model. Section 3 presents a multiobjective image color quantization algorithm based on self-adaptive hybrid DE (MoDE-CIQ). Experimental results and discussion on four test images are provided in Section 4. Conclusions are given in Section 5.

2. Establishment of a Multiobjective Image Color Quantization Model

2.1. Multiobjective Image Color Quantization Model

In single-objective models, mean square-error (MSE) (1) is the most popular evaluation criterion for color image quantization [29]. Intracluster distance () (2) and intercluster separation (d min) (3) come next in importance to MSE. Smaller MSE means smaller color distortion. Smaller means smoother gradation of similar colors. Larger d min means more color details to be preserved. The three evaluation criteria are expressed in the following formulas [28]: Here, M × N is the size of a color image I. I(·, ·) is a pixel in I. K is a given color number of a colormap. k is the sequence number of the colors in the colormap. c is the kth color of the colormap. k 1 and k 2 are two different sequence numbers of the colors in the colormap.   C is the cluster of all pixels in I with similar color to c . |C | is the number of all pixels in C . I is the color of a pixel in C . d(·, ·) represents Euclidean distance. This paper proposes a multiobjective image color quantization model which uses two evaluation criteria, and d min, as its subobjective functions. The model can be formulized as follows: Here [0,255]3× is decision space. Decision vector x is a colormap consisting of K randomly selected color triples in the color space  [0,255]3. Let be the kth color of the colormap. Then F(x) is the objective function with the following two subobjectives: This model aims to make a trade-off between minimum and d min maximum. The solution set of this multiobjective model is called Pareto set, the solutions of which could balance color gradation and color details. Obviously, the solution with the smallest MSE in the Pareto set of the above multiobjective model corresponds to a quantized image, which holds the smallest color distortion among those images with a balance between the optimal color gradation and the optimal color details.

2.2. Conflict Detection of the Subobjective Functions

As we all know, the subobjective functions of a multiobjective model should be conflicting. This means, as two subobjectives in the above model, g 1(x) and g 2(x) should not become better simultaneously. Namely, when becomes better (smaller), d min should not also become better (larger). In this part, several experiments are conducted to show that the subobjective functions, g 1(x) and g 2(x), in the above model are obviously conflicting. Figure 1 shows four common test images (Peppers, Baboon, Lena, and Airplane) with size 512 × 512 pixels. Reference [15] presented a color image quantization algorithm based on self-adaptive hybrid DE (SaDE-CIQ), in which the objective function is MSE. We, respectively, replace its objective with and d min to obtain two algorithms, named SaDE-CIQ1 and SaDE-CIQ2. SaDE-CIQ, SaDE-CIQ1, and SaDE-CIQ2 are implemented to quantize all test images into the quantized images with 16 colors. Each algorithm is run 10 times on each test image. In the three algorithms, there are two parameters, a maximum iteration t max and a mixed probability p. Here, t max = 200. For showing the same relation of MSE, and d min for the different values of p, we let p take three different values, 0.1, 0.05, and 0.01 in the three algorithms.
Figure 1

Test images.

For the three algorithms with different p, we can get the similar relation of MSE, and d min. So, we only use the part results of SaDE-CIQ1 with p = 0.1 as an example to analyze the relation of MSE, and d min. By any image and its quantized image, we can calculate the values of MSE, and d min. Table 1 gives all the objective values of SaDE-CIQ1 in 10 runs and the corresponding values of MSE and d min. Figure 2 shows the changes of these values in 10 runs. We include the curves of Peppers from first run to second run as an example of how to illustrate the conflicts of MSE, and d min. When becomes better (smaller), d min does not become better (larger). When MSE becomes better (smaller), d min does not become better (larger). When becomes better (smaller), MSE also becomes better (smaller). These mean and d min are conflicting, MSE and d min are conflicting, and and MSE are not conflicting. According to the statistical analysis for all test images, there are 15 conflicts between and d min, 16 between MSE and d min, and 11 between and MSE. These statistical data show that any two of MSE, and d min, are in conflict.
Table 1

The results of 10 runs for SaDE-CIQ1 (p = 0.1).

Test imageTest serial number
12345678910
Peppers d¯max 27.888526.985826.068128.193425.747232.805426.872932.031725.559728.0979
d min 41.550829.354125.029737.488640.5433.690235.112736.413538.382536.1761
MSE26.822126.266725.166126.830425.531831.510424.193829.662323.701927.8777

Baboon d¯max 26.622427.626028.353726.845226.668930.538627.690728.437626.812228.7434
d min 36.225532.837534.910524.706436.562130.965226.874525.998433.401138.2255
MSE20.376620.840420.151119.609320.929019.448121.602120.236219.416320.5033

Lena d¯max 27.274534.057928.506826.654026.678037.255812.633234.920128.021933.1166
d min 21.900936.372533.320437.183237.152426.120537.350928.962224.517629.3508
MSE8.386815.507728.05355.672415.979240.62249.582638.441917.626113.4949

Airplane d¯max 21.900936.372533.320437.183237.152426.120537.350928.962224.517629.3508
d min 8.386815.507728.05355.672415.979240.62249.582638.441917.626113.4949
MSE15.562625.917326.823822.286526.567320.214329.55125.991721.068524.9274
Figure 2

The curves of , d min, and MSE obtained by SaDE-CIQ1 (p = 0.1).

In summary, for the conflict of and d min, it is appropriate to select them as the subobjective functions in the above multiobjective image color model. Meanwhile, for the conflicts of MSE with and d min, there does not exist preference when MSE is applied to select the solution in the Pareto set of the above multiobjective model.

3. Multiobjective Image Color Quantization Algorithm Based on Self-Adaptive Hybrid DE

For solving the above multiobjective image color quantization model, this section proposes a multiobjective image color quantization algorithm based on self-adaptive hybrid DE (MoDE-CIQ). This algorithm merges the ideas of SaDE-CIQ in [19] and a multipopulation DE algorithm VEDE [30], which is a Pareto-based multiobjective DE algorithm. The main steps of the proposed MoDE-CIQ algorithm are described as below.

Step 1 (initialize populations).

Two initial populations including NP individuals are randomly selected separately. Here, each individual is a colormap with K colors from an image I. The initial populations are denoted by

Step 2 (optimize populations).

The population X 1 is updated by SaDE-CIQ with g 1(x) as its objective. The population X 2 is updated by SaDE-CIQ with g 2(x) as its objective. Then, the best individuals of the two populations are exchanged. The update and exchange operations are repeated to achieve a predetermined iteration number t max. The set of t maxth generation individuals of the two populations is denoted by

Step 3 (reserve nondominated solutions).

All nondominated solutions in X are recorded in a set POS. (Note: for an individual x   (i = 1, 2,…, 2∗NP), if there is no another one x   (j ≠ i, j = 1, 2,…, 2∗NP) such that g 1(x ) < g 1(x ) and g 2(  x ) < g 2(x ), that is, F(x )≺F(x ), it is a nondominated solution. Otherwise, it is a dominated solution.)

Step 4 (obtain an approximative Pareto solution set).

Steps 2 and 3 are repeated to achieve a predetermined iteration number Loop. The final set POS is recorded as an approximative Pareto solution set.

Step 5 (determine an optimal solution).

In the set POS, the solution with the smallest values of MSE is finally reserved as an optimal solution of an image color quantization problem. The pseudocode of MoDE-CIQ is shown as Pseudocode 1.
Pseudocode 1

The pseudocode of MoDE-CIQ.

4. Numerical Experiments

In this section, two sets of experiments are conducted to illustrate the effectiveness of MoDE-CIQ algorithm and the advantage of the multiobjective model, respectively.

4.1. Experiments for Showing the Multiobjective Algorithmic Superiority

4.1.1. Experimental Background

Currently, the heuristic algorithms employed to solve the image color quantization problem have mainly GA, PSO, and DE. Reference [16] indicated that PSO is superior to GA. In [31], DE and PSO show similar performance on image color quantization. However, due to simple operation, litter parameters, and fast convergence, DE is the better choice to use than PSO. These mean that DE is a competitive image color quantization in the heuristic algorithms for image color quantization. Reference [19] proposed a color image quantization algorithm based on self-adaptive hybrid DE (SaDE-CIQ), in which the parameters of DE are automatically adjusted by a self-adaptive mechanic. Then, SaDE-CIQ is compared with K-means and the color image quantization algorithm using PSO (PSO-CIQ). Table 2 shows the smallest and the largest objective values for the three algorithms over 10 runs obtained in [19]. The results show that SaDE-CIQ is an effective color image quantization algorithm, and SaDE-CIQ has better quantization quality than K-means and PSO-CIQ. It is naturally to be thought that SaDE-CIQ is the best one of the image color quantization algorithms based on heuristic algorithms.
Table 2

The MSE values resulting from SaDE-CIQ, K-means, and PSO-CIQ.

Alg.PeppersBaboonLenaAirplane
MinMaxMinMaxMinMaxMinMax
SaDE-CIQ17.468218.726622.749623.338212.970913.80558.24828.9740
K-means18.108621.267622.953224.956315.640119.13149.114110.4430
PSO-CIQ36.343640.953235.889241.994029.664434.586721.354024.3200
Reference [28] presented a linear weighting objective function of and d min and MSE below: where w 1, w 2, and w 3 are the user-defined weights of the subobjectives. The linear weighting objective function (10) is the only one, including the three evaluation criteria of MoDE-CIQ, in existing references. So in this section, we will compare MoDE-CIQ, SaDE-CIQ, and SaDE-CIQ3 obtained by replacing the objective function MSE with the linear weighting objective function (10) in SaDE-CIQ.

4.1.2. Experimental Design

MoDE-CIQ, SaDE-CIQ, and SaDE-CIQ3 are implemented to quantize the four test images in Figure 1 into the quantized images with 16 colors. Each algorithm is run 10 times. The parameters of algorithms are set as follows: K = 16, NP = 100, t max = 200, Loop = 5. Mixed probability p takes three different values, 0.1, 0.05, and 0.01.   w 1, w 2, and w 3 take the same values as those in [28].

4.1.3. Experimental Results

For MoDE-CIQ, Table 3 reports the best MSE values and the corresponding objective values , d min in 10 runs. In fact, smaller is better, larger d min is better, and smaller MSE is better. As shown in Table 3, the following conclusions are obtained. (i) For Peppers, only MSE is best as p = 0.05. and d min are best as p = 0.01. As p = 0.1, , d min, and MSE are all medians, and and MSE are similar to their corresponding best values. (ii) For Baboon, as p = 0.1, d min and MSE are all best. (iii) For Lena, and MSE are all best as p = 0.1. (iv) For Airplane, as p = 0.05, is best, d min is a median, and MSE is similar to the other two values.
Table 3

The best MSE values and the corresponding objective values of MoDE-CIQ.

Image p values d¯max d min MSE
Peppers0.125.612728.296719.1029
0.0528.296731.907018.8444
0.0124.891738.406219.5632

Baboon0.127.884145.828422.9602
0.0527.808345.526222.9887
0.0127.903044.717522.9654

Lena0.120.231126.438814.2847
0.0520.284932.090715.6655
0.0121.191332.918115.5229

Airplane0.122.057024.102810.7517
0.0522.010529.616011.2520
0.0120.975926.999910.9591
According to the above conclusions, we will take p as 0.1 for Peppers, Baboon, and Lena in the following comparing experiments. However, there are few and extremely unequally distributed base colors in Airplane. For preserving main color gradations and richer color levers of original images, should be as small as possible. So we will take p as 0.05 for Airplane in the following comparing experiments. For comparing MoDE-CIQ, SaDE-CIQ, and SaDE-CIQ3, Table 4 reports , d min, and MSE of their quantized images, MSE values of which are the smallest in their 10 runs. SaDE-CIQ aims to minimize its objective MSE, so its values of MSE are surely the best than those of other two algorithms. But the values of and d min by MoDE-CIQ are all better than those of SaDE-CIQ. The values of and d min obtained by SaDE-CIQ3 for Peppers and Baboon are also better than those of SaDE-CIQ. The values of , d min, and MSE obtained by MoDE-CIQ are better than those of SaDE-CIQ3, except for their similar values of , d min, and MSE for Baboon, and the values of MSE for Lena. Figures 3, 4, 5, and 6 show all quantized images of the four common test images in Figure 1. In Figures 3 –6, all subfigures (a) are the original test images. Subfigures (b), subfigures (c), and subfigures (d) are the quantized images separately obtained by MoDE-CIQ, SaDE-CIQ3, and SaDE-CIQ. The visual effects of the quantized images are compared as follows. (i) For Peppers (shown in Figure 3), there are contrasting and equally distributed main base colors, so the quantized images obtained by three algorithms visually have similar color distortions. The differences in the quantization quality of these quantized images depend on their color gradations of larger regions with similar colors. The quantized images of MoDE-CIQ and SaDE-CIQ have the more rich color levers than the one of the SaDE-CIQ3. (ii) For Baboon (shown in Figure 4), there are also contrasting and equally distributed main base colors, but there are little larger regions with similar colors. So the quantized images of three methods have similar effects. (iii) For Lena (shown in Figure 5), there are many shaded regions in it. So differences in the quantization quality of the corresponding quantized images depend on the transition from shaded regions to highlights. MoDE-CIQ obtains the quantized image with more natural transition than SaDE-CIQ and SaDE-CIQ3. (iv) For Airplane (shown in Figure 6), there are extremely unequally distributed base colors. Obviously, the quantized image of SaDE-CIQ3 has the largest color distortion. Although the quantized image of SaDE-CIQ has a little better color distortion than that of the multiobjective algorithm, the former loses some detail colors, such as the cloud in the sky.
Table 4

, d min, and MSE of the quantized images with 16 colors by three algorithms.

Image p valuesAlgorithm d¯max d min MSE
Peppers0.1MoDE-CIQ25.612728.296719.1029
SaDE-CIQ334.248945.867320.3563
SaDE-CIQ37.245022.247317.4577

Baboon0.1MoDE-CIQ27.884145.828422.9602
SaDE-CIQ327.812245.842622.9592
SaDE-CIQ28.180536.477322.7644

Lena0.1MoDE-CIQ20.231126.438814.2847
SaDE-CIQ322.882427.546113.5264
SaDE-CIQ22.297319.014312.9641

Airplane0.05MoDE-CIQ22.010529.616011.2520
SaDE-CIQ3113.205034.863017.4217
SaDE-CIQ23.75298.25408.0544
Figure 3

The quantized images of Peppers with 16 colors obtained by three algorithms.

Figure 4

The quantized images of Baboon with 16 colors obtained by three algorithms.

Figure 5

The quantized images of Lena with 16 colors obtained by three algorithms.

Figure 6

The quantized images of Airplane with 16 colors obtained by three algorithms.

According the above results, for the images with contrasting and equally distributed main base colors, the quantization effects of MoDE-CIQ and SaDE-CIQ are similar. But for the images with many shaded regions and extremely unequally distributed base colors, MoDE-CIQ could make the colors more natural and preserve more detail colors. In SaDE-CIQ3, the weighted factors in (10) affect its quantization quality. Thus, we can think MoDE-CIQ is superior to the other two algorithms.

4.2. Experiments for Showing the Advantage of the Multiobjective Model

As the statement on Step 4 of MoDE-CIQ, we can obtain an approximative Pareto solution set. This is an advantage comparing to all single-objective algorithms. The above experiments reserved the approximative Pareto-optimal solutions of all four images. The solution sets corresponding to Peppers, Baboon, Lena, and Airplane, respectively, include 13 solutions (shown in Table 5), 9 solutions (in Table 6), 11 solutions (in Table 7), and 8 solutions (in Table 8). For comparing these optimal solutions, their corresponding MSE values are listed. Figure 7 shows the Pareto front of these Pareto-optimal solutions. These optimization solutions present some quantized images with different effects. Users can select the suitable quantized image according to their requirements for the color gradations and details.
Table 5

Pareto-optimal solutions for Peppers.

Order g 1(x) g 2(x)MSE
124.9238227.242519.5660
238.5345196.891325.4623
331.0556208.188624.1790
434.6405205.142922.2026
525.6127226.703319.1029
635.2191197.736623.0621
731.4675207.868423.3818
834.4429205.875822.2859
934.8841204.845126.031
1034.1102207.731123.1158
1125.9563217.853020.4536
1228.4238210.603622.2533
1334.3636206.774721.8853
Table 6

Pareto-optimal solutions for Baboon.

Order g 1(x) g 2(x)MSE
127.3819212.069323.1123
227.8841209.171622.9602
331.8821204.12724.7008
429.2681205.837524.4271
530.9412204.955324.6433
633.8514202.204125.7050
730.2455205.581224.5084
827.8998208.0066227.341
927.6801209.3535227.341
Table 7

Pareto-optimal solutions for Lena.

Order g 1(x) g 2(x)MSE
124.9313207.908819.8533
220.2311228.561214.2847
320.6109228.463015.1880
426.7185202.378920.9155
525.9452203.767920.8445
624.5586209.255818.9967
723.6997209.772119.8327
822.3126212.751120.1288
921.1493216.785517.3328
1024.9279209.1586233.6600
1120.6396224.5480233.6600
Table 8

Pareto-optimal solutions for Airplane.

Order g 1(x) g 2(x)MSE
123.9419220.413012.4973
221.2536225.419811.4192
322.3128223.446011.5732
422.0105225.384011.2520
522.2876225.075211.4864
625.2011219.288013.5785
768.6311212.3398316.6950
822.1871225.3009316.6950
Figure 7

Pareto front of MoDE-CIQ.

By the experimental results of the above two parts, MoDE-CIQ is a competitive algorithm for image color quantization. All the above algorithms were implemented in Visual C++ and the experiments were conducted on a computer with Intel® Xeon® CPU E3-1230 v3 @ 3.30 GHZ and 8 GB RAM.

5. Conclusions

This paper established a multiobjective image color quantization model, in which intracluster distance and intercluster separation d min are selected as its objective functions. A multiobjective image color quantization algorithm based on self-adaptive hybrid DE (MoDE-CIQ) was proposed to solve this model. MoDE-CIQ emerges the ideas of SaDE-CIQ [19] and a multipopulation DE algorithm VEDE [30], and applies MSE to determine the optimal solution. The multiobjective model and the proposed algorithm present a strategy to obtain a quantized image which holds the smallest color distortion among those images with a balance between the optimal color gradation and the optimal color details. The experimental results indicated that the multiobjective model and MoDE-CIQ are effective and competitive for image color quantization problems.
  4 in total

1.  Comparison and optimization of methods of color image quantization.

Authors:  J P Braquelaire; L Brun
Journal:  IEEE Trans Image Process       Date:  1997       Impact factor: 10.856

2.  Fast color quantization using weighted sort-means clustering.

Authors:  M Emre Celebi
Journal:  J Opt Soc Am A Opt Image Sci Vis       Date:  2009-11       Impact factor: 2.129

3.  Color image quantization algorithm based on self-adaptive differential evolution.

Authors:  Qinghua Su; Zhongbo Hu
Journal:  Comput Intell Neurosci       Date:  2013-07-15

4.  An Effective Color Quantization Method Using Octree-Based Self-Organizing Maps.

Authors:  Hyun Jun Park; Kwang Baek Kim; Eui-Young Cha
Journal:  Comput Intell Neurosci       Date:  2016-01-14
  4 in total
  1 in total

1.  Modified Backtracking Search Optimization Algorithm Inspired by Simulated Annealing for Constrained Engineering Optimization Problems.

Authors:  Hailong Wang; Zhongbo Hu; Yuqiu Sun; Qinghua Su; Xuewen Xia
Journal:  Comput Intell Neurosci       Date:  2018-02-13
  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.