title: Labeling object in a binary image MATLAB
body: <p>I am trying to label white objects in a binary image using MATLAB. Basically, my aim is to detect water bodies in a aerial map image and then convert the cimage to binary and then label the bodies. Here is an image example of my output after detecting the bodies and converting to binary. How can I now possibly create a create rectangle around the white objects and label them with text(using connected components)? Thank you!</p>
  
  <p><img src="https://i.stack.imgur.com/117el.png" alt="enter image description here"></p>