| Literature DB >> 26884748 |
Hyun Jun Park1, Kwang Baek Kim2, Eui-Young Cha1.
Abstract
Color quantization is an essential technique in color image processing, which has been continuously researched. It is often used, in particular, as preprocessing for many applications. Self-Organizing Map (SOM) color quantization is one of the most effective methods. However, it is inefficient for obtaining accurate results when it performs quantization with too few colors. In this paper, we present a more effective color quantization algorithm that reduces the number of colors to a small number by using octree quantization. This generates more natural results with less difference from the original image. The proposed method is evaluated by comparing it with well-known quantization methods. The experimental results show that the proposed method is more effective than other methods when using a small number of colors to quantize the colors. Also, it takes only 71.73% of the processing time of the conventional SOM method.Entities:
Mesh:
Year: 2016 PMID: 26884748 PMCID: PMC4738736 DOI: 10.1155/2016/5302957
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1Strengths and weaknesses of octree color quantization (number of colors K = 32).
Figure 2The disadvantage of SOM color quantization (number of colors K = 16).
Figure 3Overall process of octree-based SOM color quantization.
Algorithm 1Learning algorithm of octree-based SOM color quantization.
Figure 4Average MAE, MSE, and processing time of all test cases.
Figure 5Test images.
Information on test images.
| Image | Resolution | Number of colors | Color difference |
|---|---|---|---|
| (a) Lenna | 512 × 512 | 148,279 | 97.60 |
| (b) Parrots | 768 × 512 | 72,079 | 126.36 |
| (c) Mona Lisa | 1280 × 1920 | 125,240 | 97.14 |
| (d) House | 1280 × 1024 | 363,724 | 136.87 |
| (e) Mandrill | 512 × 512 | 230,427 | 118.48 |
| (f) Venus | 1848 × 1173 | 396,799 | 131.67 |
| (g) Bedroom | 1280 × 1024 | 454,673 | 136.26 |
| (h) Scream | 999 × 1362 | 189,162 | 108.71 |
| (i) Old man | 321 × 481 | 33,411 | 107.84 |
| (j) Dragonfly | 481 × 321 | 41,117 | 72.24 |
Various color quantization methods [1].
| Methods | Features of methods |
|---|---|
| POP [ | (i) One of the simplest methods. |
| (ii) 16 × 16 × 16 color histogram using 4 bits per channel uniform quantization. | |
| (iii) | |
|
| |
| MC [ | (i) 32 × 32 × 32 color histogram using 5 bits per channel uniform quantization. |
| (ii) It makes cubes that include all of the histogram. | |
| (iii) It repeatedly splits the cubes that have the greatest number of colors until | |
|
| |
| OCT [ | (i) Tree structure with up to 8 nodes as children, which can represent all colors in an image within an 8-level tree. |
| (ii) Color distribution is represented using octree, which then prunes the nodes until | |
|
| |
| KM [ | (i) It starts with |
| (ii) All of the input data are assigned to the cluster that has the minimum distance within the data. | |
| (iii) The centroid of the cluster is calculated as the average of the assigned data. | |
|
| |
| ART2 [ | (i) Unsupervised learning model. |
| (ii) It creates new clusters depending on a vigilance test. | |
| (iii) The palette color is chosen from the centroids of the | |
|
| |
| SOM [ | (i) Unsupervised learning model. |
| (ii) One-dimensional self-organizing map with | |
| (iii) It designates the minimum distance node as the “winner” node and then updates the weights of the winner node and neighbor nodes. | |
| (iv) It repeats the process until the sum of the weight change is less than a certain threshold. | |
MAE comparison of the color quantization methods.
|
| Lenna | Parrots | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
| POP | 41.5 | 36.6 | 22.0 | 16.1 | 12.7 | 11.9 | 101.6 | 73.5 | 58.8 | 22.5 | 16.5 | 13.6 |
| MC | 31.0 | 25.1 | 19.4 | 15.1 | 11.5 | 8.6 | 64.8 | 52.1 | 36.9 | 25.1 | 17.8 | 12.8 |
| OCT | 35.9 | 32.8 | 23.3 | 15.5 | 12.9 | 9.6 | 53.9 | 38.2 | 28.6 | 20.3 | 16.3 | 12.6 |
| KM | 31.1 | 30.1 | 24.8 | 19.7 | 13.3 | 12.0 | 44.7 | 31.0 | 26.6 | 20.2 | 16.6 | 12.9 |
| ART2 | 31.1 | 22.1 | 18.5 | 12.4 | 10.3 | 8.5 | 43.8 | 35.3 | 25.9 | 18.3 | 14.2 | 11.3 |
| SOM | 27.4 |
|
|
|
|
| 42.4 | 28.4 | 20.3 |
|
|
|
| PM |
| 19.8 | 14.9 |
| 8.8 | 7.2 |
|
|
| 15.2 | 11.8 | 9.1 |
|
| ||||||||||||
|
| Mona Lisa | House | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 40.4 | 28.1 | 20.4 | 14.2 | 12.9 | 12.5 | 62.6 | 52.2 | 39.1 | 29.7 | 21.5 | 15.8 |
| MC | 25.2 | 20.3 | 16.1 | 12.5 | 9.4 | 7.4 | 63.6 | 54.9 | 39.6 | 27.5 | 20.2 | 15.9 |
| OCT | 29.7 | 24.8 | 16.3 | 13.4 | 10.4 | 8.9 | 51.4 | 43.3 | 41.0 | 25.9 | 24.8 | 17.6 |
| KM | 30.7 | 23.5 | 18.8 | 14.2 | 13.6 | 11.8 | 43.1 | 30.8 | 25.7 | 22.1 | 18.5 | 16.0 |
| ART2 | 29.2 | 21.8 | 16.3 | 12.3 | 9.5 | 7.6 | 44.1 | 33.4 | 29.3 | 23.6 | 18.8 | 15.3 |
| SOM | 25.9 | 17.6 | 13.3 | 9.7 | 7.3 |
| 47.3 | 33.2 |
|
|
|
|
| PM |
|
|
|
|
| 5.7 |
|
| 23.8 | 18.8 | 14.9 | 12.0 |
|
| ||||||||||||
|
| Mandrill | Venus | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 78.6 | 56.9 | 40.9 | 31.0 | 21.1 | 15.7 | 109.6 | 46.5 | 33.0 | 23.8 | 17.3 | 13.8 |
| MC | 69.3 | 64.6 | 59.0 | 46.2 | 33.8 | 21.6 | 41.8 | 35.7 | 33.3 | 27.5 | 20.3 | 15.1 |
| OCT | 55.3 | 51.3 | 39.0 | 27.2 | 22.0 | 17.9 | 68.6 | 56.3 | 34.9 | 32.0 | 22.9 | 17.8 |
| KM | 46.3 | 34.9 | 30.3 | 22.5 | 18.7 | 16.8 | 43.5 | 34.3 | 25.5 | 20.8 | 17.6 | 14.7 |
| ART2 | 50.7 | 37.3 | 29.2 | 24.8 | 20.0 | 16.3 | 44.6 | 37.4 | 31.2 | 22.3 | 17.9 | 13.7 |
| SOM | 45.3 |
|
|
|
|
| 42.5 | 30.3 | 21.9 | 16.9 |
|
|
| PM |
| 34.1 |
|
| 16.8 | 13.4 |
|
|
|
|
|
|
|
| ||||||||||||
|
| Bedroom | Scream | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 102.1 | 96.5 | 56.0 | 36.1 | 27.1 | 19.0 | 59.3 | 47.3 | 29.5 | 20.9 | 14.6 | 12.3 |
| MC | 74.0 | 65.8 | 47.4 | 37.8 | 28.4 | 19.9 | 54.5 | 41.0 | 28.1 | 20.5 | 14.2 | 10.4 |
| OCT | 63.8 | 57.7 | 47.9 | 30.6 | 26.9 | 18.1 | 54.6 | 53.2 | 42.1 | 21.9 | 17.4 | 13.0 |
| KM | 53.8 | 40.2 | 33.0 | 25.9 | 21.0 | 17.3 | 33.6 | 27.8 | 24.2 | 21.7 | 15.2 | 13.0 |
| ART2 | 52.6 | 47.5 | 35.6 | 27.8 | 21.7 | 17.7 | 33.0 | 26.3 | 19.8 | 15.3 | 12.5 | 10.3 |
| SOM | 53.8 | 39.2 | 28.4 | 21.8 |
|
| 40.5 | 29.3 | 18.0 |
|
|
|
| PM |
|
|
|
|
| 13.7 |
|
|
| 13.7 | 10.7 | 8.9 |
|
| ||||||||||||
|
| Old man | Dragonfly | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 71.3 | 42.6 | 21.6 | 13.5 | 12.9 | 12.9 | 39.0 | 25.8 | 17.4 | 14.8 | 12.8 | 12.0 |
| MC | 27.9 | 19.0 | 15.2 | 11.1 | 8.8 | 6.8 | 26.9 | 22.7 | 18.1 | 13.8 | 10.9 | 8.3 |
| OCT | 51.6 | 40.2 | 17.7 | 12.0 | 9.4 | 7.0 | 40.2 | 26.9 | 22.4 | 14.3 | 13.6 | 9.0 |
| KM | 26.8 | 21.2 | 18.6 | 15.8 | 14.3 | 12.2 | 26.5 | 20.5 | 20.9 | 18.3 | 14.0 | 13.5 |
| ART2 | 38.4 | 27.9 | 20.9 | 14.6 | 11.4 | 8.5 | 26.7 | 23.2 | 18.1 | 14.7 | 11.6 | 9.3 |
| SOM | 22.5 | 15.9 |
|
|
|
| 21.4 |
|
|
|
|
|
| PM |
|
| 11.8 |
| 6.8 | 5.5 |
| 16.9 | 13.4 | 10.6 | 9.6 | 6.9 |
MSE comparison of the color quantization methods.
|
| Lenna | Parrots | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
| POP | 1296.2 | 1144.6 | 336.1 | 175.1 | 79.8 | 64.8 | 8796.1 | 5976.1 | 4102.2 | 362.6 | 179.5 | 104.1 |
| MC | 577.8 | 412.4 | 264.5 | 163.6 | 94.8 | 47.0 | 2733.2 | 1716.3 | 999.7 | 508.6 | 274.4 | 142.9 |
| OCT | 692.6 | 580.6 | 273.5 | 126.1 | 85.4 | 47.5 | 1479.2 | 915.6 | 469.9 | 244.6 | 144.7 | 85.4 |
| KM | 515.3 | 476.0 | 334.2 | 204.9 | 96.4 | 77.5 | 1083.2 | 534.2 | 390.6 | 225.3 | 150.0 | 90.7 |
| ART2 | 517.0 | 257.9 | 183.0 | 82.9 | 56.0 | 37.8 | 1085.8 | 657.3 | 353.4 | 179.7 | 105.8 | 68.0 |
| SOM | 400.6 |
|
| 67.1 |
|
| 1027.2 | 450.2 | 239.2 |
|
|
|
| PM |
| 212.1 | 121.5 |
| 43.1 | 28.9 |
|
|
| 135.6 | 81.0 | 47.9 |
|
| ||||||||||||
|
| Mona Lisa | House | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 1330.1 | 658.7 | 320.2 | 103.4 | 76.5 | 69.0 | 2758.1 | 2044.4 | 1305.1 | 844.5 | 399.1 | 175.6 |
| MC | 496.5 | 330.9 | 211.7 | 131.2 | 60.3 | 33.2 | 2407.0 | 2003.1 | 1307.8 | 674.6 | 338.8 | 211.0 |
| OCT | 536.3 | 340.3 | 155.5 | 97.4 | 61.0 | 43.3 | 1451.2 | 1058.8 | 958.5 | 370.7 | 339.3 | 151.9 |
| KM | 597.4 | 339.1 | 203.0 | 117.8 | 103.5 | 76.4 | 1040.3 | 555.7 | 381.1 | 276.0 | 190.2 | 137.3 |
| ART2 | 523.1 | 275.7 | 147.8 | 84.0 | 48.9 | 30.2 | 1137.8 | 620.0 | 481.0 | 306.3 | 189.7 | 121.6 |
| SOM | 483.0 | 204.1 | 118.2 | 60.4 | 33.7 | 20.5 | 1162.8 | 598.1 | 326.9 | 204.2 | 128.9 |
|
| PM |
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
| Mandrill | Venus | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 3878.9 | 2233.5 | 1200.6 | 740.0 | 305.7 | 151.7 | 7759.8 | 1591.6 | 899.7 | 450.8 | 208.9 | 110.4 |
| MC | 3308.9 | 3054.1 | 2614.9 | 1619.9 | 801.5 | 347.2 | 1107.6 | 884.4 | 805.7 | 577.9 | 303.0 | 179.2 |
| OCT | 1544.7 | 1358.6 | 841.2 | 379.1 | 245.6 | 153.7 | 2290.2 | 1609.3 | 600.3 | 497.9 | 286.2 | 150.6 |
| KM | 1137.8 | 647.2 | 486.3 | 266.8 | 183.4 | 147.6 | 1038.6 | 602.2 | 342.2 | 231.4 | 170.8 | 120.9 |
| ART2 | 1339.1 | 733.4 | 437.0 | 319.6 | 206.3 | 135.4 | 987.4 | 691.0 | 499.0 | 261.7 | 166.0 | 99.8 |
| SOM | 1092.9 | 627.1 | 358.3 | 222.7 |
|
| 1067.0 | 577.3 | 292.5 | 173.5 | 107.3 | 68.5 |
| PM |
|
|
|
| 149.7 | 94.0 |
|
|
|
|
|
|
|
| ||||||||||||
|
| Bedroom | Scream | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 8107.1 | 7826.4 | 2374.7 | 1061.7 | 601.6 | 268.8 | 2609.4 | 1859.9 | 774.7 | 375.1 | 128.4 | 71.8 |
| MC | 3429.1 | 2859.7 | 1682.0 | 1121.3 | 659.6 | 314.7 | 1723.1 | 1149.2 | 501.3 | 277.6 | 133.1 | 72.8 |
| OCT | 2062.4 | 1753.1 | 1198.1 | 480.0 | 379.3 | 159.1 | 1528.1 | 1474.5 | 1054.3 | 256.5 | 170.2 | 85.8 |
| KM | 1554.1 | 868.5 | 588.0 | 361.6 | 232.8 | 156.9 | 613.1 | 404.6 | 312.0 | 246.7 | 124.1 | 88.7 |
| ART2 | 1465.0 | 1152.9 | 647.0 | 400.9 | 245.9 | 158.8 | 581.6 | 356.3 | 204.9 | 121.3 | 80.7 | 54.2 |
| SOM | 1591.2 | 864.1 | 437.7 | 258.5 | 161.0 | 102.4 | 936.6 | 491.3 | 177.4 | 102.5 | 63.0 |
|
| PM |
|
|
|
|
|
|
|
|
|
|
| 42.7 |
|
| ||||||||||||
|
| Old man | Dragonfly | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 3643.5 | 1551.8 | 342.2 | 88.3 | 78.7 | 77.9 | 1427.9 | 512.6 | 230.4 | 157.5 | 97.4 | 66.4 |
| MC | 522.2 | 216.7 | 138.5 | 80.4 | 50.6 | 26.1 | 449.2 | 330.3 | 234.7 | 161.5 | 104.7 | 59.2 |
| OCT | 1432.0 | 764.2 | 178.3 | 75.5 | 46.1 | 25.4 | 990.4 | 386.9 | 264.2 | 105.8 | 95.2 | 40.8 |
| KM | 386.5 | 245.3 | 194.0 | 138.6 | 115.9 | 79.6 | 387.1 | 235.7 | 239.7 | 183.8 | 108.4 | 99.2 |
| ART2 | 715.5 | 388.4 | 245.1 | 115.6 | 69.9 | 38.0 | 390.7 | 287.4 | 175.1 | 113.3 | 69.7 | 44.5 |
| SOM | 270.7 | 138.5 |
|
|
|
| 271.4 |
|
|
|
|
|
| PM |
|
| 78.5 | 41.2 | 25.1 | 16.3 |
| 171.6 | 103.1 | 63.2 | 50.1 | 26.6 |
Processing time (ms) comparison of the color quantization methods.
|
| Lenna | Parrots | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
| POP | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 3 | 3 | 4 | 4 | 6 |
| MC | 3 | 2 | 2 | 2 | 2 | 3 | 3 | 3 | 4 | 3 | 4 | 4 |
| OCT | 6 | 6 | 7 | 7 | 8 | 8 | 9 | 11 | 10 | 12 | 12 | 13 |
| KM | 46 | 63 | 97 | 87 | 170 | 323 | 65 | 84 | 124 | 207 | 527 | 665 |
| ART2 | 31 | 46 | 107 | 88 | 300 | 621 | 68 | 102 | 190 | 360 | 520 | 1001 |
| SOM | 93 | 107 | 139 | 213 | 333 | 548 | 148 | 160 | 207 | 311 | 471 | 825 |
| PM | 73 | 79 | 97 | 147 | 302 | 387 | 116 | 131 | 162 | 214 | 330 | 581 |
|
| ||||||||||||
|
| Mona Lisa | House | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 21 | 19 | 28 | 23 | 21 | 23 | 11 | 11 | 11 | 11 | 12 | 16 |
| MC | 23 | 21 | 20 | 21 | 21 | 23 | 12 | 12 | 12 | 12 | 11 | 12 |
| OCT | 56 | 58 | 65 | 66 | 74 | 75 | 30 | 29 | 32 | 33 | 35 | 44 |
| KM | 321 | 646 | 778 | 1179 | 2246 | 2074 | 268 | 337 | 540 | 753 | 1150 | 2192 |
| ART2 | 300 | 457 | 524 | 765 | 1462 | 6121 | 406 | 676 | 896 | 1930 | 3833 | 7722 |
| SOM | 863 | 938 | 1347 | 1678 | 2848 | 4621 | 485 | 681 | 754 | 1157 | 1791 | 2814 |
| PM | 612 | 708 | 896 | 1260 | 1979 | 3213 | 359 | 514 | 530 | 721 | 1135 | 1904 |
|
| ||||||||||||
|
| Mandrill | Venus | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 2 | 2 | 3 | 3 | 3 | 5 | 18 | 18 | 20 | 20 | 19 | 22 |
| MC | 2 | 3 | 3 | 3 | 3 | 3 | 18 | 18 | 20 | 20 | 18 | 20 |
| OCT | 5 | 6 | 6 | 7 | 7 | 8 | 50 | 49 | 57 | 58 | 58 | 58 |
| KM | 46 | 66 | 96 | 134 | 230 | 441 | 455 | 487 | 740 | 1133 | 2065 | 3458 |
| ART2 | 62 | 91 | 201 | 408 | 696 | 1428 | 631 | 760 | 1503 | 3408 | 6930 | 15597 |
| SOM | 108 | 130 | 156 | 220 | 467 | 593 | 953 | 985 | 1286 | 1839 | 3239 | 4898 |
| PM | 73 | 83 | 104 | 153 | 332 | 395 | 623 | 755 | 904 | 1246 | 1920 | 3325 |
|
| ||||||||||||
|
| Bedroom | Scream | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 12 | 12 | 20 | 11 | 11 | 14 | 10 | 11 | 11 | 20 | 14 | 13 |
| MC | 10 | 13 | 12 | 11 | 13 | 13 | 13 | 18 | 13 | 13 | 12 | 12 |
| OCT | 28 | 28 | 30 | 31 | 33 | 66 | 32 | 31 | 34 | 38 | 37 | 42 |
| KM | 231 | 295 | 431 | 685 | 1159 | 2346 | 261 | 341 | 440 | 701 | 1183 | 1975 |
| ART2 | 338 | 653 | 989 | 2183 | 4517 | 9675 | 179 | 210 | 624 | 1086 | 2026 | 4287 |
| SOM | 520 | 825 | 979 | 1103 | 1779 | 2944 | 477 | 688 | 740 | 1169 | 1700 | 3024 |
| PM | 349 | 549 | 515 | 726 | 1139 | 2063 | 413 | 633 | 525 | 841 | 1214 | 2054 |
|
| ||||||||||||
|
| Old man | Dragonfly | ||||||||||
| 8 | 16 | 32 | 64 | 128 | 256 | 8 | 16 | 32 | 64 | 128 | 256 | |
|
| ||||||||||||
| POP | 1 | 1 | 1 | 1 | 2 | 2 | 3 | 1 | 1 | 2 | 2 | 2 |
| MC | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 |
| OCT | 3 | 3 | 4 | 4 | 5 | 5 | 3 | 4 | 4 | 4 | 4 | 5 |
| KM | 19 | 26 | 41 | 39 | 56 | 72 | 19 | 27 | 44 | 68 | 119 | 163 |
| ART2 | 14 | 16 | 19 | 29 | 43 | 76 | 16 | 19 | 27 | 40 | 72 | 259 |
| SOM | 37 | 46 | 78 | 100 | 155 | 257 | 37 | 47 | 64 | 100 | 162 | 277 |
| PM | 33 | 37 | 52 | 73 | 109 | 195 | 30 | 34 | 47 | 69 | 136 | 194 |
Figure 6Average MAE, MSE, PSNR, and processing time of each method.
Figure 7Resulting images from the color quantization methods (K = 16).