![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpPoint.h>
Public Types | |
| enum | vpForwardProjectionDeallocatorType { user , vpDisplayForwardProjection } |
Public Member Functions | |
| vpPoint () | |
| vpPoint (double oX, double oY, double oZ) | |
| VP_EXPLICIT | vpPoint (const vpColVector &oP) |
| VP_EXPLICIT | vpPoint (const std::vector< double > &oP) |
| void | changeFrame (const vpHomogeneousMatrix &cMo, vpColVector &cP) const VP_OVERRIDE |
| void | changeFrame (const vpHomogeneousMatrix &cMo) VP_OVERRIDE |
| void | display (const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1) VP_OVERRIDE |
| void | display (const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1) VP_OVERRIDE |
| void | display (const vpImage< vpRGBa > &I, 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 VP_OVERRIDE |
| 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 &oP) |
| vpColVector | getWorldCoordinates (void) |
| void | getWorldCoordinates (std::vector< double > &oP) |
| void | projection (const vpColVector &_cP, vpColVector &_p) const VP_OVERRIDE |
| void | projection () VP_OVERRIDE |
| void | set_X (double cX) |
| void | set_Y (double cY) |
| void | set_Z (double cZ) |
| void | set_W (double cW) |
| 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 &oP) VP_OVERRIDE |
| void | setWorldCoordinates (const std::vector< double > &oP) |
Public Member Functions Inherited from vpForwardProjection | |
| vpColVector | get_oP () const |
| vpForwardProjectionDeallocatorType | getDeallocate () |
| virtual void | print () const |
| void | project () |
| void | project (const vpHomogeneousMatrix &cMo) |
| void | setDeallocate (vpForwardProjectionDeallocatorType d) |
| void | track (const vpHomogeneousMatrix &cMo) |
Public Member Functions Inherited from vpTracker | |
| vpColVector | get_p () const |
| vpColVector | get_cP () const |
Public Attributes | |
Public Attributes Inherited from vpForwardProjection | |
| vpColVector | oP |
Public Attributes Inherited from vpTracker | |
| vpColVector | p |
| vpColVector | cP |
| bool | cPAvailable |
Protected Member Functions | |
| void | init () VP_OVERRIDE |
Friends | |
| VISP_EXPORT std::ostream & | operator<< (std::ostream &os, const vpPoint &vpp) |
Class that defines a 3D point in the object frame and allows forward projection of a 3D point in the camera frame and in the 2D image plane by perspective projection. All the parameters must be set in meter.
A 3D point has the followings parameters:
|
inherited |
Used for memory issue especially in the vpServo class.
| Enumerator | |
|---|---|
| user | |
| vpDisplayForwardProjection | |
Definition at line 70 of file vpForwardProjection.h.
| vpPoint::vpPoint | ( | ) |
Basic constructor.
Definition at line 63 of file vpPoint.cpp.
References init().
Referenced by duplicate(), and operator<<.
| vpPoint::vpPoint | ( | double | oX, |
| double | oY, | ||
| double | oZ ) |
Construction from a 3D point with coordinates in object frame.
| oX | : Coordinates along X-axis of a 3D point in object frame. |
| oY | : Coordinates along Y-axis of a 3D point in object frame. |
| oZ | : Coordinates along Z-axis of a 3D point in object frame. |
Definition at line 71 of file vpPoint.cpp.
References init(), and setWorldCoordinates().
| vpPoint::vpPoint | ( | const vpColVector & | oP_ | ) |
Construction from a 3D point with coordinates in object frame.
| oP_ | : Vector containing the coordinates of the 3D point in the object frame. This vector could be of dimension 3 or 4.
|
Definition at line 87 of file vpPoint.cpp.
References init(), and setWorldCoordinates().
| vpPoint::vpPoint | ( | const std::vector< double > & | oP_ | ) |
Construction from a 3D point with coordinates in object frame.
| oP_ | : Vector containing the coordinates of the 3D point in the object frame. This vector could be of dimension 3 or 4.
|
Definition at line 103 of file vpPoint.cpp.
References init(), and setWorldCoordinates().
|
virtual |
From the 3D coordinates of the point in the object frame oP that are set using for example setWorldCoordinates() or set_oX(), set_oY(), set_oZ(), compute the 3D coordinates of the point in the camera frame cP = cMo * oP.
| cMo | : Transformation from camera to object frame. |
Implements vpForwardProjection.
Definition at line 302 of file vpPoint.cpp.
References vpTracker::cP, and vpForwardProjection::oP.
|
virtual |
From the 3D coordinates of the point in the object frame oP that are set using for example setWorldCoordinates() or set_oX(), set_oY(), set_oZ(), compute the 3D coordinates of the point in the camera frame cP = cMo * oP.
| cMo | : Transformation from camera to object frame. |
| v_cP | : 3D normalized coordinates of the point in the camera frame cP = (cX, cY, cZ, 1). |
Implements vpForwardProjection.
Definition at line 273 of file vpPoint.cpp.
References vpForwardProjection::oP, and vpColVector::resize().
Referenced by vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), display(), display(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), and vpMbtFaceDepthNormal::planeIsInvalid().
|
virtual |
Display the projection of a 3D point in image I.
| I | : Image used as background. |
| cam | : Camera parameters. |
| color | : Color used to draw the point. |
| thickness | : Thickness used to draw the point. |
Implements vpForwardProjection.
Definition at line 387 of file vpPoint.cpp.
References vpFeatureDisplay::displayPoint(), and vpTracker::p.
|
virtual |
Display the projection of a 3D point in image I. This method is non destructive wrt. cP and p internal 3D point parameters.
| I | : Image used as background. |
| cMo | : Homogeneous transformation from camera frame to object frame. The point is considered as viewed from this camera position. |
| cam | : Camera parameters. |
| color | : Color used to draw the sphere. |
| thickness | : Thickness used to draw the sphere. |
Implements vpForwardProjection.
Definition at line 338 of file vpPoint.cpp.
References changeFrame(), vpFeatureDisplay::displayPoint(), and projection().
| void vpPoint::display | ( | const vpImage< vpRGBa > & | I, |
| const vpCameraParameters & | cam, | ||
| const vpColor & | color = vpColor::green, | ||
| unsigned int | thickness = 1 ) |
Display the projection of a 3D point in image I.
| I | : Image used as background. |
| cam | : Camera parameters. |
| color | : Color used to draw the point. |
| thickness | : Thickness used to draw the point. |
Definition at line 401 of file vpPoint.cpp.
References vpFeatureDisplay::displayPoint(), and vpTracker::p.
| void vpPoint::display | ( | const vpImage< vpRGBa > & | I, |
| const vpHomogeneousMatrix & | cMo, | ||
| const vpCameraParameters & | cam, | ||
| const vpColor & | color = vpColor::green, | ||
| unsigned int | thickness = 1 ) |
Display the projection of a 3D point in image I. This method is non destructive wrt. cP and p internal 3D point parameters.
| I | : Image used as background. |
| cMo | : Homogeneous transformation from camera frame to object frame. The point is considered as viewed from this camera position. |
| cam | : Camera parameters. |
| color | : Color used to draw the sphere. |
| thickness | : Thickness used to draw the sphere. |
Definition at line 364 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 321 of file vpPoint.cpp.
References vpPoint().
|
inlineinherited |
Return object parameters expressed in the 3D camera frame.
Definition at line 95 of file vpTracker.h.
References cP.
|
inlineinherited |
Return object parameters expressed in the 3D object frame.
Definition at line 155 of file vpForwardProjection.h.
References oP.
| double vpPoint::get_oW | ( | ) | const |
Get the point oW coordinate in the object frame.
Definition at line 424 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by operator<<, and vpPlane::projectionPointOnPlan().
| double vpPoint::get_oX | ( | ) | const |
Get the point oX coordinate in the object frame.
Definition at line 418 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbTracker::addProjectionErrorPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceCylinder::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpKeyPoint::compute3DForPointsOnCylinders(), vpPose::coplanar(), vpMbTracker::createCylinderBBox(), vpRBKltTracker::vpTrackedKltPoint::distance(), vpMbTracker::extractCylinders(), vpPlane::init(), vpPlane::init(), operator<<, vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpPlane::projectionPointOnPlan(), vpMbtFaceDepthDense::samePoint(), vpMbtFaceDepthNormal::samePoint(), vpMbTracker::samePoint(), and vpPlane::vpPlane().
| double vpPoint::get_oY | ( | ) | const |
Get the point oY coordinate in the object frame.
Definition at line 420 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbTracker::addProjectionErrorPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceCylinder::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpKeyPoint::compute3DForPointsOnCylinders(), vpPose::coplanar(), vpMbTracker::createCylinderBBox(), vpRBKltTracker::vpTrackedKltPoint::distance(), vpMbTracker::extractCylinders(), vpPlane::init(), vpPlane::init(), operator<<, vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpPlane::projectionPointOnPlan(), vpMbtFaceDepthDense::samePoint(), vpMbtFaceDepthNormal::samePoint(), vpMbTracker::samePoint(), and vpPlane::vpPlane().
| double vpPoint::get_oZ | ( | ) | const |
Get the point oZ coordinate in the object frame.
Definition at line 422 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbTracker::addProjectionErrorPolygon(), vpMbtDistanceCircle::buildFrom(), vpMbtDistanceCylinder::buildFrom(), vpMbtDistanceKltCylinder::buildFrom(), vpKeyPoint::compute3DForPointsOnCylinders(), vpPose::coplanar(), vpMbTracker::createCylinderBBox(), vpRBKltTracker::vpTrackedKltPoint::distance(), vpMbTracker::extractCylinders(), vpPlane::init(), vpPlane::init(), operator<<, vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpPlane::projectionPointOnPlan(), vpMbtFaceDepthDense::samePoint(), vpMbtFaceDepthNormal::samePoint(), vpMbTracker::samePoint(), and vpPlane::vpPlane().
|
inlineinherited |
Return object parameters expressed in the 2D image plane computed by perspective projection.
Definition at line 93 of file vpTracker.h.
References p.
| double vpPoint::get_W | ( | ) | const |
Get the point cW coordinate in the camera frame.
Definition at line 415 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by vpHomogeneousMatrix::operator*(), operator<<, and vpPlane::projectionPointOnPlan().
| double vpPoint::get_w | ( | ) | const |
Get the point w coordinate in the image plane.
Definition at line 431 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpHomography::operator*(), and operator<<.
| double vpPoint::get_X | ( | ) | const |
Get the point cX coordinate in the camera frame.
Definition at line 409 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpPlane::init(), vpPlane::init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), operator<<, vpMbtFaceDepthNormal::planeIsInvalid(), vpPlane::projectionPointOnPlan(), vpPlane::rayIntersection(), and vpPlane::vpPlane().
| double vpPoint::get_x | ( | ) | const |
Get the point x coordinate in the image plane.
Definition at line 427 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpPose::computeResidual(), vpPose::computeResidual(), vpFeatureBuilder::create(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpKeyPoint::matchPointAndDetect(), vpHomography::operator*(), operator<<, vpPose::poseFromRectangle(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpHomography::project(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
| double vpPoint::get_Y | ( | ) | const |
Get the point cY coordinate in the camera frame.
Definition at line 411 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpPlane::init(), vpPlane::init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), operator<<, vpMbtFaceDepthNormal::planeIsInvalid(), vpPlane::projectionPointOnPlan(), vpPlane::rayIntersection(), and vpPlane::vpPlane().
| double vpPoint::get_y | ( | ) | const |
Get the point y coordinate in the image plane.
Definition at line 429 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpPose::computeResidual(), vpPose::computeResidual(), vpFeatureBuilder::create(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpKeyPoint::matchPointAndDetect(), vpHomography::operator*(), operator<<, vpPose::poseFromRectangle(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseLowe(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpHomography::project(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
| double vpPoint::get_Z | ( | ) | const |
Get the point cZ coordinate in the camera frame.
Definition at line 413 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpPlane::init(), vpPlane::init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), operator<<, vpMbtFaceDepthNormal::planeIsInvalid(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpPlane::projectionPointOnPlan(), vpPlane::rayIntersection(), and vpPlane::vpPlane().
|
inlineinherited |
Definition at line 157 of file vpForwardProjection.h.
| void vpPoint::getWorldCoordinates | ( | double & | oX, |
| double & | oY, | ||
| double & | oZ ) |
Get the point object frame coordinates.
Definition at line 203 of file vpPoint.cpp.
References vpForwardProjection::oP.
| void vpPoint::getWorldCoordinates | ( | std::vector< double > & | oP_ | ) |
Get the point object frame normalized coordinates.
| oP_ | : Normalized coordinates of the point in the object frame oP = (oX, oY, oZ, oW) as a 4-dim vector. |
Definition at line 227 of file vpPoint.cpp.
References vpForwardProjection::oP, and vpColVector::resize().
| vpColVector vpPoint::getWorldCoordinates | ( | void | ) |
Return the point object frame normalized coordinates.
Definition at line 242 of file vpPoint.cpp.
References vpForwardProjection::oP.
| void vpPoint::getWorldCoordinates | ( | vpColVector & | oP_ | ) |
Get the point object frame normalized coordinates.
| oP_ | : Normalized coordinates of the point in the object frame oP = (oX, oY, oZ, oW) as a 4-dim vector. |
Definition at line 219 of file vpPoint.cpp.
References vpForwardProjection::oP.
|
protectedvirtual |
Basic construction.
Implements vpForwardProjection.
Definition at line 43 of file vpPoint.cpp.
References vpTracker::cP, vpForwardProjection::oP, vpTracker::p, and set_Z().
Referenced by vpPoint(), vpPoint(), vpPoint(), and vpPoint().
|
virtualinherited |
Print to stdout the feature parameters in:
Definition at line 48 of file vpForwardProjection.cpp.
References vpTracker::cP, oP, and vpTracker::p.
|
inherited |
Compute the feature parameters in the image plane (vpTracker::p) from the parameters in the camera frame (vpTracker::cP).
Definition at line 63 of file vpForwardProjection.cpp.
References vpTracker::cP, vpTracker::p, and projection().
Referenced by vpMbtDistanceKltCylinder::computeInteractionMatrixAndResidu(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), vpKeyPoint::matchPointAndDetect(), vpMbtFaceDepthNormal::planeIsInvalid(), projection(), and track().
|
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 79 of file vpForwardProjection.cpp.
References changeFrame(), and projection().
|
virtual |
Perspective projection of the 3D 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 441 of file vpPoint.cpp.
References vpTracker::cP, and vpTracker::p.
|
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.
| v_cP | : 3-dim vector cP = (cX, cY, cZ) or 4-dim vector cP = (cX, cY, cZ, 1) corresponding to the normalized coordinates of the 3D point in the camera frame. |
| v_p | : Coordinates of the point in the image plane obtained by perspective projection. |
Implements vpForwardProjection.
Definition at line 252 of file vpPoint.cpp.
References vpColVector::resize().
Referenced by vpPolygon3D::computePolygonClipped().
| void vpPoint::set_oW | ( | double | oW | ) |
Set the point oW coordinate in the object frame.
Definition at line 468 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
| void vpPoint::set_oX | ( | double | oX | ) |
Set the point oX coordinate in the object frame.
Definition at line 462 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpHomogeneousMatrix::operator*(), vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), and vpPlane::projectionPointOnPlan().
| void vpPoint::set_oY | ( | double | oY | ) |
Set the point oY coordinate in the object frame.
Definition at line 464 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpHomogeneousMatrix::operator*(), vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), and vpPlane::projectionPointOnPlan().
| void vpPoint::set_oZ | ( | double | oZ | ) |
Set the point oZ coordinate in the object frame.
Definition at line 466 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpHomogeneousMatrix::operator*(), vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), and vpPlane::projectionPointOnPlan().
| void vpPoint::set_W | ( | double | cW | ) |
Set the point cW coordinate in the camera frame.
Definition at line 459 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
| void vpPoint::set_w | ( | double | w | ) |
Set the point w coordinate in the image plane.
Definition at line 475 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpHomography::operator*().
| void vpPoint::set_X | ( | double | cX | ) |
Set the point cX coordinate in the camera frame.
Definition at line 453 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), 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 471 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpPose::computePlanarObjectPoseWithAtLeast3Points(), vpPose::findMatch(), vpMbTracker::initFromPoints(), vpKeyPoint::matchPoint(), vpHomography::operator*(), and vpHomography::project().
| void vpPoint::set_Y | ( | double | cY | ) |
Set the point cY coordinate in the camera frame.
Definition at line 455 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), 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 473 of file vpPoint.cpp.
References vpTracker::p.
Referenced by vpPose::computePlanarObjectPoseWithAtLeast3Points(), vpPose::findMatch(), vpMbTracker::initFromPoints(), vpKeyPoint::matchPoint(), vpHomography::operator*(), and vpHomography::project().
| void vpPoint::set_Z | ( | double | cZ | ) |
Set the point cZ coordinate in the camera frame.
Definition at line 457 of file vpPoint.cpp.
References vpTracker::cP.
Referenced by vpMbtFaceDepthNormal::computeNormalVisibility(), vpPose::computePlanarObjectPoseWithAtLeast3Points(), vpMbtFaceDepthNormal::computePolygonCentroid(), vpMbtFaceDepthDense::computeROI(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::displayFeature(), vpMbtFaceDepthNormal::getFeaturesForDisplay(), init(), vpMbtPolygon::isVisible(), vpHomogeneousMatrix::operator*(), and vpPlane::projectionPointOnPlan().
|
inlineinherited |
Definition at line 185 of file vpForwardProjection.h.
| void vpPoint::setWorldCoordinates | ( | const std::vector< double > & | oP_ | ) |
Set the 3D point object frame coordinates.
| oP_ | : Vector containing the coordinates of the 3D point in the object frame. This vector could be of dimension 3 or 4.
|
Definition at line 175 of file vpPoint.cpp.
References vpException::dimensionError, and vpForwardProjection::oP.
|
virtual |
Set the 3D point object frame coordinates.
| oP_ | : 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 138 of file vpPoint.cpp.
References vpException::dimensionError, vpForwardProjection::oP, and vpArray2D< Type >::size().
| void vpPoint::setWorldCoordinates | ( | double | oX, |
| double | oY, | ||
| double | oZ ) |
Set the 3D point object frame coordinates oP = (oX, oY, oZ, 1).
| oX | : Coordinates along X-axis of a 3D point in object frame. |
| oY | : Coordinates along Y-axis of a 3D point in object frame. |
| oZ | : Coordinates along Z-axis of a 3D point in object frame. |
Definition at line 116 of file vpPoint.cpp.
References vpForwardProjection::oP.
Referenced by vpMbTracker::addPolygon(), vpMbTracker::addProjectionErrorPolygon(), vpKeyPoint::compute3D(), vpKeyPoint::compute3DForPointsOnCylinders(), vpKeyPoint::compute3DForPointsOnCylinders(), vpMbTracker::extractCylinders(), vpMbTracker::extractFaces(), vpMbTracker::extractLines(), vpMbTracker::getGravityCenter(), vpMbTracker::initFromPoints(), vpKeyPoint::matchPoint(), vpPose::poseFromRectangle(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpPoint(), vpPoint(), and vpPoint().
|
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 101 of file vpForwardProjection.cpp.
References project().
Referenced by vpPose::computeResidual(), vpPose::computeResidual(), vpImageDraw::drawFrame(), vpImageDraw::drawFrame(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), setWorldCoordinates(), vpSimulatorAfma6::updateArticularPosition(), and vpSimulatorViper850::updateArticularPosition().
|
friend |
Overload of the stream operator for vpPoint.
| os | : The output stream that will contain the vpPoint information:
|
| vpp | : The vpPoint to output. |
The following code snippet shows how to use this operator.
It produces the following output:
Definition at line 502 of file vpPoint.cpp.
References get_oW(), get_oX(), get_oY(), get_oZ(), get_W(), get_w(), get_X(), get_x(), get_Y(), get_y(), get_Z(), operator<<, and vpPoint().
Referenced by operator<<.
|
inherited |
Feature coordinates expressed in the camera frame cP.
Definition at line 73 of file vpTracker.h.
Referenced by vpCircle::changeFrame(), vpCylinder::changeFrame(), vpForwardProjection::changeFrame(), vpLine::changeFrame(), vpPoint::changeFrame(), vpSphere::changeFrame(), vpFeatureBuilder::create(), get_cP(), vpPoint::get_W(), vpPoint::get_X(), vpPoint::get_Y(), vpPoint::get_Z(), vpCircle::getA(), vpCylinder::getA(), vpCircle::getB(), vpCylinder::getB(), vpCircle::getC(), vpCylinder::getC(), vpCircle::getR(), vpCylinder::getR(), vpSphere::getR(), vpCircle::getX(), vpCylinder::getX(), vpSphere::getX(), vpCircle::getY(), vpCylinder::getY(), vpSphere::getY(), vpCircle::getZ(), vpCylinder::getZ(), vpSphere::getZ(), vpCircle::init(), vpCylinder::init(), vpLine::init(), vpPoint::init(), vpSphere::init(), vpCircle::operator=(), operator=(), vpForwardProjection::print(), vpPose::printPoint(), vpForwardProjection::project(), vpCircle::projection(), vpCylinder::projection(), vpForwardProjection::projection(), vpLine::projection(), vpLine::projection(), vpPoint::projection(), vpSphere::projection(), vpPoint::set_W(), vpPoint::set_X(), vpPoint::set_Y(), vpPoint::set_Z(), vpTracker(), and vpTracker().
|
inherited |
Flag used to indicate if the feature parameters cP expressed in the camera frame are available.
Definition at line 79 of file vpTracker.h.
Referenced by init(), operator=(), vpTracker(), and vpTracker().
|
inherited |
Feature coordinates expressed in the object frame.
Definition at line 205 of file vpForwardProjection.h.
Referenced by vpCircle::changeFrame(), vpCircle::changeFrame(), vpCylinder::changeFrame(), vpLine::changeFrame(), vpPoint::changeFrame(), vpPoint::changeFrame(), vpSphere::changeFrame(), get_oP(), vpPoint::get_oW(), vpPoint::get_oX(), vpPoint::get_oY(), vpPoint::get_oZ(), vpPoint::getWorldCoordinates(), vpPoint::getWorldCoordinates(), vpPoint::getWorldCoordinates(), vpPoint::getWorldCoordinates(), vpCircle::init(), vpCylinder::init(), vpLine::init(), vpPoint::init(), vpSphere::init(), vpCircle::operator=(), print(), vpPose::printPoint(), vpPoint::set_oW(), vpPoint::set_oX(), vpPoint::set_oY(), vpPoint::set_oZ(), vpCircle::setWorldCoordinates(), vpCircle::setWorldCoordinates(), vpCylinder::setWorldCoordinates(), vpCylinder::setWorldCoordinates(), setWorldCoordinates(), vpLine::setWorldCoordinates(), vpLine::setWorldCoordinates(), vpLine::setWorldCoordinates(), vpPoint::setWorldCoordinates(), vpPoint::setWorldCoordinates(), vpPoint::setWorldCoordinates(), vpSphere::setWorldCoordinates(), vpSphere::setWorldCoordinates(), and vpForwardProjection().
|
inherited |
Feature coordinates expressed in the image plane p. They correspond to 2D normalized coordinates expressed in meters.
Definition at line 69 of file vpTracker.h.
Referenced by vpCircle::computeIntersectionPoint(), vpMeterPixelConversion::convertEllipse(), vpMeterPixelConversion::convertEllipse(), vpMeterPixelConversion::convertEllipse(), vpMeterPixelConversion::convertEllipse(), vpCircle::display(), vpCircle::display(), vpCylinder::display(), vpCylinder::display(), vpLine::display(), vpLine::display(), vpPoint::display(), vpPoint::display(), vpSphere::display(), vpSphere::display(), vpFeatureDisplay::displayEllipse(), vpFeatureDisplay::displayEllipse(), vpPose::displayModel(), vpPose::displayModel(), vpImageDraw::drawFrame(), vpImageDraw::drawFrame(), vpCircle::get_mu02(), vpSphere::get_mu02(), vpCircle::get_mu11(), vpSphere::get_mu11(), vpCircle::get_mu20(), vpSphere::get_mu20(), vpCircle::get_n02(), vpSphere::get_n02(), vpCircle::get_n11(), vpSphere::get_n11(), vpCircle::get_n20(), vpSphere::get_n20(), get_p(), vpPoint::get_w(), vpCircle::get_x(), vpPoint::get_x(), vpSphere::get_x(), vpCircle::get_y(), vpPoint::get_y(), vpSphere::get_y(), vpLine::getRho(), vpCylinder::getRho1(), vpCylinder::getRho2(), vpLine::getTheta(), vpCylinder::getTheta1(), vpCylinder::getTheta2(), vpCircle::init(), vpCylinder::init(), vpLine::init(), vpMeTracker::init(), vpPoint::init(), vpSphere::init(), vpCircle::operator=(), operator=(), vpForwardProjection::print(), vpPose::printPoint(), vpForwardProjection::project(), vpCircle::projection(), vpCylinder::projection(), vpForwardProjection::projection(), vpLine::projection(), vpPoint::projection(), vpSphere::projection(), vpPoint::set_w(), vpPoint::set_x(), vpPoint::set_y(), vpLine::setRho(), vpLine::setTheta(), vpTracker(), and vpTracker().