ImageSegmentation
To run :
- Git clone repo
git https://github.com/leakkari/ImageSegmentation.git
- Compile project
gcc kmeans_tst.c
- 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.
- Plot Segmented Image and Cluster
python3 plot
The plots are saved in the /Plots Directory.