Table of Contents
Fetching ...

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

Ranjan Maitra

TL;DR

This work investigates whether color quantization via $k$-means should be performed in machine-based RGB or human perception-based XYZ/LUV (HCL) spaces. It conducts a large-scale evaluation on $148$ diverse digital images across multiple quantization levels using Visual Information Fidelity (VIF) as a perceptual metric, and it couples this with detailed hue, chromaticity, and luminance distribution descriptors analyzed by circular and linear statistics. The authors employ multivariate regression trees (MVRT) and multivariate random forests (MVRF) to relate image-descriptor features to cross-space performance, finding that RGB is best in about half the cases, XYZ dominates at higher $k$, and LUV offers benefits for some low-$k$ cases; these findings are interpreted via data-driven rules linking image characteristics to colorspace choice. The results provide practical guidance for color quantization and contribute a richly described image dataset with distributional descriptors to support future work on perceptual color processing and color-space selection.

Abstract

Color quantization represents an image using a fraction of its original number of colors while only minimally losing its visual quality. The $k$-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 $k$-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, $k$-means color quantization is best in the RGB space, while at other times, and especially for higher quantization levels ($k$), the CIE-XYZ colorspace is where it usually does better. There are also some cases, especially at lower $k$, 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 $k$-means color quantization.

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

TL;DR

This work investigates whether color quantization via -means should be performed in machine-based RGB or human perception-based XYZ/LUV (HCL) spaces. It conducts a large-scale evaluation on diverse digital images across multiple quantization levels using Visual Information Fidelity (VIF) as a perceptual metric, and it couples this with detailed hue, chromaticity, and luminance distribution descriptors analyzed by circular and linear statistics. The authors employ multivariate regression trees (MVRT) and multivariate random forests (MVRF) to relate image-descriptor features to cross-space performance, finding that RGB is best in about half the cases, XYZ dominates at higher , and LUV offers benefits for some low- cases; these findings are interpreted via data-driven rules linking image characteristics to colorspace choice. The results provide practical guidance for color quantization and contribute a richly described image dataset with distributional descriptors to support future work on perceptual color processing and color-space selection.

Abstract

Color quantization represents an image using a fraction of its original number of colors while only minimally losing its visual quality. The -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 -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, -means color quantization is best in the RGB space, while at other times, and especially for higher quantization levels (), the CIE-XYZ colorspace is where it usually does better. There are also some cases, especially at lower , 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 -means color quantization.
Paper Structure (22 sections, 16 equations, 11 figures, 5 tables)

This paper contains 22 sections, 16 equations, 11 figures, 5 tables.

Figures (11)

  • Figure 1: Distributions of the hue, chromaticity and luminance in each image used in our study. The distributions are displayed by means of grouped circular boxplots (for hue) and linear boxplots for chromaticity and luminance. The distributions, and the brightness of the colors in the display are ordered from inside out, and left-to-right in order of number of image pixels. The orange, green and purple palettes represent the distributions for the images where 64-means color quantization did best using RGB, XYZ and LUV colorspaces, respectively.
  • Figure 2: The mean, standard deviation, skewness and kurtosis of the distribution of the hue, chromaticity and luminance in each image. Since hue is an angular measure, its characteristics are in terms of the angle-derived quantities of mean direction $\hat{\mu}^\circ_H$, circular standard deviation $\hat{\sigma}^\circ_H$, circular skewness $\hat{\zeta}^\circ_H$, and circular kurtosis $\hat{\kappa}^\circ_H$ while chromaticity and luminance are in terms of linear descriptions given by (linear) means $\hat{\mu}_C$ and $\hat{\mu}_L$, standard deviations $\hat{\sigma}_C$ and $\hat{\sigma}_L$, skewnesses $\hat{\zeta}_C$ and $\hat{\zeta}_L$, and kurtosis measures $\hat{\kappa}_C$ and $\hat{\kappa}_L$.
  • Figure 3: Our showcase images: a modestly-sized image (top left: statlab, of $930{\times}1789$ pixels), two moderate-sized images (top center: rosehibiscus, with $1536{\times}2048$ pixels, and top right: eclipse, having $2658{\times}3547$ pixels) and a fairly large image (bottom: congress containing $5433{\times}7240$ pixels).
  • Figure 4: Results from $k$-means color quantization of the statlab image. For each colorspace, the images are better resolved without increasing $k$. The optimized XYZ colorspace is the best for all $k$ for this image.
  • Figure 5: The $k$-means color quantized rosehibiscus images in the RGB (top row), XYZ (middle row), and LUV (bottom row) spaces, for $k\in \{8,16,32,64\}$ (from left to right).
  • ...and 6 more figures