/ImageSeg-KMeans

💠 Image Segmentation using K-Means

Primary LanguagePython

Image Segmentation using k-means clustering

The program reads in an image, segments it using K-Means clustering and outputs the segmented image.

python imageSegmentation.py K inputImageFilename outputImageFilename

It is worth playing with the number of iterations, low numbers will run quicker.

The result is an over-segmented image. With the correct parameters, it can be used to partition an image for further processing. Here is an example of that: Make3D

Output

Burma Burma

Duomo Duoma

tunnel tunnel