Matlab-KMeans The Kmeans.m file performs the K-means algorithm based on random initial seeds for RGB color space. The output of the K-means fucntion: To perform you own visualisation of the above result, run the Main.m file. Replace the image path at line 6 & 7 with your own images. You can also call the Kmeans function from Kmeans.m file for your own programs