Implementing the K-Means Algorithm for Image-segmentation and to build a Class_classifier for Linearly separable and non-linearly separable 2D Data.
Implementation of K-Means Algorithm for Image-segmentation and Compression as well as Class-Classifier for Linierly and non-linierly separable 2D Data.
pip install opencv-python
pip install numpy
pip install Pillow
pip install matplotlib
The input Image is
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.