49 #include <visp/vpRect.h>
50 #include <visp/vpDebug.h>
73 : left(l), top(t), width(w), height(h)
88 : left(topLeft.get_u()), top(topLeft.get_v()), width(w), height(h)
99 : left(topLeft.get_u()), top(topLeft.get_v()), width(0), height(0)
101 this->left = topLeft.
get_u();
102 this->top = topLeft.
get_v();
114 : left(0), top(0), width(0), height(0)
127 this->width = r.width;
128 this->height = r.height;
139 : left(0), top(0), width(0), height(0)
173 left = topLeft.
get_u();
174 top = topLeft.
get_v();
189 "At least 1 point is requested to build a rectangle"));
192 minu = maxu = ip[0].get_u();
193 minv = maxv = ip[0].get_v();
195 for(
size_t i=1; i<ip.size(); i++) {
196 double u = ip[i].get_u();
197 double v = ip[i].get_v();
198 if ( u < minu ) minu = u;
199 else if (u > maxu) maxu = u;
200 if ( v < minv ) minv = v;
201 else if (v > maxv) maxv = v;
221 this->left = topLeft.
get_u();
222 this->top = topLeft.
get_v();
252 VISP_EXPORT std::ostream& operator<< (std::ostream &os,
const vpRect& r)
error that can be emited by ViSP classes.
void set(double left, double top, double width, double height)
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)