An image compression program which compresses images by color quantization. Color quantization means reducing the color space.
I have implemented this by using KMeans - an unsupervised machine learning algorithm.
If you want to use it
-
Install opencv
-
Clone the repository. After cloning the repository make the files using the command cmake .
-
Then use make to compile the program.
-
After this implement the code using ./imageCompress <compress/decompress> <image file/text file>
Note: This does not work on jpeg images since it uses a lossy compression algorithm. It works on .png and .bmp.