An effective real-time color quantization method based on divisive hierarchical clustering

Color quantization (CQ) is an important operation with many applications in graphics and image processing. Clustering algorithms have been extensively applied to this problem. In this paper, we propose a simple yet effective CQ method based on divisive hierarchical clustering. Our method utilizes the commonly used binary splitting strategy along with several carefully selected heuristics that ensure a good balance between effectiveness and efficiency. We also propose a slightly computationally expensive variant of this method that employs local optimization using the Lloyd–Max algorithm. Experiments on a diverse set of publicly available images demonstrate that the proposed method outperforms some of the most popular quantizers in the literature.

[1]  J. H. Ward Hierarchical Grouping to Optimize an Objective Function , 1963 .

[2]  Lale Akarun,et al.  A fuzzy algorithm for color quantization of images , 2002, Pattern Recognit..

[3]  Surapong Auwatanamongkol,et al.  Color image quantization using distances between adjacent colors along the color axis with highest color variance , 2004, Pattern Recognit. Lett..

[4]  Anthony H. Dekker,et al.  Kohonen neural networks for optimal colour quantization , 1994 .

[5]  Quan Wen,et al.  Hard versus fuzzy c-means clustering for color quantization , 2011, EURASIP J. Adv. Signal Process..

[6]  M. Emre Celebi,et al.  Improving the performance of k-means for color quantization , 2011, Image Vis. Comput..

[7]  C.J.H. Mann,et al.  Handbook of Approximation: Algorithms and Metaheuristics , 2008 .

[8]  Ja-Chen Lin,et al.  RWM-cut for color image quantization , 1996, Comput. Graph..

[9]  Masayuki Okamoto,et al.  Color quantization using the fast K-means algorithm , 2000, Systems and Computers in Japan.

[10]  Naftaly Goldberg,et al.  Colour image quantization for high resolution graphics display , 1991, Image Vis. Comput..

[11]  Gregory Joy,et al.  Color image quantization by agglomerative clustering , 1994, IEEE Computer Graphics and Applications.

[12]  Xin-She Yang,et al.  Introduction to Algorithms , 2021, Nature-Inspired Optimization Algorithms.

[13]  Ronald L. Rivest,et al.  Introduction to Algorithms, third edition , 2009 .

[14]  Chok-Ki Chan,et al.  A fast method of designing better codebooks for image vector quantization , 1994, IEEE Trans. Commun..

[15]  Ruey-Feng Chang,et al.  A Fast Finite-State Algorithm for Generating RGB Palettes of Color Quantized Images , 2004, J. Inf. Sci. Eng..

[16]  M. Emre Celebi,et al.  An Effective Color Quantization Method Based on the Competitive Learning Paradigm , 2009, IPCV.

[17]  Kuo-Chin Fan,et al.  An adaptive clustering algorithm for color quantization , 2000, Pattern Recognit. Lett..

[18]  Zhou Bing,et al.  An adjustable algorithm for color quantization , 2004, Pattern Recognit. Lett..

[19]  Chip-Hong Chang,et al.  New adaptive color quantization method based on self-organizing maps , 2005, IEEE Transactions on Neural Networks.

[20]  Joel H. Saltz,et al.  Histopathological Image Analysis Using Model-Based Intermediate Representations and Color Texture: Follicular Lymphoma Grading , 2009, J. Signal Process. Syst..

[21]  Jan P. Allebach,et al.  New approach to palette selection for color images , 1991, Electronic Imaging.

[22]  S. P. Lloyd,et al.  Least squares quantization in PCM , 1982, IEEE Trans. Inf. Theory.

[23]  R. M. Natal Jorge,et al.  Computational Vision and Medical Image Processing - Recent Trends , 2011 .

[24]  Doheon Lee,et al.  A novel initialization scheme for the fuzzy c-means algorithm for color clustering , 2004, Pattern Recognit. Lett..

[25]  Michael A. Arbib,et al.  An algorithm for competitive learning in clustering problems , 1994, Pattern Recognit..

[26]  Yu-Chen Hu,et al.  Accelerated pixel mapping scheme for colour image quantisation , 2008 .

[27]  B. S. Manjunath,et al.  An efficient color representation for image retrieval , 2001, IEEE Trans. Image Process..

[28]  Xiaolin Wu,et al.  EFFICIENT STATISTICAL COMPUTATIONS FOR OPTIMAL COLOR QUANTIZATION , 1991 .

[29]  Michael Gervautz,et al.  A simple method for color quantization: octree quantization , 1990 .

[30]  Luiz Velho,et al.  Color image quantization by pairwise clustering , 1997, Proceedings X Brazilian Symposium on Computer Graphics and Image Processing.

[31]  Mariusz Frackiewicz,et al.  KM and KHM Clustering Techniques for Colour Image Quantisation , 2011 .

[32]  Yu-Chen Hu,et al.  K-means-based color palette design scheme with the use of stable flags , 2007, J. Electronic Imaging.

[33]  Gerald Schaefer Intelligent Approaches to Colour Palette Design , 2011 .

[34]  Nasser Sherkat,et al.  Use of colour for hand-filled form analysis and recognition , 2005, Pattern Analysis and Applications.

[35]  Oleg. Verevka The local K-means algorithm for colour image quantization , 1995 .

[36]  Joel Max,et al.  Quantizing for minimum distortion , 1960, IRE Trans. Inf. Theory.

[37]  Ronald S. Gentile,et al.  Quantization of color images based on uniform color spaces , 1990 .

[38]  Paul Scheunders,et al.  A comparison of clustering algorithms applied to color image quantization , 1997, Pattern Recognit. Lett..

[39]  P. Prusinkiewicz,et al.  Variance‐based color image quantization for frame buffer display , 1990 .

[40]  Zhigang Xiang,et al.  Color image quantization by minimizing the maximum intercluster distance , 1997, TOGS.

[41]  Andrew Chi-Sing Leung,et al.  Self-organizing map-based color palette for high-dynamic range texture compression , 2011, Neural Computing and Applications.

[42]  William Equitz,et al.  A new vector quantization clustering algorithm , 1989, IEEE Trans. Acoust. Speech Signal Process..

[43]  Wen-Hsiang Tsai,et al.  Color image compression using quantization, thresholding, and edge detection techniques all based on the moment-preserving principle , 1998, Pattern Recognit. Lett..

[44]  Przemyslaw Prusinkiewicz,et al.  An algorithm for multidimensional data clustering , 1988, TOMS.

[45]  Bunyarit Uyyanonvara,et al.  Novel fast color reduction algorithm for time-constrained applications , 2005, J. Vis. Commun. Image Represent..

[46]  Jon Louis Bentley,et al.  Multidimensional binary search trees used for associative searching , 1975, CACM.

[47]  Jakub Marecek,et al.  Handbook of Approximation Algorithms and Metaheuristics , 2010, Comput. J..

[48]  Alain Trémeau,et al.  Color Quantization , 2008, Encyclopedia of Multimedia.

[49]  Shyi-Chyi Cheng,et al.  Fusion of color edge detection and color quantization for color image watermarking using principal axes analysis , 2007, Pattern Recognit..

[50]  Abbas Vafaei,et al.  Color reduction using a multi-stage Kohonen Self-Organizing Map with redundant features , 2011, Expert Syst. Appl..

[51]  Anil K. Jain,et al.  Data clustering: a review , 1999, CSUR.

[52]  Shyi-Chyi Cheng,et al.  A fast and novel technique for color quantization using reduction of color space dimensionality , 2001, Pattern Recognit. Lett..

[53]  Gerald Schaefer,et al.  Fuzzy clustering for colour reduction in images , 2009, Telecommun. Syst..

[54]  Charalambos Strouthopoulos,et al.  Adaptive color reduction , 2002, IEEE Trans. Syst. Man Cybern. Part B.

[55]  Paul S. Heckbert Color image quantization for frame buffer display , 1982, SIGGRAPH.

[56]  Gerald Schaefer,et al.  Neural Gas Clustering For Color Reduction , 2010, IPCV.

[57]  Aleksandra Mojsilovic,et al.  Color Quantization and Processing by Fibonacci Lattices , 2022 .

[58]  K. C. Lo,et al.  Colour quantization by three-dimensional frequency diffusion , 2003, Pattern Recognit. Lett..

[59]  Michael T. Orchard,et al.  Color quantization of images , 1991, IEEE Trans. Signal Process..

[60]  Bing-Hwang Su,et al.  Accelerated k-means clustering algorithm for colour image quantization , 2008 .

[61]  Enhua Wu,et al.  Real-time coherent stylization for augmented reality , 2010, The Visual Computer.

[62]  Gregory Joy,et al.  Center-cut for color-image quantization , 2005, The Visual Computer.

[63]  B. S. Manjunath,et al.  Unsupervised Segmentation of Color-Texture Regions in Images and Video , 2001, IEEE Trans. Pattern Anal. Mach. Intell..

[64]  Kuo-Liang Chung,et al.  Speedup of color palette indexing in self-organization of Kohonen feature map , 2009, Expert Syst. Appl..

[65]  A. Ersak,et al.  A fuzzy colour quantizer for renderers , 1998 .