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

Method getLocalBoundingBox

annotation/Annotation.cpp:204–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204std::vector<Point> Annotation::getLocalBoundingBox() {
205 Point center = getCenter();
206 std::vector<Point> bbox = getImageBoundingBox();
207 bbox[0].setX(bbox[0].getX() - center.getX());
208 bbox[1].setX(bbox[1].getX() - center.getX());
209 bbox[0].setY(bbox[0].getY() - center.getY());
210 bbox[1].setY(bbox[1].getY() - center.getY());
211 return bbox;
212}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected