PascalDierich/image-clustering

K-Means Clustering for images based on pixel color

★ 0Forks 0GoGitHub ↗Compare
golangimage-segmentationk-means-clustering

README

Image-Clustering

The image-clustering program partitions the pixels in an image based on their color to a pre-defined number of clusters.

Usage:
  -in string
        Path to input image
  -k int
        Number of cluster (default 10)
  -out string
        Path to save clustered image (default "${HOME}/img_clustered.png")

Examples:

original

img4

k = 5

img4_c5

k = 100

img4_c100

k = 500

img4_c500

Contributors

PascalDierich

Issues