93 #include <visp/vpImagePoint.h>
94 #include <visp/vpRect.h>
95 #include <visp/vpColor.h>
96 #include <visp/vpImage.h>
97 #include <visp/vpPoint.h>
98 #include <visp/vpCameraParameters.h>
118 vpPolygon(
const std::vector<vpImagePoint>& corners);
124 void buildFrom(
const std::vector<vpImagePoint>& corners);
159 return this->_center;
173 void init(
const std::vector<vpImagePoint>& corners);
176 void updateBoundingBox();
const std::vector< vpImagePoint > & getCorners() const
Class to define colors available for display functionnalities.
vpRect _bbox
Boumding box containing the polygon.
vpImagePoint _center
Center of the polygon. It is automatically computed when the corners are set.
Defines a generic 2D polygon.
vpRect getBoundingBox() const
Generic class defining intrinsic camera parameters.
vpImagePoint getCenter() const
std::vector< vpImagePoint > _corners
Collection of image points containing the corners.
bool _goodPoly
Flag to indicate whether the polygon is a good polygon (ie. it has more than two corners, ...)
Defines a rectangle in the plane.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
double _area
Area of the polygon.