Skip to content

vibhor98/Image-Compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image-Compressor

This is an Image Compression example using K-Means Clustering algorithm. Read more about it on Wikipedia. The input image is read as a three-dimensional matrix whose first two indices identify the pixel position and whose last index represents Red, Green or Blue color values. After finding the top K colors to represent the image, each pixel position is assigned to its closest centroid. This allows to represent the original image using the centroid assignments of each pixel. In this way, the number of bits that are required to describe the image is reduced significantly and we get the resultant compressed image.

Please have a look at the article here for detailed explaination.

These are few examples of compressed images-

comp_bird

compressed

About

An Image Compression example using K-Means Clustering algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages