How can image segmentation be performed using K-Means clustering?

Technical