Visual Servoing Platform
version 3.3.0 under development (2020-02-17)
|
#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, unsigned int thickness=1) |
void | display (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1) |
void | display (const vpImage< vpRGBa > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &color=vpColor::green, 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)=default |
void | projection (const vpColVector &_cP, vpColVector &_p) |
void | projection () |
void | set_X (double X) |
void | set_Y (double Y) |
void | set_Z (double Z) |
void | set_W (double W) |
void | set_oX (double oX) |
void | set_oY (double oY) |
void | set_oZ (double oZ) |
void | set_oW (double oW) |
void | set_x (double x) |
void | set_y (double y) |
void | set_w (double w) |
void | setWorldCoordinates (double oX, double oY, 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(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpMbtDistanceLine::getModelForDisplay(), vpMbtDistanceCylinder::getModelForDisplay(), 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 405 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 , |
||
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 428 of file vpPoint.cpp.
References vpForwardProjection::oP.
double vpPoint::get_oX | ( | ) | const |
Get the point X coordinate in the object frame.
Definition at line 422 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbTracker::addProjectionErrorPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpMbtDistanceLine::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(), vpMbTracker::samePoint(), vpPlane::vpPlane(), and vpMbtDistanceLine::~vpMbtDistanceLine().
double vpPoint::get_oY | ( | ) | const |
Get the point Y coordinate in the object frame.
Definition at line 424 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbTracker::addProjectionErrorPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpMbtDistanceLine::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(), vpMbTracker::samePoint(), vpPlane::vpPlane(), and vpMbtDistanceLine::~vpMbtDistanceLine().
double vpPoint::get_oZ | ( | ) | const |
Get the point Z coordinate in the object frame.
Definition at line 426 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbTracker::addProjectionErrorPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpMbtDistanceLine::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(), vpMbTracker::samePoint(), vpPlane::vpPlane(), and vpMbtDistanceLine::~vpMbtDistanceLine().
double vpPoint::get_W | ( | ) | const |
Get the point W coordinate in the camera frame.
Definition at line 419 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 435 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 413 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), 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 431 of file vpPoint.cpp.
References vpTracker::p.
Referenced by changeFrame(), vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpKeyPoint::computePose(), vpPose::computeResidual(), vpFeatureBuilder::create(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpKeyPoint::matchPointAndDetect(), vpHomography::operator*(), vpPose::poseFromRectangle(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), 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 415 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), 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 433 of file vpPoint.cpp.
References vpTracker::p.
Referenced by changeFrame(), vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpKeyPoint::computePose(), vpPose::computeResidual(), vpFeatureBuilder::create(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpKeyPoint::matchPointAndDetect(), vpHomography::operator*(), vpPose::poseFromRectangle(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), 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 417 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpFeatureBuilder::create(), vpProjectionDisplay::displayCamera(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), 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().
|
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(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), 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::getModelForDisplay(), 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 445 of file vpPoint.cpp.
References vpTracker::cP, and vpTracker::p.
Referenced by display().
void vpPoint::set_oW | ( | double | oW | ) |
Set the point W coordinate in the object frame.
Definition at line 469 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by changeFrame(), and vpHomogeneousMatrix::operator*().
void vpPoint::set_oX | ( | double | oX | ) |
Set the point X 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_oY | ( | double | oY | ) |
Set the point Y 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_oZ | ( | double | oZ | ) |
Set the point Z coordinate in the object frame.
Definition at line 467 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by changeFrame(), vpKeyPoint::computePose(), vpHomogeneousMatrix::operator*(), vpPose::poseDementhonNonPlan(), and vpPose::poseDementhonPlan().
void vpPoint::set_W | ( | double | W | ) |
Set the point W coordinate in the camera frame.
Definition at line 460 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
void vpPoint::set_w | ( | double | w | ) |
Set the point w coordinate in the image plane.
Definition at line 476 of file vpPoint.cpp.
References vpTracker::p.
Referenced by changeFrame(), and vpHomography::operator*().
void vpPoint::set_X | ( | double | X | ) |
Set the point X 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(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
void vpPoint::set_x | ( | double | x | ) |
Set the point x coordinate in the image plane.
Definition at line 472 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpCalibration::addPoint(), changeFrame(), vpPose::findMatch(), vpMbTracker::initFromPoints(), vpKeyPoint::matchPoint(), vpHomography::operator*(), and vpHomography::project().
void vpPoint::set_Y | ( | double | Y | ) |
Set the point Y 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(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
void vpPoint::set_y | ( | double | y | ) |
Set the point y coordinate in the image plane.
Definition at line 474 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpCalibration::addPoint(), changeFrame(), vpPose::findMatch(), vpMbTracker::initFromPoints(), vpKeyPoint::matchPoint(), vpHomography::operator*(), and vpHomography::project().
void vpPoint::set_Z | ( | double | Z | ) |
Set the point Z coordinate in the camera frame.
Definition at line 458 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by changeFrame(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpPolygon3D::computePolygonClipped(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
|
inlineinherited |
Definition at line 219 of file vpForwardProjection.h.
void vpPoint::setWorldCoordinates | ( | double | oX, |
double | oY, | ||
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(), vpMbTracker::addProjectionErrorPolygon(), vpKeyPoint::compute3D(), vpKeyPoint::compute3DForPointsOnCylinders(), vpMbtFaceDepthNormal::computeDesiredNormalAndCentroid(), vpMbTracker::extractCylinders(), vpMbTracker::extractFaces(), vpMbTracker::extractLines(), vpMbTracker::getGravityCenter(), vpProjectionDisplay::init(), vpMbtDistanceKltCylinder::init(), vpMbTracker::initFromPoints(), vpMbTracker::loadCAOModel(), vpKeyPoint::matchPoint(), vpPose::poseFromRectangle(), 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(), ImageDisplay(withContext)::displayFrameWithContext:::::, vpImageDraw::drawFrame(), 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=(), 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(), and vpTracker::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(), 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(), vpFeatureDisplay::displayEllipse(), ImageDisplay(withContext)::displayFrameWithContext:::::, vpPose::displayModel(), vpImageDraw::drawFrame(), get_w(), get_x(), get_y(), vpCircle::init(), vpSphere::init(), vpMeTracker::init(), init(), vpLine::init(), vpCylinder::init(), vpTracker::operator=(), vpForwardProjection::print(), vpPose::printPoint(), vpForwardProjection::project(), vpCircle::projection(), vpSphere::projection(), projection(), vpLine::projection(), vpCylinder::projection(), set_w(), set_x(), and set_y().