45 #include <visp3/core/vpRect.h>
46 #include <visp3/core/vpDebug.h>
69 : left(l), top(t), width(w), height(h)
84 : left(topLeft.get_u()), top(topLeft.get_v()), width(w), height(h)
95 : left(topLeft.get_u()), top(topLeft.get_v()), width(0), height(0)
97 this->left = topLeft.
get_u();
98 this->top = topLeft.
get_v();
110 : left(0), top(0), width(0), height(0)
123 this->width = r.width;
124 this->height = r.height;
135 : left(0), top(0), width(0), height(0)
169 left = topLeft.
get_u();
170 top = topLeft.
get_v();
185 "At least 1 point is requested to build a rectangle"));
188 minu = maxu = ip[0].get_u();
189 minv = maxv = ip[0].get_v();
191 for(
size_t i=1; i<ip.size(); i++) {
192 double u = ip[i].get_u();
193 double v = ip[i].get_v();
194 if ( u < minu ) minu = u;
195 else if (u > maxu) maxu = u;
196 if ( v < minv ) minv = v;
197 else if (v > maxv) maxv = v;
217 this->left = topLeft.
get_u();
218 this->top = topLeft.
get_v();
error that can be emited by ViSP classes.
void set(double left, double top, double width, double height)
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
void setRight(double pos)
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 ...
vpRect & operator=(const vpRect &r)
void setBottom(double pos)