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

Method getCenter

annotation/AnnotationGroup.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59Point 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
67float AnnotationGroup::getArea() const {
68 float area = 0;

Callers 1

getLocalBoundingBoxMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected