title: Find the center point of an object in a black-white image using C++ opencv
body: <p>I have the image below. My aim is to find x,y values of the center point of the object. I tried <a href="http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/moments/moments.html" rel="nofollow noreferrer">Image moments</a> but I couldn't find any x,y values.
  How can I do that?</p>
  
  <p><img src="https://i.stack.imgur.com/B3eIa.png" alt="Original image"></p>
  
  <p>The center point shoud be the red point or something close to it.</p>
  
  <p><img src="https://i.stack.imgur.com/RxKHg.png" alt="enter image description here"></p>