MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / getLocalBoundingBox

Method getLocalBoundingBox

annotation/AnnotationGroup.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48std::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
59Point AnnotationGroup::getCenter() {
60 Point center(0, 0);

Callers

nothing calls this directly

Calls 1

getCenterMethod · 0.95

Tested by

no test coverage detected