title: Clustering of colors in a thermal image
body: <p>I am working on detection of dental issues using thermography. I need to separate the all the given colours in the image  into separate clusters (4-7 in number) so that the high-temperature zones (seen white in the image) are seen separately, which can be followed by thresholding if need be. </p>
  
  <p>I am also attaching a sample of the images I will be working on. I am looking for a suitable program to carry out the execution in MATLAB.</p>
  
  <p>I've already worked on the same, the program being attached in the previous question, which gives 3 clusters only.Since I'm a beginner, I need help in establishing more clusters. </p>
  
  <p>image obtained using thermal camera on which clustering is to be carried out <img src="https://i.stack.imgur.com/azAHQ.jpg" alt=""> 
  the closest I could get to the sort of clustering I want to carry out. here, in this image  green-blue cluster and white cluster are in the same image, which i want to have in separate clusters, hence the need of more clusters<img src="https://i.stack.imgur.com/Unv4h.jpg" alt="">
  expected result after clustering and thresholding<img src="https://i.stack.imgur.com/tLX5d.jpg" alt=""> </p>