40 #ifndef vpImagePoint_H 41 #define vpImagePoint_H 49 #include <visp3/core/vpConfig.h> 50 #include <visp3/core/vpMath.h> 121 #ifdef VISP_HAVE_CPP11_COMPATIBILITY 127 this->i = std::move(ip.i);
128 this->j = std::move(ip.j);
167 inline void set_i(
const double ii) { this->i = ii; }
178 inline void set_j(
const double jj) { this->j = jj; }
189 inline void set_ij(
const double ii,
const double jj)
204 inline double get_i()
const {
return i; }
215 inline double get_j()
const {
return j; }
226 inline void set_u(
const double u) { j = u; }
237 inline void set_v(
const double v) { i = v; }
248 inline void set_uv(
const double u,
const double v)
263 inline double get_u()
const {
return j; }
274 inline double get_v()
const {
return i; }
290 static vpRect getBBox(
const std::vector<vpImagePoint> &ipVec);
306 bool inRectangle(
const vpRect &rect)
const;
321 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpImagePoint &ip);
vpColVector operator*(const double &x, const vpColVector &v)
void set_i(const double ii)
vpImagePoint & operator=(const vpImagePoint &&ip)
void set_u(const double u)
static double sqr(double x)
void set_v(const double v)
vpImagePoint(const vpImagePoint &ip)
vpImagePoint & operator-=(const vpImagePoint &ip)
vpImagePoint & operator=(const vpImagePoint &ip)
void set_j(const double jj)
vpImagePoint & operator*=(const double scale)
static double sqrDistance(const vpImagePoint &iP1, const vpImagePoint &iP2)
vpImagePoint(double ii, double jj)
void set_uv(const double u, const double v)
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 ...
virtual ~vpImagePoint()
Destructor.
static double distance(const vpImagePoint &iP1, const vpImagePoint &iP2)
void set_ij(const double ii, const double jj)