Multilevel algorithm for color clustering of images
https://doi.org/10.29235/1561-8323-2021-65-3-269-274
Abstract
The fast multilevel algorithm to cluster color images (MACC – Multilevel Algorithm for Color Clustering) is presented. Currently, several well-known algorithms of image clustering, including the k‑means algorithm (which is one of the most commonly used in data mining) and its fuzzy versions, watershed, region growing ones, as well as a number of new more complex neural network and other algorithms are actively used for image processing. However, they cannot be applied for clustering large color images in real time. Fast clustering is required, for example, to process frames of video streams shot by various video cameras or when working with large image databases. The developed algorithm MACC allows the clustering of large images, for example, FullHD size, on a personal computer with an average deviation from the original color values of about five units in less than 20 milliseconds, while a parallel version of the classical k‑means algorithm performs the clustering of the same images with an average error of more than 12 units for a time exceeding 2 seconds. The proposed algorithm of multilevel color clustering of images is quite simple to implement. It has been extensively tested on a large number of color images.
About the Author
B. A. ZaleskyBelarus
Zalesky Boris A. – D. Sc. (Physics and Mathematics), Head of the Laboratory
6, Surganov Str., 220012, Minsk, Republic of Belarus
References
1. Steinhaus H. Sur la division des corps materiels en parties. Bulletin L’Académie Polonaise des Science, 1956, vol. 4, no. 12, pp. 801–804.
2. Lloyd S. Least squares quantization in PCM. IEEE Transactions on Information Theory, 1982, vol. 28, no. 2, pp. 129–137. https://doi.org/10.1109/tit.1982.1056489
3. Bezdek J. C. Pattern Recognition with Fuzzy Objective Function Algoritms. MA, USA, 1981. 256 p. https://doi.org/10.1007/978-1-4757-0450-1
4. Bo Yang, Xiao Fu, Sidiropoulos N. D., Mingyi Hong. Towards K-means-friendly spaces: simultaneous deep learning and clustering. ICML’17: Proceedings of the 34th International Conference on Machine Learning, 2017, vol. 70, pp. 3861–3870.
5. Bing He, FengXiang Qiao, Weijun Chen, Ying Wen. Fully convolution neural network combined with K-means clustering algorithm for image segmentation. Tenth International Conference on Digital Image Processing (ICDIP 2018), 2018, vol. 10806. https://doi.org/10.1117/12.2502814
6. Junru Wu, Yue Wang, Zhenyu Wu, Zhangyang Wang, Ashok Veeraraghavan, Yingyan Lin. Deep k-Means: Re- Training and Parameter Sharing with Harder Cluster Assignments for Compressing Deep Convolutions. Proceedings of the 35th International Conference on Machine Learning, PMLR, 2018, vol. 80, pp. 5363–5372.
7. Gonzales R. C., Woods R. E. Digital Image Processing. Forth Edition. Pearson/Prentice-Hall, 2018. 1192 p.
8. Zalesky B. A. Method fuzzy clustering k-means with smoothing penalty function. Informatika = Informatics, 2014, no. 3, pp. 14–20 (in Russian).
9. Image Clustering. 2018. Available at: https://paperswithcode.com/task/image-clustering (accessed 12 April 2021).
10. Zalesky B. A. Object tracking algorithm by moving camera. Doklady Natsional’noi akademii nauk Belarusi = Doklady of the National Academy of Sciences of Belarus, 2020, vol. 64, no. 2, pp. 144–149 (in Russian). https://doi.org/10.29235/1561-8323-2020-64-2-144-149