| 57 | } |
| 58 | |
| 59 | Point AnnotationGroup::getCenter() { |
| 60 | Point center(0, 0); |
| 61 | std::vector<Point> bbox = getImageBoundingBox(); |
| 62 | center.setX((bbox[0].getX() + bbox[1].getX()) / 2.); |
| 63 | center.setY((bbox[0].getY() + bbox[1].getY()) / 2.); |
| 64 | return center; |
| 65 | } |
| 66 | |
| 67 | float AnnotationGroup::getArea() const { |
| 68 | float area = 0; |