40 #ifndef vpPixelMeterConversion_H 41 #define vpPixelMeterConversion_H 48 #include <visp3/core/vpCameraParameters.h> 49 #include <visp3/core/vpDebug.h> 50 #include <visp3/core/vpException.h> 51 #include <visp3/core/vpImagePoint.h> 52 #include <visp3/core/vpMath.h> 92 switch (cam.projModel) {
94 convertPointWithoutDistortion(cam, u, v, x, y);
97 convertPointWithDistortion(cam, u, v, x, y);
128 switch (cam.projModel) {
130 convertPointWithoutDistortion(cam, iP, x, y);
133 convertPointWithDistortion(cam, iP, x, y);
151 double &x,
double &y)
153 x = (u - cam.u0) * cam.inv_px;
154 y = (v - cam.v0) * cam.inv_py;
175 x = (iP.
get_u() - cam.u0) * cam.inv_px;
176 y = (iP.
get_v() - cam.v0) * cam.inv_py;
194 double &x,
double &y)
196 double r2 = 1. + cam.kdu * (
vpMath::sqr((u - cam.u0) * cam.inv_px) +
vpMath::sqr((v - cam.v0) * cam.inv_py));
197 x = (u - cam.u0) * r2 * cam.inv_px;
198 y = (v - cam.v0) * r2 * cam.inv_py;
220 double r2 = 1. + cam.kdu * (
vpMath::sqr((iP.
get_u() - cam.u0) * cam.inv_px) +
222 x = (iP.
get_u() - cam.u0) * r2 * cam.inv_px;
223 y = (iP.
get_v() - cam.v0) * r2 * cam.inv_py;
227 static void convertLine(
const vpCameraParameters &cam,
const double &rho_p,
const double &theta_p,
double &rho_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...
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.
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.