Download the code and compile, run the K-means.java file.
Following are the outcomes for different values of K after running the algorithm on different images:
Image: Koala.jpg
Original size: 762.53 KB
Compressed size: 152.5 KB, for K = 20
Image: Penguins.jpg
Original size: 759.60 KB
Compressed size: 117.26 KB, for K = 20