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) ;
error that can be emited by ViSP classes.
static double sqr(double x)
Generic class defining intrinsic camera parameters.
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)