45 #include <visp3/core/vpCameraParameters.h> 46 #include <visp3/core/vpDebug.h> 47 #include <visp3/core/vpException.h> 48 #include <visp3/core/vpMath.h> 49 #include <visp3/core/vpMeterPixelConversion.h> 53 double &rho_p,
double &theta_p)
55 double co = cos(theta_m);
56 double si = sin(theta_m);
64 theta_p = atan2(cam.px * si, cam.py * co);
65 rho_p = (cam.px * cam.py * rho_m + cam.u0 * cam.py * co + cam.v0 * cam.px * si);
93 double &mu20_p,
double &mu11_p,
double &mu02_p)
96 double xc_m = circle.
p[0];
97 double yc_m = circle.
p[1];
98 double mu20_m = circle.
p[2];
99 double mu11_m = circle.
p[3];
100 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.