49 #include <visp/vpRect.h>
50 #include <visp/vpDebug.h>
68 : left(l), top(t), width(w), height(h)
79 : left(topLeft.get_u()), top(topLeft.get_v()), width(w), height(h)
90 : left(topLeft.get_u()), top(topLeft.get_v()), width(0), height(0)
92 this->left = topLeft.
get_u();
93 this->top = topLeft.
get_v();
105 : left(0), top(0), width(0), height(0)
118 this->width = r.width;
119 this->height = r.height;
130 : left(0), top(0), width(0), height(0)
145 "At least 1 point is requested to build a rectangle"));
148 minu = maxu = ip[0].get_u();
149 minv = maxv = ip[0].get_v();
151 for(
size_t i=1; i<ip.size(); i++) {
152 double u = ip[i].get_u();
153 double v = ip[i].get_v();
154 if ( u < minu ) minu = u;
155 else if (u > maxu) maxu = u;
156 if ( v < minv ) minv = v;
157 else if (v > maxv) maxv = v;
180 VISP_EXPORT std::ostream& operator<< (std::ostream &os,
const vpRect& r)
error that can be emited by ViSP classes.
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)
void set(const std::vector< vpImagePoint > &ip)