Skip to content

saeidtafazzol/EM-clustering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EM-clustering

clustering algorithm in order to compress images

In this project, I implemented expectation maximization algorithm on images.Required packages and a simple tutorial to run the code are discussed in the following lines:

To implement this project I used armadillo and opencv libraries.

How to install opencv: here

How to install armadillo: here

If the libraries are installed compile and run the project:

make
./em

As you can see there is a sample picture "Lenna.png" in the project which is obviously the target picture for em

to modify the clustering you should open main.cpp and change the following code:

EM("Lenna.png",2).execute();

the first argument is the path to the image you want to cluster and the second argument is the number of clusters

Good Luck,

About

clustering algorithm in order to compress images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published