| 46 | } |
| 47 | |
| 48 | std::vector<Point> AnnotationGroup::getLocalBoundingBox() { |
| 49 | Point center = this->getCenter(); |
| 50 | std::vector<Point> bbox = getImageBoundingBox(); |
| 51 | bbox[0].setX(bbox[0].getX() - center.getX()); |
| 52 | bbox[1].setX(bbox[1].getX() - center.getX()); |
| 53 | bbox[0].setY(bbox[0].getY() - center.getY()); |
| 54 | bbox[1].setY(bbox[1].getY() - center.getY()); |
| 55 | return bbox; |
| 56 | |
| 57 | } |
| 58 | |
| 59 | Point AnnotationGroup::getCenter() { |
| 60 | Point center(0, 0); |