title: JavaCV: How to Find Significant points in a binary image
body: <p>I am having a problem with this project of mine implemented using JavaCV. I want to find at least, the top-most, bottom-most, left-most and right-most points in a binary image:</p>
  
  <p><img src="https://i.stack.imgur.com/x56Lq.jpg" alt="Happy Mouth Binary image"></p>
  
  <p>Points I mean here are (x,y) coordinates. I have tried implementing HoughLines (it only detects lines but not the curves) and cvFindContours but I just can't extract the coordinates properly.  I'm still a novice, if only I know what is the value of the white lines as well as the background, then maybe I could just loop around the image.  </p>
  
  <p>Is there an easier way out? Thank you very much for any help.</p>