给出了一个利用K-means算法进行迭代聚类,并以聚类结果建立彩色图像调色板的算法。该算法在统计图像中各种颜色的RGB组合值出现次数的基础上,以聚类得到的256种颜色建立调色板,从而将BMP格式图像转换成GIF格式。实验表明,这种转换的色彩失真较小。%Gives a algorithm which uses K-means algorithm to iterate and cluster, and uses the clustering results to build up color image palette. The algorithm based on the statistic of the appearing times of all colors RGB combination value, uses the 256 color from cluster to build up palette, and tranforms the BMP format-pattern into GIF formate. The experiments show that the transform has less color distortion.
展开▼