/ImageSegmentation

Image Segmentation using K-means

Primary LanguageC

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.