title: Image labeling and finding centroids in matlab
body: <p>My problem is that I have a radar image in <code>png</code> format. (Sorry, but i had to remove the image as my colleague says it a copyright infringement of the German Weather Service) </p>
  
  <p>I want to read the image in MATLAB. Then read all the clouds, and label each cloud with a unique index. This means that each pixel belonging to a certain cloud is labeled with the same index <code>i</code>. Calculate the center of <code>area(coa)</code> of each cloud and then I should be able to measure distances between clouds from one coa to another. </p>
  
  <p>Some similar work I know was done in IDL. I tried using that but it would be much easier for me if I'm able to do all this in MATLAB and concentrate more on the result, rather then spend time learning IDL. </p>
  
  <p>So, before jumping in, I want to know if all this is possible in MATLAB. If yes, can you guide me a little on how I can extract the cloud and label them?</p>