Visual Servoing Platform
version 3.1.0
|
#include <visp3/core/vpPixelMeterConversion.h>
Static Public Member Functions | |
static void | convertPoint (const vpCameraParameters &cam, const double &u, const double &v, double &x, double &y) |
static void | convertPoint (const vpCameraParameters &cam, const vpImagePoint &iP, double &x, double &y) |
static void | convertPointWithoutDistortion (const vpCameraParameters &cam, const double &u, const double &v, double &x, double &y) |
static void | convertPointWithoutDistortion (const vpCameraParameters &cam, const vpImagePoint &iP, double &x, double &y) |
static void | convertPointWithDistortion (const vpCameraParameters &cam, const double &u, const double &v, double &x, double &y) |
static void | convertPointWithDistortion (const vpCameraParameters &cam, const vpImagePoint &iP, double &x, double &y) |
static void | convertLine (const vpCameraParameters &cam, const double &rho_p, const double &theta_p, double &rho_m, double &theta_m) |
static void | convertMoment (const vpCameraParameters &cam, unsigned int order, const vpMatrix &moment_pixel, vpMatrix &moment_meter) |
Conversion from pixel coordinates to normalized coordinates in meter.
This class relates to vpCameraParameters.
Definition at line 65 of file vpPixelMeterConversion.h.
|
static |
line coordinates conversion (rho,theta)
Definition at line 51 of file vpPixelMeterConversion.cpp.
References vpException::divideByZeroError, vpMath::sqr(), and vpERROR_TRACE.
Referenced by vpFeatureBuilder::create().
|
static |
Definition at line 66 of file vpPixelMeterConversion.cpp.
References vpMath::comb().
Referenced by vpFeatureBuilder::create().
|
inlinestatic |
Point coordinates conversion from pixel coordinates to normalized coordinates in meter.
The used formula depends on the projection model of the camera. To know the currently used projection model use vpCameraParameter::get_projModel()
cam | : camera parameters. |
u | : input coordinate in pixels along image horizontal axis. |
v | : input coordinate in pixels along image vertical axis. |
x | : output coordinate in meter along image plane x-axis. |
y | : output coordinate in meter along image plane y-axis. |
and in the case of perspective projection without distortion.
and with in the case of perspective projection with distortion.
Definition at line 90 of file vpPixelMeterConversion.h.
References vpCameraParameters::perspectiveProjWithDistortion, and vpCameraParameters::perspectiveProjWithoutDistortion.
Referenced by vpCalibration::addPoint(), vpFeatureLuminance::buildFrom(), vpKeyPoint::compute3D(), vpKeyPoint::compute3DForPointsOnCylinders(), vpMbtFaceDepthNormal::computeDesiredFeatures(), vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpMbtDistanceKltPoints::computeInteractionMatrixAndResidu(), vpMbtDistanceCircle::computeInteractionMatrixError(), vpFeatureBuilder::create(), vpMomentObject::fromImage(), vpImageSimulator::getImage(), vpMbtDistanceKltCylinder::init(), vpMbTracker::initClick(), vpMbTracker::initFromPoints(), vpKeyPoint::matchPoint(), and vpKinect::warpRGBFrame().
|
inlinestatic |
Point coordinates conversion from pixel coordinates Coordinates in pixel to normalized coordinates in meter.
The used formula depends on the projection model of the camera. To know the currently used projection model use vpCameraParameter::get_projModel()
cam | : camera parameters. |
iP | : input coordinates in pixels. |
x | : output coordinate in meter along image plane x-axis. |
y | : output coordinate in meter along image plane y-axis. |
Thanks to the pixel coordinates in the frame (u,v), the meter coordinates are given by :
and in the case of perspective projection without distortion.
and with in the case of perspective projection with distortion.
Definition at line 126 of file vpPixelMeterConversion.h.
References vpCameraParameters::perspectiveProjWithDistortion, and vpCameraParameters::perspectiveProjWithoutDistortion.
|
inlinestatic |
Point coordinates conversion with distortion from pixel coordinates to normalized coordinates in meter.
cam | : camera parameters. |
u | : input coordinate in pixels along image horizontal axis. |
v | : input coordinate in pixels along image vertical axis. |
x | : output coordinate in meter along image plane x-axis. |
y | : output coordinate in meter along image plane y-axis. |
and with
Definition at line 193 of file vpPixelMeterConversion.h.
References vpMath::sqr().
|
inlinestatic |
Point coordinates conversion with distortion from pixel coordinates Coordinates in pixel to normalized coordinates in meter.
cam | : camera parameters. |
iP | : input coordinates in pixels. |
x | : output coordinate in meter along image plane x-axis. |
y | : output coordinate in meter along image plane y-axis. |
Thanks to the pixel coordinates in the frame (u,v), the meter coordinates are given by :
and with
Definition at line 217 of file vpPixelMeterConversion.h.
References vpImagePoint::get_u(), vpImagePoint::get_v(), and vpMath::sqr().
|
inlinestatic |
Point coordinates conversion without distortion from pixel coordinates to normalized coordinates in meter.
cam | : camera parameters. |
u | : input coordinate in pixels along image horizontal axis. |
v | : input coordinate in pixels along image vertical axis. |
x | : output coordinate in meter along image plane x-axis. |
y | : output coordinate in meter along image plane y-axis. |
and
Definition at line 150 of file vpPixelMeterConversion.h.
|
inlinestatic |
Point coordinates conversion without distortion from pixel coordinates Coordinates in pixel to normalized coordinates in meter.
cam | : camera parameters. |
iP | : input coordinates in pixels. |
x | : output coordinate in meter along image plane x-axis. |
y | : output coordinate in meter along image plane y-axis. |
Thanks to the pixel coordinates in the frame (u,v), the meter coordinates are given by :
and
Definition at line 172 of file vpPixelMeterConversion.h.
References vpImagePoint::get_u(), and vpImagePoint::get_v().