39 #ifndef vpImagePoint_H
40 #define vpImagePoint_H
48 #include <visp3/core/vpConfig.h>
49 #include <visp3/core/vpMath.h>
120 #ifdef VISP_HAVE_CPP11_COMPATIBILITY
125 this->i = std::move(ip.i);
126 this->j = std::move(ip.j);
163 inline void set_i(
const double ii) { this->i = ii ; }
174 inline void set_j(
const double jj) { this->j = jj ; }
185 inline void set_ij(
const double ii,
const double jj) {
199 inline double get_i()
const {
return i ; }
210 inline double get_j()
const {
return j ; }
221 inline void set_u(
const double u) { j = u ; }
232 inline void set_v(
const double v) { i = v ; }
243 inline void set_uv(
const double u,
const double v) {
257 inline double get_u()
const {
return j ; }
268 inline double get_v()
const {
return i; }
283 static vpRect getBBox(
const std::vector<vpImagePoint>& ipVec);
298 bool inRectangle(
const vpRect &rect )
const;
313 friend VISP_EXPORT std::ostream& operator<< (std::ostream &os,
const vpImagePoint& ip);
const vpImagePoint & operator=(const vpImagePoint &ip)
vpColVector operator*(const double &x, const vpColVector &v)
void set_i(const double ii)
void set_u(const double u)
static double sqr(double x)
const vpImagePoint & operator=(const vpImagePoint &&ip)
void set_v(const double v)
vpImagePoint(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)