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")