-
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:
2. GMM for 3 clusters:
3. GMM for 5 clusters:
4. GMM for 20 clusters:
- 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
- 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.