48 #include <visp/vpMeterPixelConversion.h>
49 #include <visp/vpCameraParameters.h>
50 #include <visp/vpException.h>
51 #include <visp/vpMath.h>
52 #include <visp/vpDebug.h>
57 const double &rho_m,
const double &theta_m,
58 double &rho_p,
double &theta_p)
60 double co = cos(theta_m) ;
61 double si = sin(theta_m) ;
68 "division by zero")) ;
71 theta_p = atan2(cam.px*si, cam.py*co) ;
72 rho_p = (cam.px*cam.py*rho_m + cam.u0*cam.py*co + cam.v0*cam.px*si) ;
101 double &mu20_p,
double &mu11_p,
double &mu02_p)
104 double xc_m = circle.
p[0];
105 double yc_m = circle.
p[1];
106 double mu20_m = circle.
p[2];
107 double mu11_m = circle.
p[3];
108 double mu02_m = circle.
p[4];
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 ...
error that can be emited by ViSP classes.
static double sqr(double x)
Generic class defining intrinsic camera parameters.
static void convertEllipse(const vpCameraParameters &cam, const vpCircle &circle, vpImagePoint ¢er, double &mu20_p, double &mu11_p, double &mu02_p)
static void convertLine(const vpCameraParameters &cam, const double &rho_m, const double &theta_m, double &rho_p, double &theta_p)
Line coordinates conversion (rho,theta).
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.