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) ;
101 const double &x,
const double &y,
102 double &u,
double &v)
104 switch(cam.projModel){
106 convertPointWithoutDistortion(cam,x,y,u,v);
109 convertPointWithDistortion(cam,x,y,u,v);
139 const double &x,
const double &y,
142 switch(cam.projModel){
144 convertPointWithoutDistortion(cam,x,y,iP);
147 convertPointWithDistortion(cam,x,y,iP);
152 #ifndef DOXYGEN_SHOULD_SKIP_THIS
164 const double &x,
const double &y,
165 double &u,
double &v)
167 u = x * cam.px + cam.u0 ;
168 v = y * cam.py + cam.v0 ;
183 const double &x,
const double &y,
186 iP.
set_u( x * cam.px + cam.u0 );
187 iP.
set_v( y * cam.py + cam.v0 );
206 const double &x,
const double &y,
207 double &u,
double &v)
209 double r2 = 1.+cam.kud*(x*x+y*y);
210 u = cam.u0 + cam.px*x*r2;
211 v = cam.v0 + cam.py*y*r2;
231 const double &x,
const double &y,
234 double r2 = 1.+cam.kud*(x*x+y*y);
235 iP.
set_u( cam.u0 + cam.px*x*r2 );
236 iP.
set_v( cam.v0 + cam.py*y*r2 );
238 #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.