ViSP
2.8.0
|
#include <vpMeterPixelConversion.h>
Static Public Member Functions | |
static void | convertPoint (const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v) |
static void | convertPoint (const vpCameraParameters &cam, const double &x, const double &y, vpImagePoint &iP) |
static void | convertPointWithoutDistortion (const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v) |
static void | convertPointWithoutDistortion (const vpCameraParameters &cam, const double &x, const double &y, vpImagePoint &iP) |
static void | convertPointWithDistortion (const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v) |
static void | convertPointWithDistortion (const vpCameraParameters &cam, const double &x, const double &y, vpImagePoint &iP) |
static void | convertLine (const vpCameraParameters &cam, const double &rho_m, const double &theta_m, double &rho_p, double &theta_p) |
Conversion from normalized coordinates in meter to pixel coordinates .
This class relates to vpCameraParameters.
Definition at line 70 of file vpMeterPixelConversion.h.
|
static |
line coordinates conversion (rho,theta)
Definition at line 56 of file vpMeterPixelConversion.cpp.
References vpException::divideByZeroError, vpMath::sqr(), and vpERROR_TRACE.
Referenced by vpMbtDistanceCylinder::display(), vpFeatureDisplay::displayLine(), vpMbtDistanceLine::initMovingEdge(), vpMbtDistanceCylinder::initMovingEdge(), vpMbtDistanceLine::updateMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
|
inlinestatic |
Point coordinates conversion from normalized coordinates in meter to pixel coordinates .
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. |
x,y | : input coordinates in meter. |
u,v | : output coordinates in pixels. |
and in the case of perspective projection without distortion.
and with in the case of perspective projection with distortion.
Definition at line 96 of file vpMeterPixelConversion.h.
References vpCameraParameters::perspectiveProjWithDistortion, and vpCameraParameters::perspectiveProjWithoutDistortion.
Referenced by vpPolygon::buildFrom(), vpFeatureBuilder::create(), vpFeatureSegment::display(), vpProjectionDisplay::display(), vpMbtDistanceLine::display(), vpProjectionDisplay::displayCamera(), vpDisplay::displayCamera(), vpFeatureDisplay::displayEllipse(), vpDisplay::displayFrame(), vpPose::displayModel(), vpFeatureDisplay::displayPoint(), vpMbtPolygon::getNbCornerInsideImage(), vpMbtPolygon::getRoi(), vpMbtPolygon::getRoiClipped(), vpMbtDistanceLine::initMovingEdge(), vpWireFrameSimulator::projectCameraTrajectory(), vpSimulatorAfma6::updateArticularPosition(), vpSimulatorViper850::updateArticularPosition(), vpMbtDistanceLine::updateMovingEdge(), and vpKinect::warpRGBFrame().
|
inlinestatic |
Point coordinates conversion from normalized coordinates in meter to pixel coordinates.
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. |
x,y | : input coordinates in meter. |
iP | : output coordinates in pixels. |
In the frame (u,v) the result is given by:
and in the case of perspective projection without distortion.
and with in the case of perspective projection with distortion.
Definition at line 135 of file vpMeterPixelConversion.h.
References vpCameraParameters::perspectiveProjWithDistortion, and vpCameraParameters::perspectiveProjWithoutDistortion.
|
inlinestatic |
Point coordinates conversion with distortion from normalized coordinates in meter to pixel coordinates .
cam | : camera parameters. |
x,y | : input coordinates in meter. |
u,v | : output coordinates in pixels. |
and with
Definition at line 204 of file vpMeterPixelConversion.h.
|
inlinestatic |
Point coordinates conversion with distortion from normalized coordinates in meter to pixel coordinates.
cam | : camera parameters. |
x,y | : input coordinates in meter. |
iP | : output coordinates in pixels. |
In the frame (u,v) the result is given by:
and with
Definition at line 230 of file vpMeterPixelConversion.h.
References vpImagePoint::set_u(), and vpImagePoint::set_v().
|
inlinestatic |
Point coordinates conversion without distortion from normalized coordinates in meter to pixel coordinates .
and
Definition at line 160 of file vpMeterPixelConversion.h.
|
inlinestatic |
Point coordinates conversion without distortion from normalized coordinates in meter to pixel coordinates.
In the frame (u,v) the result is given by:
and
Definition at line 180 of file vpMeterPixelConversion.h.
References vpImagePoint::set_u(), and vpImagePoint::set_v().