43 #ifndef vpImagePoint_H
44 #define vpImagePoint_H
52 #include <visp/vpConfig.h>
53 #include <visp/vpMath.h>
158 inline void set_i(
const double ii) { this->i = ii ; }
169 inline void set_j(
const double jj) { this->j = jj ; }
180 inline void set_ij(
const double ii,
const double jj) {
194 inline double get_i()
const {
return i ; }
205 inline double get_j()
const {
return j ; }
216 inline void set_u(
const double u) { j = u ; }
227 inline void set_v(
const double v) { i = v ; }
238 inline void set_uv(
const double u,
const double v) {
252 inline double get_u()
const {
return j ; }
263 inline double get_v()
const {
return i; }
290 bool inRectangle(
const vpRect &rect )
const;
303 friend VISP_EXPORT std::ostream& operator<< (std::ostream &os,
const vpImagePoint& ip);
const vpImagePoint & operator=(const vpImagePoint &ip)
This class aims to compute the homography wrt.two images.
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)