48 #include <visp3/core/vpMath.h>
49 #include <visp3/core/vpDebug.h>
50 #include <visp3/core/vpCameraParameters.h>
51 #include <visp3/core/vpMeterPixelConversion.h>
52 #include <visp3/core/vpPixelMeterConversion.h>
53 #include <visp3/core/vpMath.h>
67 double px_dist,py_dist,u0_dist,v0_dist,kud_dist,kdu_dist;
68 px_dist = 1624.824731;
69 py_dist = 1625.263641;
70 u0_dist = 324.0923411;
71 v0_dist = 245.2421388;
72 kud_dist = -0.1741532338;
73 kdu_dist = 0.1771165148;
81 double x1 = 0, y1 = 0;
82 double u2 = 0, v2 = 0;
86 vpTRACE(
"Error in convertPoint without distortion:\n"
88 "v1 = %f, v2 = %f\n",u1,u2,v1,v2);
91 vpTRACE(
"convertPoint without distortion :\n"
93 "v1 - v2 = %.20f\n",u1 - u2,v1 - v2);
98 vpTRACE(
"Error in convertPoint with distortion :\n"
100 "v1 = %f, v2 = %f\n",u1,u2,v1,v2);
103 vpTRACE(
"convertPoint with distortion :\n"
105 "v1 - v2 = %.20f\n",u1 - u2,v1 - v2);
109 std::cout <<
"Catch an exception: " << e << std::endl;
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 ...
static bool equal(double x, double y, double s=0.001)
error that can be emited by ViSP classes.
static void convertPoint(const vpCameraParameters &cam, const double &u, const double &v, double &x, double &y)
Point coordinates conversion from pixel coordinates to normalized coordinates in meter...
void initPersProjWithoutDistortion(const double px, const double py, const double u0, const double v0)
Generic class defining intrinsic camera parameters.
void initPersProjWithDistortion(const double px, const double py, const double u0, const double v0, const double kud, const double kdu)