You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
- K means algorithm is performed with different initial centroids in order to get the best clustering.
- The total cost is calculated by summing the distance of each point to its cluster centre and then summing over all the clusters.
- Based on the minimum overall cost achieved during each iteration of 'iterKMeans' the pixel assignment to their respective clusters are made and final compressed image is obtained.
- This algorithm will run slower as the number of clusters , size of the image and number of iterations increase.
Cite As
Jason Rebello (2026). K Means Algorithm with the application to image compression (https://uk.mathworks.com/matlabcentral/fileexchange/42829-k-means-algorithm-with-the-application-to-image-compression), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.2 MB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
