ViSP
2.8.0
|
#include <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 69 of file vpPixelMeterConversion.h.
|
static |
line coordinates conversion (rho,theta)
Definition at line 56 of file vpPixelMeterConversion.cpp.
References vpException::divideByZeroError, vpMath::sqr(), and vpERROR_TRACE.
Referenced by vpFeatureBuilder::create().
|
static |
Definition at line 76 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,v | : input coordinates in pixels. |
x,y | : output coordinates in meter. |
and in the case of perspective projection without distortion.
and with in the case of perspective projection with distortion.
Definition at line 94 of file vpPixelMeterConversion.h.
References vpCameraParameters::perspectiveProjWithDistortion, and vpCameraParameters::perspectiveProjWithoutDistortion.
Referenced by vpFeatureLuminance::buildFrom(), vpMbtKltPolygon::computeInteractionMatrixAndResidu(), vpFeatureBuilder::create(), vpMomentObject::fromImage(), vpImageSimulator::getImage(), vpMbTracker::initClick(), vpMbTracker::initFromPoints(), 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,y | : output coordinates in meter. |
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 131 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,v | : input coordinates in pixels. |
x,y | : output coordinates in meter. |
and with
Definition at line 200 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,y | : output coordinates in meter. |
Thanks to the pixel coordinates in the frame (u,v), the meter coordinates are given by :
and with
Definition at line 226 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,v | : input coordinates in pixels. |
x,y | : output coordinates in meter. |
and
Definition at line 156 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,y | : output coordinates in meter. |
Thanks to the pixel coordinates in the frame (u,v), the meter coordinates are given by :
and
Definition at line 178 of file vpPixelMeterConversion.h.
References vpImagePoint::get_u(), and vpImagePoint::get_v().