43 #ifndef vpImagePoint_H
44 #define vpImagePoint_H
52 #include <visp/vpConfig.h>
53 #include <visp/vpMath.h>
159 inline void set_i(
const double ii) { this->i = ii ; }
170 inline void set_j(
const double jj) { this->j = jj ; }
181 inline void set_ij(
const double ii,
const double jj) {
195 inline double get_i()
const {
return i ; }
206 inline double get_j()
const {
return j ; }
217 inline void set_u(
const double u) { j = u ; }
228 inline void set_v(
const double v) { i = v ; }
239 inline void set_uv(
const double u,
const double v) {
253 inline double get_u()
const {
return j ; }
264 inline double get_v()
const {
return i; }
279 static vpRect getBBox(
const std::vector<vpImagePoint>& ipVec);
294 bool inRectangle(
const vpRect &rect )
const;
307 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)