44 #ifndef vpMeterPixelConversion_H
45 #define vpMeterPixelConversion_H
54 #include <visp/vpCameraParameters.h>
55 #include <visp/vpCircle.h>
56 #include <visp/vpException.h>
57 #include <visp/vpImagePoint.h>
58 #include <visp/vpMath.h>
76 double &mu20_p,
double &mu11_p,
double &mu02_p);
79 const double &rho_m,
const double &theta_m,
80 double &rho_p,
double &theta_p) ;
105 const double &x,
const double &y,
106 double &u,
double &v)
108 switch(cam.projModel){
110 convertPointWithoutDistortion(cam,x,y,u,v);
113 convertPointWithDistortion(cam,x,y,u,v);
143 const double &x,
const double &y,
146 switch(cam.projModel){
148 convertPointWithoutDistortion(cam,x,y,iP);
151 convertPointWithDistortion(cam,x,y,iP);
156 #ifndef DOXYGEN_SHOULD_SKIP_THIS
168 const double &x,
const double &y,
169 double &u,
double &v)
171 u = x * cam.px + cam.u0 ;
172 v = y * cam.py + cam.v0 ;
187 const double &x,
const double &y,
190 iP.
set_u( x * cam.px + cam.u0 );
191 iP.
set_v( y * cam.py + cam.v0 );
210 const double &x,
const double &y,
211 double &u,
double &v)
213 double r2 = 1.+cam.kud*(x*x+y*y);
214 u = cam.u0 + cam.px*x*r2;
215 v = cam.v0 + cam.py*y*r2;
235 const double &x,
const double &y,
238 double r2 = 1.+cam.kud*(x*x+y*y);
239 iP.
set_u( cam.u0 + cam.px*x*r2 );
240 iP.
set_v( cam.v0 + cam.py*y*r2 );
242 #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.