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>
91 const double &u,
const double &v,
94 switch(cam.projModel){
96 convertPointWithoutDistortion(cam,u,v,x,y);
99 convertPointWithDistortion(cam,u,v,x,y);
129 double &x,
double &y)
131 switch(cam.projModel){
133 convertPointWithoutDistortion(cam,iP,x,y);
136 convertPointWithDistortion(cam,iP,x,y);
154 const double &u,
const double &v,
155 double &x,
double &y)
157 x = (u - cam.u0)*cam.inv_px ;
158 y = (v - cam.v0)*cam.inv_py ;
177 double &x,
double &y)
179 x = (iP.
get_u() - cam.u0)*cam.inv_px ;
180 y = (iP.
get_v() - cam.v0)*cam.inv_py ;
198 const double &u,
const double &v,
199 double &x,
double &y)
201 double r2 = 1.+cam.kdu*(
vpMath::sqr((u - cam.u0)*cam.inv_px) +
203 x = (u - cam.u0)*r2*cam.inv_px ;
204 y = (v - cam.v0)*r2*cam.inv_py ;
225 double &x,
double &y)
229 x = (iP.
get_u() - cam.u0)*r2*cam.inv_px ;
230 y = (iP.
get_v() - cam.v0)*r2*cam.inv_py ;
235 const double &rho_p,
const double &theta_p,
236 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.