title: How to get rectangles around the objects in the image?
body: <p>what would be the easiest way to programmatically get the rectangles around the objects in the image? looking for a solution in c#</p>
  
  <p><img src="https://i.stack.imgur.com/qlVlM.png" alt="enter image description here"></p>
  
  <p>i'm not entirely sure how to approach the search for this. any hints are highly welcome. </p>
  
  <p>*edit: 
  As Bobby guessed correctly, I'm trying to find the surrounding rectangles around the blobs. The spots vary in size and shape and position. They could be star shaped and round for instance. As TaW stated I would need to figure out what pixels are connected to each other. How would you deal with holes?</p>
  
  <p>best wishes</p>