Fabric Image Layering Based on Parallel K-means

Lei Wang,Wei Zhao,Tong Sang,Zeng Zeng,Yangfan Li
DOI: https://doi.org/10.1109/HPCC-DSS-SmartCity-DependSys57074.2022.00193
2022-12-01
Abstract:K-means is a commonly used image layering algorithm. Since the K-means algorithm needs to calculate the Euclidean distance between data points, the computational complexity is high and the time consumption is large, which is difficult to meet the needs of industrial production. Therefore, it is very important to accelerate K-means. Many calculations in the K-means algorithm are independent, andCUDA can solve this problem better. This paper proposes a stream-based K-means parallel algorithm, which can not only realize the parallel calculation inside K-means, but also realize the search of multiple $K$ at the same time. Besides, according to the image data and the Euclidean distance calculation mechanism, a simple size penalty coefficient with extremely low computational complexity is proposed to select the $K$ value. Experiments show that the CUDA K-means method proposed in this paper is 27 times higher than that of CPU K-means, and the proposed penalty coefficient can find the inflection point in the loss of multiple $K$ values.
Computer Science
What problem does this paper attempt to address?