title: image segmentation by k means clustering in python
body: <p>I have been trying to figure out how to segment an image by K-means clustering in Python modules like skimage or scipy. I found a code <a href="http://scikit-learn.org/stable/auto_examples/cluster/plot_lena_segmentation.html" rel="nofollow">here</a></p>
  
  <p>When I try to run the code for my image, my python interpreter stops responding. </p>
  
  <p>Also I don't understand the downsampling part of the code in the above given link.
  Please tell me how to do it? </p>