1.Put the pictures at same directory as where the KMeans.java is. If you put it somewhere else, you need to specity the full directory later on.
2.Compile the code using javac KMeans.java
3.Run the compiled binary using KMeans . No arrow brackets, just parameters, seperated by spaces.
4.Here we go.
Original and K = 20
K = 15 and K = 10
K = 5 and K = 2
Original and K = 20
K = 15 and K = 10
K = 5 and K = 2
-
Notifications
You must be signed in to change notification settings - Fork 0
frank777777777/KMeans-Image-Compressor
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Compresses image RGB, to reduce the color depth in order to save space
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published