English

Optimized $k$-means color quantization of digital images in machine-based and human perception-based colorspaces

Image and Video Processing 2026-05-25 v2 Computer Vision and Pattern Recognition Applications

Abstract

Color quantization represents an image using a fraction of its original number of colors while only minimally losing its visual quality. The kk-means algorithm is commonly used in this context, but has mostly been applied in the machine-based RGB colorspace composed of the three primary colors. However, some recent studies have indicated its improved performance in human perception-based colorspaces. We investigated the performance of kk-means color quantization at four quantization levels in the RGB, CIE-XYZ, and CIE-LUV/CIE-HCL colorspaces, on 148 varied digital images spanning a wide range of scenes, subjects and settings. The Visual Information Fidelity (VIF) measure numerically assessed the quality of the quantized images, and showed that in about half of the cases, kk-means color quantization is best in the RGB space, while at other times, and especially for higher quantization levels (kk), the CIE-XYZ colorspace is where it usually does better. There are also some cases, especially at lower kk, where the best performance is obtained in the CIE-LUV colorspace. Further analysis of the performances in terms of the distributions of the hue, chromaticity and luminance in an image presents a nuanced perspective and characterization of the images for which each colorspace is better for kk-means color quantization.

Keywords

Cite

@article{arxiv.2601.19117,
  title  = {Optimized $k$-means color quantization of digital images in machine-based and human perception-based colorspaces},
  author = {Ranjan Maitra},
  journal= {arXiv preprint arXiv:2601.19117},
  year   = {2026}
}

Comments

25 pages, 11 figures, 5 tables, accepted in the Journal of Electronic Imaging

R2 v1 2026-07-01T09:21:30.531Z