Skip to content

bobolee1239/clusterColors_GMM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Cluster Colors of Picture

Description

  • Using Kmeans to find the means of GMM (Gaussian Mixture Model) to cluster colors in a picture, then run GMM algorithm to achieve our goal. If you want, you can save the result as a JPEG file.

  • Results:

    1. original image:

    Origin Image

    2. GMM for 3 clusters:

    GMM_3

    3. GMM for 5 clusters:

    GMM_5

    4. GMM for 20 clusters:

    GMM_20

Solving Other Clustering Problems

  • If you like to use this structure to deal another cluster problem, you can customize your class to represent your point in GMM process. Just inheriant the class Point in $ ./src/Kmeans.py

Things to take care while doing GMM

  • If members in a cluster is too dense, the covariance matrix would become extremely singular. Therefore, we should add some isotropic noise into covariance matrix to prevent singularity and make the model robust to noise.

About

Using GMM to cluster colors in a picture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages