Skip to content

leakkari/ImageSegmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageSegmentation

To run :

  1. Git clone repo
git https://github.com/leakkari/ImageSegmentation.git
  1. Compile project
gcc kmeans_tst.c 
  1. Run k-means on the image
./a.out

This runs k-means on the image "image2.jpg", and saves the output of the k-means algorithm in "data.txt". To plot the segmented image we use the a python script.

  1. Plot Segmented Image and Cluster
python3 plot

The plots are saved in the /Plots Directory.