Skip to content

Implementing the K-Means Algorithm for Image-segmentation and to build a Class_classifier for Linearly separable and non-linearly separable 2D Data.

License

Notifications You must be signed in to change notification settings

npav5057/K-Means-Clustering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-segmentation using K-Means Algorithm

Implementation of K-Means Algorithm for Image-segmentation and Compression as well as Class-Classifier for Linierly and non-linierly separable 2D Data.

Dependencies

Python3
pip install opencv-python
pip install numpy
pip install Pillow
pip install matplotlib

Image

The input Image is ![](./Image Segmentation/hill.jpg)

Result

This is an example of the application of the K-Means Clustering Algorithm to Image-segmentation showing initial image together with their K-means segmentations obtained using various values of K. This ilustrates that smaller values of K give higher compression at the expense of poorer quality of image.

About

Implementing the K-Means Algorithm for Image-segmentation and to build a Class_classifier for Linearly separable and non-linearly separable 2D Data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages