string Rectangle::toString() { stringstream ss; ss << Shape::toString() << ", Height = " << height << ", Width = " << width << ", Circumference = " << getCircumference() << ", Area = " << getArea(); return ss.str(); }
string Circle::toString() { stringstream ss; ss << Shape::toString() << ", Radius = " << radius << ", Circumference = " << getCircumference() << ", Area = " << getArea(); return ss.str(); }
double getPhi(Line *line, CvBox2D ellipse) { return line->length / getCircumference(ellipse); }