项目作者: PascalDierich

项目描述 :
K-Means Clustering for images based on pixel color
高级语言: Go
项目地址: git://github.com/PascalDierich/image-clustering.git
创建时间: 2018-07-14T20:13:58Z
项目社区:https://github.com/PascalDierich/image-clustering

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Image-Clustering

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

  1. Usage:
  2. -in string
  3. Path to input image
  4. -k int
  5. Number of cluster (default 10)
  6. -out string
  7. 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