Visual Servoing Platform
version 3.1.0
|
#include <visp3/core/vpPoint.h>
Public Types | |
enum | vpForwardProjectionDeallocatorType { user, vpDisplayForwardProjection } |
Public Member Functions | |
vpPoint () | |
vpPoint (double oX, double oY, double oZ) | |
vpPoint (const vpColVector &P) | |
vpPoint (const std::vector< double > &P) | |
virtual | ~vpPoint () |
void | changeFrame (const vpHomogeneousMatrix &cMo, vpColVector &_cP) |
void | changeFrame (const vpHomogeneousMatrix &cMo) |
void | display (const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1) |
void | display (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1) |
void | display (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1) |
vpPoint * | duplicate () const |
double | get_X () const |
double | get_Y () const |
double | get_Z () const |
double | get_W () const |
double | get_oX () const |
double | get_oY () const |
double | get_oZ () const |
double | get_oW () const |
double | get_x () const |
double | get_y () const |
double | get_w () const |
void | getWorldCoordinates (double &oX, double &oY, double &oZ) |
void | getWorldCoordinates (vpColVector &P) |
vpColVector | getWorldCoordinates (void) |
void | getWorldCoordinates (std::vector< double > &P) |
void | init () |
vpPoint & | operator= (const vpPoint &vpp) |
void | projection (const vpColVector &_cP, vpColVector &_p) |
void | projection () |
void | set_X (const double X) |
void | set_Y (const double Y) |
void | set_Z (const double Z) |
void | set_W (const double W) |
void | set_oX (const double oX) |
void | set_oY (const double oY) |
void | set_oZ (const double oZ) |
void | set_oW (const double oW) |
void | set_x (const double x) |
void | set_y (const double y) |
void | set_w (const double w) |
void | setWorldCoordinates (const double oX, const double oY, const double oZ) |
void | setWorldCoordinates (const vpColVector &P) |
void | setWorldCoordinates (const std::vector< double > &P) |
void | project () |
void | project (const vpHomogeneousMatrix &cMo) |
void | track (const vpHomogeneousMatrix &cMo) |
virtual void | print () const |
void | setDeallocate (vpForwardProjectionDeallocatorType d) |
vpForwardProjectionDeallocatorType | getDeallocate () |
Public Attributes | |
vpColVector | oP |
vpColVector | p |
vpColVector | cP |
bool | cPAvailable |
Friends | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &os, const vpPoint &vpp) |
Class that defines what is a point.
|
inherited |
Used for memory issue especially in the vpServo class.
Enumerator | |
---|---|
user | |
vpDisplayForwardProjection |
Definition at line 211 of file vpForwardProjection.h.
vpPoint::vpPoint | ( | ) |
Basic constructor.
Definition at line 64 of file vpPoint.cpp.
References init().
Referenced by changeFrame().
vpPoint::vpPoint | ( | double | oX, |
double | oY, | ||
double | oZ | ||
) |
Construction from 3D coordinates in the object frame.
oX,oY,oZ | Coordinates of a 3D point in the object frame. |
Definition at line 70 of file vpPoint.cpp.
References init(), and setWorldCoordinates().
|
explicit |
Construction from 3D point world coordinates. We mean here the coordinates of the point in the object frame.
P | Vector containing the coordinates of the 3D point in the object frame. This vector could be of dimension 3 or 4.
|
Definition at line 86 of file vpPoint.cpp.
References init(), and setWorldCoordinates().
|
explicit |
Construction from 3D point world coordinates. We mean here the coordinates of the point in the object frame.
P | Vector containing the coordinates of the 3D point in the object frame. This vector could be of dimension 3 or 4.
|
Definition at line 102 of file vpPoint.cpp.
References init(), and setWorldCoordinates().
|
inlinevirtual |
Destructor.
Definition at line 68 of file vpPoint.h.
References vpForwardProjection::changeFrame(), vpForwardProjection::display(), vpForwardProjection::duplicate(), vpColor::green, vpForwardProjection::init(), vpTracker::operator=(), vpForwardProjection::projection(), and vpForwardProjection::setWorldCoordinates().
|
virtual |
From the 3D coordinates of the point in the object frame set using for example setWorldCoordinates() or set_oX(), set_oY(), set_oZ(), compute the 3D coordinates of the point in the camera frame.
cMo | : Transformation from camera to object frame. |
_cP | : 3D coordinates of the point in the camera frame. |
Implements vpForwardProjection.
Definition at line 233 of file vpPoint.cpp.
References vpForwardProjection::oP, and vpColVector::resize().
Referenced by vpPolygon3D::changeFrame(), vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), display(), vpMbtDistanceLine::display(), vpMbtDistanceCylinder::display(), vpMbtFaceDepthNormal::displayFeature(), vpMbtDistanceLine::initMovingEdge(), vpMbtDistanceCylinder::initMovingEdge(), vpMbtDistanceLine::updateMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
|
virtual |
From the 3D coordinates of the point in the object frame set using for example setWorldCoordinates() or set_oX(), set_oY(), set_oZ(), compute the 3D coordinates of the point in the camera frame.
cMo | : Transformation from camera to object frame. |
Implements vpForwardProjection.
Definition at line 259 of file vpPoint.cpp.
References vpTracker::cP, duplicate(), get_W(), get_w(), get_X(), get_x(), get_Y(), get_y(), get_Z(), vpForwardProjection::oP, operator*(), set_oW(), set_oX(), set_oY(), set_oZ(), set_W(), set_w(), set_X(), set_x(), set_Y(), set_y(), set_Z(), and vpPoint().
|
virtual |
Display the point in the image.
Implements vpForwardProjection.
Definition at line 403 of file vpPoint.cpp.
References vpFeatureDisplay::displayPoint(), and vpTracker::p.
|
virtual |
Display the point in the image.
Implements vpForwardProjection.
Definition at line 358 of file vpPoint.cpp.
References changeFrame(), vpFeatureDisplay::displayPoint(), and projection().
void vpPoint::display | ( | const vpImage< vpRGBa > & | I, |
const vpHomogeneousMatrix & | cMo, | ||
const vpCameraParameters & | cam, | ||
const vpColor & | color = vpColor::green , |
||
const unsigned int | thickness = 1 |
||
) |
Display the point in the image.
Definition at line 375 of file vpPoint.cpp.
References changeFrame(), vpFeatureDisplay::displayPoint(), and projection().
|
virtual |
For memory issue (used by the vpServo class only).
Implements vpForwardProjection.
Definition at line 349 of file vpPoint.cpp.
Referenced by changeFrame().
double vpPoint::get_oW | ( | ) | const |
Get the point W coordinate in the object frame.
Definition at line 426 of file vpPoint.cpp.
References vpForwardProjection::oP.
double vpPoint::get_oX | ( | ) | const |
Get the point X coordinate in the object frame.
Definition at line 420 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceLine::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpMbtDistanceCylinder::buildFrom(), vpKeyPoint::compute3DForPointsOnCylinders(), vpPose::coplanar(), vpMbTracker::createCylinderBBox(), vpMbTracker::extractCylinders(), vpMbTracker::getGravityCenter(), vpPlane::init(), vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpMbtFaceDepthDense::samePoint(), vpMbtFaceDepthNormal::samePoint(), vpMbEdgeTracker::samePoint(), vpPlane::vpPlane(), and vpMbtDistanceLine::~vpMbtDistanceLine().
double vpPoint::get_oY | ( | ) | const |
Get the point Y coordinate in the object frame.
Definition at line 422 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceLine::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpMbtDistanceCylinder::buildFrom(), vpKeyPoint::compute3DForPointsOnCylinders(), vpPose::coplanar(), vpMbTracker::createCylinderBBox(), vpMbTracker::extractCylinders(), vpPlane::init(), vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpMbtFaceDepthDense::samePoint(), vpMbtFaceDepthNormal::samePoint(), vpMbEdgeTracker::samePoint(), vpPlane::vpPlane(), and vpMbtDistanceLine::~vpMbtDistanceLine().
double vpPoint::get_oZ | ( | ) | const |
Get the point Z coordinate in the object frame.
Definition at line 424 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceLine::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpMbtDistanceCylinder::buildFrom(), vpKeyPoint::compute3DForPointsOnCylinders(), vpPose::coplanar(), vpMbTracker::createCylinderBBox(), vpMbTracker::extractCylinders(), vpPlane::init(), vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpMbtFaceDepthDense::samePoint(), vpMbtFaceDepthNormal::samePoint(), vpMbEdgeTracker::samePoint(), vpPlane::vpPlane(), and vpMbtDistanceLine::~vpMbtDistanceLine().
double vpPoint::get_W | ( | ) | const |
Get the point W coordinate in the camera frame.
Definition at line 417 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
double vpPoint::get_w | ( | ) | const |
Get the point w coordinate in the image plane.
Definition at line 433 of file vpPoint.cpp.
References vpTracker::p.
Referenced by changeFrame(), and vpHomography::operator*().
double vpPoint::get_X | ( | ) | const |
Get the point X coordinate in the camera frame.
Definition at line 411 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpPlane::init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), vpPlane::projectionPointOnPlan(), vpPlane::rayIntersection(), and vpPlane::vpPlane().
double vpPoint::get_x | ( | ) | const |
Get the point x coordinate in the image plane.
Definition at line 429 of file vpPoint.cpp.
References vpTracker::p.
Referenced by changeFrame(), vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpKeyPoint::computePose(), vpPose::computeResidual(), vpFeatureBuilder::create(), vpMbtFaceDepthNormal::displayFeature(), vpKeyPoint::matchPointAndDetect(), vpHomography::operator*(), vpPose::poseFromRectangle(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpPose::poseRansac(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpHomography::project(), vpWireFrameSimulator::projectCameraTrajectory(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
double vpPoint::get_Y | ( | ) | const |
Get the point Y coordinate in the camera frame.
Definition at line 413 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpPlane::init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), vpPlane::projectionPointOnPlan(), vpPlane::rayIntersection(), and vpPlane::vpPlane().
double vpPoint::get_y | ( | ) | const |
Get the point y coordinate in the image plane.
Definition at line 431 of file vpPoint.cpp.
References vpTracker::p.
Referenced by changeFrame(), vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpKeyPoint::computePose(), vpPose::computeResidual(), vpFeatureBuilder::create(), vpMbtFaceDepthNormal::displayFeature(), vpKeyPoint::matchPointAndDetect(), vpHomography::operator*(), vpPose::poseFromRectangle(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpPose::poseRansac(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpHomography::project(), vpWireFrameSimulator::projectCameraTrajectory(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
double vpPoint::get_Z | ( | ) | const |
Get the point Z coordinate in the camera frame.
Definition at line 415 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpFeatureBuilder::create(), vpProjectionDisplay::displayCamera(), vpMbtFaceDepthNormal::displayFeature(), vpPlane::init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpPlane::projectionPointOnPlan(), vpPlane::rayIntersection(), and vpPlane::vpPlane().
|
inlineinherited |
Definition at line 220 of file vpForwardProjection.h.
void vpPoint::getWorldCoordinates | ( | double & | oX, |
double & | oY, | ||
double & | oZ | ||
) |
Get the point world coordinates. We mean here the coordinates of the point in the object frame.
Definition at line 177 of file vpPoint.cpp.
References vpForwardProjection::oP.
void vpPoint::getWorldCoordinates | ( | vpColVector & | P | ) |
Get the point world coordinates. We mean here the coordinates of the point in the object frame.
P | Normalized coordinates of the point in the object frame P = (X, Y, Z, 1) |
Definition at line 189 of file vpPoint.cpp.
References vpForwardProjection::oP.
vpColVector vpPoint::getWorldCoordinates | ( | void | ) |
Return the point world coordinates. We mean here the coordinates of the point in the object frame.
Definition at line 207 of file vpPoint.cpp.
References vpForwardProjection::oP.
void vpPoint::getWorldCoordinates | ( | std::vector< double > & | P | ) |
Get the point world coordinates. We mean here the coordinates of the point in the object frame.
P | Normalized coordinates of the point in the object frame P = (X, Y, Z, 1) |
Definition at line 195 of file vpPoint.cpp.
References vpForwardProjection::oP, vpColVector::resize(), and vpArray2D< Type >::size().
|
virtual |
Basic construction.
Implements vpForwardProjection.
Definition at line 48 of file vpPoint.cpp.
References vpTracker::cP, vpForwardProjection::oP, vpTracker::p, vpColVector::resize(), and set_Z().
Referenced by vpPoint().
Definition at line 390 of file vpPoint.cpp.
References vpTracker::cP, vpTracker::cPAvailable, vpForwardProjection::oP, and vpTracker::p.
|
virtualinherited |
Print to stdout the feature parameters in:
Definition at line 53 of file vpForwardProjection.cpp.
References vpTracker::cP, vpForwardProjection::oP, vpTracker::p, and vpColVector::t().
|
inherited |
Compute the feature parameters in the image plane (vpTracker::p) from the parameters in the camera frame (vpTracker::cP).
Definition at line 68 of file vpForwardProjection.cpp.
References vpTracker::cP, vpTracker::p, and vpForwardProjection::projection().
Referenced by vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpKeyPoint::computePose(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpKeyPoint::matchPointAndDetect(), vpForwardProjection::track(), vpMbtDistanceCircle::~vpMbtDistanceCircle(), vpMbtDistanceCylinder::~vpMbtDistanceCylinder(), and vpMbtDistanceLine::~vpMbtDistanceLine().
|
inherited |
Compute the feature parameters in the camera frame (vpTracker::cP) and than compute the projection of these parameters in the image plane (vpTracker::p).
cMo | : The homogeneous matrix corresponding to the pose between the camera frame and the object frame. |
Definition at line 84 of file vpForwardProjection.cpp.
References vpForwardProjection::changeFrame(), vpForwardProjection::projection(), and vpERROR_TRACE.
|
virtual |
Projection onto the image plane of a point. Input: the 3D coordinates in the camera frame _cP, output : the 2D coordinates _p.
Compute the perspective projection of a point _cP.
_cP | : Three dimension vector that corresponds to the coordinates of the point in the camera frame. |
_p | : Coordinates of the point in the image plane obtained by perspective projection. |
Implements vpForwardProjection.
Definition at line 216 of file vpPoint.cpp.
References vpColVector::resize().
Referenced by vpPolygon3D::changeFrame(), vpPolygon3D::computePolygonClipped(), vpMbtDistanceCylinder::display(), vpMbtDistanceCylinder::initMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
|
virtual |
Perspective projection of the point.
Projection onto the //image plane of the point. Update the object attribute p (2D //homogeneous coordinates) according to object attribute cP (current //3D coordinates in the camera frame).
Implements vpForwardProjection.
Definition at line 443 of file vpPoint.cpp.
References vpTracker::cP, and vpTracker::p.
Referenced by display().
void vpPoint::set_oW | ( | const double | oW | ) |
Set the point W coordinate in the object frame.
Definition at line 467 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by changeFrame(), and vpHomogeneousMatrix::operator*().
void vpPoint::set_oX | ( | const double | oX | ) |
Set the point X coordinate in the object frame.
Definition at line 461 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by changeFrame(), vpKeyPoint::computePose(), vpHomogeneousMatrix::operator*(), vpPose::poseDementhonNonPlan(), and vpPose::poseDementhonPlan().
void vpPoint::set_oY | ( | const double | oY | ) |
Set the point Y coordinate in the object frame.
Definition at line 463 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by changeFrame(), vpKeyPoint::computePose(), vpHomogeneousMatrix::operator*(), vpPose::poseDementhonNonPlan(), and vpPose::poseDementhonPlan().
void vpPoint::set_oZ | ( | const double | oZ | ) |
Set the point Z coordinate in the object frame.
Definition at line 465 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by changeFrame(), vpKeyPoint::computePose(), vpHomogeneousMatrix::operator*(), vpPose::poseDementhonNonPlan(), and vpPose::poseDementhonPlan().
void vpPoint::set_W | ( | const double | W | ) |
Set the point W coordinate in the camera frame.
Definition at line 458 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
void vpPoint::set_w | ( | const double | w | ) |
Set the point w coordinate in the image plane.
Definition at line 474 of file vpPoint.cpp.
References vpTracker::p.
Referenced by changeFrame(), and vpHomography::operator*().
void vpPoint::set_X | ( | const double | X | ) |
Set the point X coordinate in the camera frame.
Definition at line 452 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
void vpPoint::set_x | ( | const double | x | ) |
Set the point x coordinate in the image plane.
Definition at line 470 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpCalibration::addPoint(), changeFrame(), vpPose::findMatch(), vpMbTracker::initClick(), vpMbTracker::initFromPoints(), vpKeyPoint::matchPoint(), vpHomography::operator*(), and vpHomography::project().
void vpPoint::set_Y | ( | const double | Y | ) |
Set the point Y coordinate in the camera frame.
Definition at line 454 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
void vpPoint::set_y | ( | const double | y | ) |
Set the point y coordinate in the image plane.
Definition at line 472 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpCalibration::addPoint(), changeFrame(), vpPose::findMatch(), vpMbTracker::initClick(), vpMbTracker::initFromPoints(), vpKeyPoint::matchPoint(), vpHomography::operator*(), and vpHomography::project().
void vpPoint::set_Z | ( | const double | Z | ) |
Set the point Z coordinate in the camera frame.
Definition at line 456 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
|
inlineinherited |
Definition at line 219 of file vpForwardProjection.h.
void vpPoint::setWorldCoordinates | ( | const double | oX, |
const double | oY, | ||
const double | oZ | ||
) |
Set the 3D point world coordinates. We mean here the coordinates of the point in the object frame.
oX,oY,oZ | Coordinates of a 3D point in the object frame. |
Definition at line 113 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpKeyPoint::compute3D(), vpKeyPoint::compute3DForPointsOnCylinders(), vpMbtFaceDepthNormal::computeDesiredNormalAndCentroid(), vpMbTracker::extractCylinders(), vpMbTracker::extractFaces(), vpMbTracker::extractLines(), vpMbTracker::getGravityCenter(), vpProjectionDisplay::init(), vpMbtDistanceKltCylinder::init(), vpMbTracker::initClick(), vpMbTracker::initFromPoints(), vpMbTracker::loadCAOModel(), vpKeyPoint::matchPoint(), vpPose::poseFromRectangle(), vpPose::poseRansac(), vpWireFrameSimulator::projectCameraTrajectory(), and vpPoint().
|
virtual |
Set the 3D point world coordinates. We mean here the coordinates of the point in the object frame.
P | Vector containing the coordinates of the 3D point in the object frame. This vector could be of dimension 3 or 4.
|
Implements vpForwardProjection.
Definition at line 130 of file vpPoint.cpp.
References vpException::dimensionError, vpForwardProjection::oP, and vpArray2D< Type >::size().
void vpPoint::setWorldCoordinates | ( | const std::vector< double > & | P | ) |
Set the 3D point world coordinates. We mean here the coordinates of the point in the object frame.
P | Vector containing the coordinates of the 3D point in the object frame. This vector could be of dimension 3 or 4.
|
Definition at line 157 of file vpPoint.cpp.
References vpException::dimensionError, and vpForwardProjection::oP.
|
inherited |
Track the feature parameters in the camera frame (vpTracker::cP) and than compute the projection of these parameters in the image plane (vpTracker::p).
This method is similar to project(const vpHomogeneousMatrix &).
cMo | : The homogeneous matrix corresponding to the pose between the camera frame and the object frame. |
Definition at line 111 of file vpForwardProjection.cpp.
References vpForwardProjection::project(), and vpERROR_TRACE.
Referenced by vpPoseFeatures::addFeatureSegment(), vpPose::computeResidual(), vpProjectionDisplay::displayCamera(), vpPose::poseRansac(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpWireFrameSimulator::projectCameraTrajectory(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
friend |
Definition at line 388 of file vpPoint.cpp.
|
inherited |
Feature coordinates expressed in the camera frame cP.
Definition at line 75 of file vpTracker.h.
Referenced by vpFeaturePoint3D::buildFrom(), changeFrame(), vpCircle::changeFrame(), vpSphere::changeFrame(), vpCylinder::changeFrame(), vpLine::changeFrame(), vpFeatureBuilder::create(), get_W(), get_X(), get_Y(), get_Z(), vpCircle::init(), vpSphere::init(), init(), vpLine::init(), vpCylinder::init(), vpMbtPolygon::isVisible(), vpTracker::operator=(), operator=(), vpForwardProjection::print(), vpPose::printPoint(), vpForwardProjection::project(), vpCircle::projection(), vpSphere::projection(), projection(), vpLine::projection(), vpCylinder::projection(), set_W(), set_X(), set_Y(), and set_Z().
|
inherited |
Flag used to indicate if the feature parameters cP expressed in the camera frame are available.
Definition at line 81 of file vpTracker.h.
Referenced by vpTracker::init(), vpTracker::operator=(), and operator=().
|
inherited |
Feature coordinates expressed in the object frame, also called world frame.
Definition at line 74 of file vpForwardProjection.h.
Referenced by changeFrame(), vpCircle::changeFrame(), vpSphere::changeFrame(), vpCylinder::changeFrame(), vpLine::changeFrame(), get_oW(), get_oX(), get_oY(), get_oZ(), getWorldCoordinates(), vpCircle::init(), vpSphere::init(), init(), vpLine::init(), vpCylinder::init(), operator=(), vpForwardProjection::print(), vpPose::printPoint(), set_oW(), set_oX(), set_oY(), set_oZ(), vpCircle::setWorldCoordinates(), vpSphere::setWorldCoordinates(), setWorldCoordinates(), vpLine::setWorldCoordinates(), and vpCylinder::setWorldCoordinates().
|
inherited |
Feature coordinates expressed in the image plane p. They correspond to 2D normalized coordinates expressed in meters.
Definition at line 71 of file vpTracker.h.
Referenced by vpMbtDistanceCircle::computeInteractionMatrixError(), vpCircle::computeIntersectionPoint(), vpMeterPixelConversion::convertEllipse(), vpFeatureBuilder::create(), display(), vpCircle::display(), vpSphere::display(), vpCylinder::display(), vpProjectionDisplay::display(), vpLine::display(), vpProjectionDisplay::displayCamera(), vpPose::displayModel(), get_w(), get_x(), get_y(), vpCircle::init(), vpSphere::init(), vpMeTracker::init(), init(), vpLine::init(), vpCylinder::init(), vpTracker::operator=(), operator=(), vpForwardProjection::print(), vpPose::printPoint(), vpForwardProjection::project(), vpCircle::projection(), vpSphere::projection(), projection(), vpLine::projection(), vpCylinder::projection(), set_w(), set_x(), and set_y().