This is a demonstration of how an image segmentation is done using K-means as well as how K-Means works with notes and an implementation of the algorithm from scratch.
Original Image
Segmentation with K = 4
Segmentation with K = 7
MIT
Image Segmentation using K-Means (K-Means from scratch)
Jupyter Notebook