39 #ifndef vpImagePoint_H
40 #define vpImagePoint_H
48 #include <visp3/core/vpConfig.h>
49 #include <visp3/core/vpMath.h>
154 inline void set_i(
const double ii) { this->i = ii ; }
165 inline void set_j(
const double jj) { this->j = jj ; }
176 inline void set_ij(
const double ii,
const double jj) {
190 inline double get_i()
const {
return i ; }
201 inline double get_j()
const {
return j ; }
212 inline void set_u(
const double u) { j = u ; }
223 inline void set_v(
const double v) { i = v ; }
234 inline void set_uv(
const double u,
const double v) {
248 inline double get_u()
const {
return j ; }
259 inline double get_v()
const {
return i; }
274 static vpRect getBBox(
const std::vector<vpImagePoint>& ipVec);
289 bool inRectangle(
const vpRect &rect )
const;
302 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)
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)