项目作者: npav5057

项目描述 :
Implementing the K-Means Algorithm for Image-segmentation and to build a Class_classifier for Linearly separable and non-linearly separable 2D Data.
高级语言: Python
项目地址: git://github.com/npav5057/K-Means-Clustering.git
创建时间: 2019-10-06T12:26:04Z
项目社区:https://github.com/npav5057/K-Means-Clustering

开源协议:MIT License

下载


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
  1. pip install opencv-python
  2. pip install numpy
  3. pip install Pillow
  4. pip install matplotlib

Image

The input Image is

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.