40 #ifndef vpMeterPixelConversion_H
41 #define vpMeterPixelConversion_H
50 #include <visp3/core/vpCameraParameters.h>
51 #include <visp3/core/vpCircle.h>
52 #include <visp3/core/vpException.h>
53 #include <visp3/core/vpImagePoint.h>
54 #include <visp3/core/vpMath.h>
72 double &mu20_p,
double &mu11_p,
double &mu02_p);
75 const double &rho_m,
const double &theta_m,
76 double &rho_p,
double &theta_p) ;
103 const double &x,
const double &y,
104 double &u,
double &v)
106 switch(cam.projModel){
108 convertPointWithoutDistortion(cam,x,y,u,v);
111 convertPointWithDistortion(cam,x,y,u,v);
142 const double &x,
const double &y,
145 switch(cam.projModel){
147 convertPointWithoutDistortion(cam,x,y,iP);
150 convertPointWithDistortion(cam,x,y,iP);
155 #ifndef DOXYGEN_SHOULD_SKIP_THIS
167 const double &x,
const double &y,
168 double &u,
double &v)
170 u = x * cam.px + cam.u0 ;
171 v = y * cam.py + cam.v0 ;
186 const double &x,
const double &y,
189 iP.
set_u( x * cam.px + cam.u0 );
190 iP.
set_v( y * cam.py + cam.v0 );
211 const double &x,
const double &y,
212 double &u,
double &v)
214 double r2 = 1.+cam.kud*(x*x+y*y);
215 u = cam.u0 + cam.px*x*r2;
216 v = cam.v0 + cam.py*y*r2;
237 const double &x,
const double &y,
240 double r2 = 1.+cam.kud*(x*x+y*y);
241 iP.
set_u( cam.u0 + cam.px*x*r2 );
242 iP.
set_v( cam.v0 + cam.py*y*r2 );
244 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
Perspective projection without distortion model.
static void convertPoint(const vpCameraParameters &cam, const double &x, const double &y, vpImagePoint &iP)
Point coordinates conversion from normalized coordinates in meter to pixel coordinates.
static void convertPoint(const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v)
Point coordinates conversion from normalized coordinates in meter to pixel coordinates ...
void set_u(const double u)
void set_v(const double v)
Generic class defining intrinsic camera parameters.
Perspective projection with distortion model.
Conversion from normalized coordinates in meter to pixel coordinates .
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Class that defines what is a circle.