title: How to define the markers for Watershed in OpenCV?
body: <p>I'm writing for Android with OpenCV. I'm segmenting an image similar to below using marker-controlled watershed, without the user manually marking the image. I'm planning to use the regional maxima as markers.</p>
  
  <p><code>minMaxLoc()</code> would give me the value, but how can I restrict it to the blobs which is what I'm interested in? Can I utilize the results from <code>findContours()</code> or cvBlob blobs to restrict the ROI and apply maxima to each blob?</p>
  
  <p><img src="https://i.stack.imgur.com/7EU8I.jpg" alt="input image"></p>