OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Wed, 12 Jun 2013 14:25:34 -0500Finding area center of rectanglehttp://answers.opencv.org/question/15086/finding-area-center-of-rectangle/I am trying to find an area center of various types of rectagles.
(Center of gravity and midpoint of 4 vertices never work so please think in different way)
Please see this image:
![image description](/upfiles/13710685995597848.jpg)
I have to find the position of position of red dots
Point vertices[4];
Point areaCenter;
I have to find areaCenter so (nearly)
area(areaCenter, vertices[0], vertices[1]) = area(areaCenter, vertices[1], vertices[2]) =
area(areaCenter, vertices[2], vertices[3]) = area(areaCenter, vertices[3], vertices[0])
I tried many different ways to find the mid point but none of them covered every types of rectangles.
Can any1 give me some idea?PapercutWed, 12 Jun 2013 14:25:34 -0500http://answers.opencv.org/question/15086/