Skip to content

School project for color segmentation on jpg and png images.

Notifications You must be signed in to change notification settings

YannickGibson/K-Means-Image-Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-Means-Image-Filter

Color segmentation for images

Input

Result

K=3

K=7

Code

Note: img.show() will display the image by your default image viewing program.

from filter import k_means

img = k_means("originals/balls.jpg", k=4)
img.show()

Saving

img.save("example/destination")

About

School project for color segmentation on jpg and png images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages