title: Finding elongated clusters using MATLAB
body: <p>Let me explain what I'm trying to do.
  I have plot of an Image's points/pixels in the RGB space.
  What I am trying to do is find elongated clusters in this space. I'm fairly new to clustering techniques and maybe I'm not doing things correctly, I'm trying to cluster using MATLAB's inbuilt k-means clustering but it appears as if that is not the best approach in this case.</p>
  
  <p>What I need to do is find "color clusters".</p>
  
  <p>This is what I get after applying K-means on an image.
  <img src="https://i.stack.imgur.com/LUz3X.png" alt="enter image description here"></p>
  
  <p>This is how it should look like:</p>
  
  <p><img src="https://i.stack.imgur.com/TfNy4.jpg" alt="enter image description here"></p>
  
  <p>for an image like this:</p>
  
  <p><img src="https://i.stack.imgur.com/vAXa9.jpg" alt="enter image description here"></p>
  
  <p>Can someone tell me where I'm going wrong, and what I can to do improve my results?</p>
  
  <hr>
  
  <p>Note: Sorry for the low-res images, these are the best I have.</p>