39 #ifndef vpPixelMeterConversion_H
40 #define vpPixelMeterConversion_H
48 #include <visp3/core/vpCameraParameters.h>
49 #include <visp3/core/vpException.h>
50 #include <visp3/core/vpMath.h>
51 #include <visp3/core/vpDebug.h>
52 #include <visp3/core/vpImagePoint.h>
93 const double &u,
const double &v,
96 switch(cam.projModel){
98 convertPointWithoutDistortion(cam,u,v,x,y);
101 convertPointWithDistortion(cam,u,v,x,y);
132 double &x,
double &y)
134 switch(cam.projModel){
136 convertPointWithoutDistortion(cam,iP,x,y);
139 convertPointWithDistortion(cam,iP,x,y);
159 const double &u,
const double &v,
160 double &x,
double &y)
162 x = (u - cam.u0)*cam.inv_px ;
163 y = (v - cam.v0)*cam.inv_py ;
183 double &x,
double &y)
185 x = (iP.
get_u() - cam.u0)*cam.inv_px ;
186 y = (iP.
get_v() - cam.v0)*cam.inv_py ;
206 const double &u,
const double &v,
207 double &x,
double &y)
209 double r2 = 1.+cam.kdu*(
vpMath::sqr((u - cam.u0)*cam.inv_px) +
211 x = (u - cam.u0)*r2*cam.inv_px ;
212 y = (v - cam.v0)*r2*cam.inv_py ;
234 double &x,
double &y)
238 x = (iP.
get_u() - cam.u0)*r2*cam.inv_px ;
239 y = (iP.
get_v() - cam.v0)*r2*cam.inv_py ;
244 const double &rho_p,
const double &theta_p,
245 double &rho_m,
double &theta_m) ;
Implementation of a matrix and operations on matrices.
static void convertPointWithDistortion(const vpCameraParameters &cam, const vpImagePoint &iP, double &x, double &y)
Point coordinates conversion with distortion from pixel coordinates Coordinates in pixel to normalize...
static void convertPointWithoutDistortion(const vpCameraParameters &cam, const vpImagePoint &iP, double &x, double &y)
Point coordinates conversion without distortion from pixel coordinates Coordinates in pixel to normal...
Perspective projection without distortion model.
static void convertPointWithDistortion(const vpCameraParameters &cam, const double &u, const double &v, double &x, double &y)
Point coordinates conversion with distortion from pixel coordinates to normalized coordinates in me...
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...
static void convertPointWithoutDistortion(const vpCameraParameters &cam, const double &u, const double &v, double &x, double &y)
Point coordinates conversion without distortion from pixel coordinates to normalized coordinates in...
static double sqr(double x)
Generic class defining intrinsic camera parameters.
Perspective projection with distortion model.
static void convertPoint(const vpCameraParameters &cam, const vpImagePoint &iP, double &x, double &y)
Point coordinates conversion from pixel coordinates Coordinates in pixel to normalized coordinates i...
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Conversion from pixel coordinates to normalized coordinates in meter.