I want to segment RGB images for land cover using k means clustering in such a fashion that the different regions of the image are marked by different colors and if possible boundaries are created separating different regions. I want something like :

![enter image description here](https://i.stack.imgur.com/l5F0P.jpg) 

from this : 

![enter image description here](https://i.stack.imgur.com/k7cLK.jpg)

Is it possible to achieve this by K-means clustering?
I have been searching all over internet and many tutorials do it by k means clustering but only after converting the image to grey scale. I want to do it with an RGB image only. Is there any source that could help me begin with it?
Please suggest something.