53 #include <visp/vpMatrix.h>
54 #include <visp/vpHomogeneousMatrix.h>
56 #include <visp/vpForwardProjection.h>
88 double X = cMo[0][0]*oP[0]+ cMo[0][1]*oP[1]+ cMo[0][2]*oP[2]+ cMo[0][3]*oP[3] ;
89 double Y = cMo[1][0]*oP[0]+ cMo[1][1]*oP[1]+ cMo[1][2]*oP[2]+ cMo[1][3]*oP[3] ;
90 double Z = cMo[2][0]*oP[0]+ cMo[2][1]*oP[1]+ cMo[2][2]*oP[2]+ cMo[2][3]*oP[3] ;
91 double W = cMo[3][0]*oP[0]+ cMo[3][1]*oP[1]+ cMo[3][2]*oP[2]+ cMo[3][3]*oP[3] ;
103 const unsigned int thickness=1) ;
108 const unsigned int thickness=1) ;
113 const unsigned int thickness=1) ;
118 double get_X()
const {
return cP[0] ; }
120 double get_Y()
const {
return cP[1] ; }
122 double get_Z()
const {
return cP[2] ; }
124 double get_W()
const {
return cP[3] ; }
136 double get_x()
const {
return p[0] ; }
138 double get_y()
const {
return p[1] ; }
140 double get_w()
const {
return p[2] ; }
143 void getWorldCoordinates(
double& ox,
153 friend VISP_EXPORT std::ostream& operator<<(std::ostream& os,
vpPoint& vpp);
176 inline void set_X(
const double X) { cP[0] = X ; }
178 inline void set_Y(
const double Y) { cP[1] = Y ; }
180 inline void set_Z(
const double Z) { cP[2] = Z ; }
182 inline void set_W(
const double W) { cP[3] = W ; }
185 inline void set_oX(
const double X) { oP[0] = X ; }
187 inline void set_oY(
const double Y) { oP[1] = Y ; }
189 inline void set_oZ(
const double Z) { oP[2] = Z ; }
191 inline void set_oW(
const double W) { oP[3] = W ; }
194 inline void set_x(
const double x) { p[0] = x ; }
196 inline void set_y(
const double y) { p[1] = y ; }
198 inline void set_w(
const double w) { p[2] = w ; }
vpTracker & operator=(const vpTracker &tracker)
Copy operator.
virtual void changeFrame(const vpHomogeneousMatrix &cMo, vpColVector &cP)=0
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
Class to define colors available for display functionnalities.
virtual void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)=0
double get_oY() const
Get the point Y coordinate in the object frame.
void set_x(const double x)
Set the point x coordinate in the image plane.
double get_y() const
Get the point y coordinate in the image plane.
double get_w() const
Get the point w coordinate in the image plane.
void set_X(const double X)
Set the point X coordinate in the camera frame.
static const vpColor green
void changeFrame(const vpHomogeneousMatrix &cMo)
double get_W() const
Get the point W coordinate in the camera frame.
void set_oX(const double X)
Set the point X coordinate in the object frame.
Class that defines what is a point.
vpColVector operator*(const double &x, const vpColVector &B)
multiplication by a scalar Ci = x*Bi
virtual void projection()=0
This class aims to compute the homography wrt.two images.
virtual ~vpPoint()
Destructor.
void set_Z(const double Z)
Set the point Z coordinate in the camera frame.
void set_oZ(const double Z)
Set the point Z coordinate in the object frame.
void set_W(const double W)
Set the point W coordinate in the camera frame.
Class that defines what is a generic geometric feature.
virtual void setWorldCoordinates(const vpColVector &oP)=0
Generic class defining intrinsic camera parameters.
double get_oZ() const
Get the point Z coordinate in the object frame.
void set_oW(const double W)
Set the point W coordinate in the object frame.
void set_y(const double y)
Set the point y coordinate in the image plane.
void set_Y(const double Y)
Set the point Y coordinate in the camera frame.
void set_w(const double w)
Set the point w coordinate in the image plane.
double get_x() const
Get the point x coordinate in the image plane.
double get_Y() const
Get the point Y coordinate in the camera frame.
double get_Z() const
Get the point Z coordinate in the camera frame.
double get_oX() const
Get the point X coordinate in the object frame.
Class that provides a data structure for the column vectors as well as a set of operations on these v...
double get_X() const
Get the point X coordinate in the camera frame.
double get_oW() const
Get the point W coordinate in the object frame.
virtual vpForwardProjection * duplicate() const =0
void set_oY(const double Y)
Set the point Y coordinate in the object frame.