44 #include <visp3/core/vpMeterPixelConversion.h>
45 #include <visp3/core/vpCameraParameters.h>
46 #include <visp3/core/vpException.h>
47 #include <visp3/core/vpMath.h>
48 #include <visp3/core/vpDebug.h>
53 const double &rho_m,
const double &theta_m,
54 double &rho_p,
double &theta_p)
56 double co = cos(theta_m) ;
57 double si = sin(theta_m) ;
64 "division by zero")) ;
67 theta_p = atan2(cam.px*si, cam.py*co) ;
68 rho_p = (cam.px*cam.py*rho_m + cam.u0*cam.py*co + cam.v0*cam.px*si) ;
97 double &mu20_p,
double &mu11_p,
double &mu02_p)
100 double xc_m = circle.
p[0];
101 double yc_m = circle.
p[1];
102 double mu20_m = circle.
p[2];
103 double mu11_m = circle.
p[3];
104 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.