Computer Engineering and Applications ›› 2019, Vol. 55 ›› Issue (12): 188-193.DOI: 10.3778/j.issn.1002-8331.1811-0024
Previous Articles Next Articles
WU Jian, DENG Mengwei, MIAO Jianqun
Online:
Published:
伍 健,邓梦薇,缪建群
Abstract: Focusing on the issue that [K]-Means costs lots of CPU time when reducing colors, a fast [K]-Means method accelerated by the mean quantization error vectors for color reduction is proposed. In this method, a palette is generated randomly with [K] colors as initialization firstly, and then a quantized version is obtained by the color table. According to the mean quantization error vectors between the current quantized version and the input image, a better color table is evolved. Through several iterations of updating, the evolving process converge to the last color table, correspondingly, the final quantized image by the palette is obtained. Experimental results show that the accelerated algorithm can speed up to 70-150 times as much as the [K]-Means used to, meanwhile, the quality of quantization is kept.
Key words: color quantization, [K]-means, mean quantization error vector, acceleration, palette
摘要: 针对[K]-Means色彩量化方法在运行时间上过于冗长的问题,提出一种用平均误差向量加速的色彩量化方法。随机生成[K]种色彩作为初始的调色盘,用该调色盘对欲量化的图像进行一次量化。根据量化后的版本,计算其每个颜色分量的量化误差,获得平均误差向量。用该平均误差向量对调色盘进行更新,获得另一更优的调色盘。通过若干次迭代运算,获得最终收敛的调色盘,并用该调色盘进行最后的色彩量化。实验结果表明,该加速算法能对[K]-Means量化方法平均加速70~150倍,同时,原有[K]-Means方法的量化效果还得到了保持。
关键词: 色彩量化, [K]-Means, 平均误差向量, 加速, 调色盘
WU Jian, DENG Mengwei, MIAO Jianqun. Fast [K]-Means Color Quantization Method of Mean Quantization Error Vector[J]. Computer Engineering and Applications, 2019, 55(12): 188-193.
伍 健,邓梦薇,缪建群. 平均误差向量加速的[K]-Means色彩量化方法[J]. 计算机工程与应用, 2019, 55(12): 188-193.
0 / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://cea.ceaj.org/EN/10.3778/j.issn.1002-8331.1811-0024
http://cea.ceaj.org/EN/Y2019/V55/I12/188