Code covered by the BSD License  

Highlights from
K Means Algorithm with the application to image compression

Be the first to rate this file! 29 Downloads (last 30 days) File Size: 1.2 MB File ID: #42829

K Means Algorithm with the application to image compression

by Jason Rebello

 

25 Jul 2013

This program uses the K means clustering algorithm to group the pixels in an image

| Watch this File

File Information
Description

- 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.

MATLAB release MATLAB 7.14 (R2012a)
Tags for This File  
Everyone's Tags
clustering, computer vision, image compression, image processing, k means, machine learning, unsupervised learning
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
25 Jul 2013 Jason Rebello

hey guys, let me know what you think of the code, if there is anything you like about it or improvements that can be made to it. Thanks

Contact us