![]() |
Visual Servoing Platform
version 3.3.0
|
#include <vpMeTracker.h>
Inheritance diagram for vpMeTracker:Public Member Functions | |
| vpMeTracker () | |
| vpMeTracker (const vpMeTracker &meTracker) | |
| virtual | ~vpMeTracker () |
| void | init () |
| void | initTracking (const vpImage< unsigned char > &I) |
| void | track (const vpImage< unsigned char > &I) |
| unsigned int | numberOfSignal () |
| unsigned int | totalNumberOfSignal () |
| virtual void | display (const vpImage< unsigned char > &I, vpColor col)=0 |
| virtual void | display (const vpImage< unsigned char > &I) |
| virtual void | display (const vpImage< vpRGBa > &I) |
| void | display (const vpImage< unsigned char > &I, vpColVector &w, unsigned int &index_w) |
| void | setDisplay (vpMeSite::vpMeSiteDisplayType select) |
| vpMeTracker & | operator= (vpMeTracker &f) |
| int | outOfImage (int i, int j, int half, int row, int cols) |
| int | outOfImage (const vpImagePoint &iP, int half, int rows, int cols) |
| void | reset () |
| virtual void | sample (const vpImage< unsigned char > &image, bool doNotTrack=false)=0 |
| void | setInitRange (const unsigned int &r) |
| unsigned int | getInitRange () |
| virtual void | setMask (const vpImage< bool > &mask) |
| void | setMe (vpMe *p_me) |
| vpMe * | getMe () |
| void | setMeList (const std::list< vpMeSite > &l) |
| std::list< vpMeSite > & | getMeList () |
| std::list< vpMeSite > | getMeList () const |
| int | getNbPoints () const |
Static Public Member Functions | |
| static bool | inMask (const vpImage< bool > *mask, unsigned int i, unsigned int j) |
Public Attributes | |
| std::list< vpMeSite > | list |
| vpMe * | me |
| unsigned int | init_range |
| int | nGoodElement |
| const vpImage< bool > * | m_mask |
| int | query_range |
| bool | display_point |
| vpColVector | p |
| vpColVector | cP |
| bool | cPAvailable |
Protected Attributes | |
| vpMeSite::vpMeSiteDisplayType | selectDisplay |
Contains abstract elements for a Distance to Feature type feature.
2D state = list of points, 3D state = feature
Definition at line 64 of file vpMeTracker.h.
| vpMeTracker::vpMeTracker | ( | ) |
Definition at line 61 of file vpMeTracker.cpp.
References init().
| vpMeTracker::vpMeTracker | ( | const vpMeTracker & | meTracker | ) |
Definition at line 71 of file vpMeTracker.cpp.
References display_point, init(), init_range, list, me, nGoodElement, query_range, and selectDisplay.
|
virtual |
Definition at line 101 of file vpMeTracker.cpp.
References reset().
|
virtual |
Display the moving edge sites with a color corresponding to their state.
| I | : The image. |
Reimplemented in vpMeEllipse.
Definition at line 325 of file vpMeTracker.cpp.
Implemented in vpMeNurbs, vpMeLine, and vpMeEllipse.
Referenced by vpMeEllipse::initTracking().
| void vpMeTracker::display | ( | const vpImage< unsigned char > & | I, |
| vpColVector & | w, | ||
| unsigned int & | index_w | ||
| ) |
Displays the status of moving edge sites
| I | : The image. |
| w | : vector |
| index_w | : index |
Definition at line 353 of file vpMeTracker.cpp.
Definition at line 339 of file vpMeTracker.cpp.
References vpMeSite::display(), and list.
|
inline |
|
inline |
Return the moving edges initialisation parameters
Definition at line 151 of file vpMeTracker.h.
|
inline |
Return the list of moving edges
Definition at line 165 of file vpMeTracker.h.
|
inline |
Definition at line 166 of file vpMeTracker.h.
|
inline |
Return the number of points that has not been suppressed.
Definition at line 173 of file vpMeTracker.h.
| void vpMeTracker::init | ( | void | ) |
Definition at line 54 of file vpMeTracker.cpp.
References vpTracker::init(), vpMeSite::NONE, vpTracker::p, vpColVector::resize(), and selectDisplay.
Referenced by vpMeTracker().
| void vpMeTracker::initTracking | ( | const vpImage< unsigned char > & | I | ) |
Virtual function that is called by lower classes vpMeEllipse, vpMeLine and vpMeNurbs.
| vpTrackingException::initializationError | : Moving edges not initialized. |
Definition at line 168 of file vpMeTracker.cpp.
Referenced by vpMeEllipse::initTracking().
|
static |
Test whether the pixel is inside the mask. Mask values that are set to true are considered in the tracking.
| mask | Mask image or NULL if not wanted. Mask values that are set to true are considered in the tracking. To disable a pixel, set false. |
| i | : Pixel coordinate along the rows. |
| j | : Pixel coordinate along the columns. |
Definition at line 139 of file vpMeTracker.cpp.
Referenced by vpMbtFaceDepthDense::computeDesiredFeatures(), and vpMbtFaceDepthNormal::computeDesiredFeatures().
| unsigned int vpMeTracker::numberOfSignal | ( | ) |
Definition at line 119 of file vpMeTracker.cpp.
References list.
| vpMeTracker & vpMeTracker::operator= | ( | vpMeTracker & | f | ) |
Definition at line 103 of file vpMeTracker.cpp.
References display_point, init_range, list, me, nGoodElement, query_range, and selectDisplay.
| int vpMeTracker::outOfImage | ( | const vpImagePoint & | iP, |
| int | half, | ||
| int | rows, | ||
| int | cols | ||
| ) |
Definition at line 154 of file vpMeTracker.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), and vpMath::round().
| int vpMeTracker::outOfImage | ( | int | i, |
| int | j, | ||
| int | half, | ||
| int | row, | ||
| int | cols | ||
| ) |
Definition at line 149 of file vpMeTracker.cpp.
| void vpMeTracker::reset | ( | ) |
Reset the tracker by removing all the moving edges.
Definition at line 95 of file vpMeTracker.cpp.
Referenced by ~vpMeTracker().
|
pure virtual |
|
inline |
Definition at line 104 of file vpMeTracker.h.
|
inline |
|
inlinevirtual |
|
inline |
Set the moving edges initialisation parameters
| p_me | : Moving Edges. |
Definition at line 144 of file vpMeTracker.h.
|
inline |
Set the list of moving edges
| l | : list of Moving Edges. |
Definition at line 158 of file vpMeTracker.h.
| unsigned int vpMeTracker::totalNumberOfSignal | ( | ) |
Definition at line 128 of file vpMeTracker.cpp.
References list.
| void vpMeTracker::track | ( | const vpImage< unsigned char > & | I | ) |
Track sampled pixels.
Track moving-edges.
| I | : Image. |
| vpTrackingException::initializationError | : Moving edges not initialized. |
Definition at line 249 of file vpMeTracker.cpp.
|
inherited |
Feature coordinates expressed in the camera frame cP.
Definition at line 74 of file vpTracker.h.
Referenced by vpCircle::init(), vpSphere::init(), vpCylinder::init(), vpTracker::operator=(), and vpPose::printPoint().
|
inherited |
Flag used to indicate if the feature parameters cP expressed in the camera frame are available.
Definition at line 80 of file vpTracker.h.
Referenced by vpTracker::operator=().
| bool vpMeTracker::display_point |
Definition at line 178 of file vpMeTracker.h.
Referenced by operator=(), and vpMeTracker().
| unsigned int vpMeTracker::init_range |
Definition at line 76 of file vpMeTracker.h.
Referenced by operator=(), and vpMeTracker().
| std::list<vpMeSite> vpMeTracker::list |
Tracking dependent variables/functions List of tracked moving edges points.
Definition at line 73 of file vpMeTracker.h.
Referenced by display(), numberOfSignal(), operator=(), totalNumberOfSignal(), and vpMeTracker().
| const vpImage<bool>* vpMeTracker::m_mask |
Mask used to disable tracking on a part of image.
Definition at line 79 of file vpMeTracker.h.
| vpMe* vpMeTracker::me |
Moving edges initialisation parameters.
Definition at line 75 of file vpMeTracker.h.
Referenced by operator=(), and vpMeTracker().
| int vpMeTracker::nGoodElement |
Definition at line 77 of file vpMeTracker.h.
Referenced by operator=(), and vpMeTracker().
|
inherited |
Feature coordinates expressed in the image plane p. They correspond to 2D normalized coordinates expressed in meters.
Definition at line 70 of file vpTracker.h.
Referenced by vpCircle::display(), vpSphere::display(), vpProjectionDisplay::display(), vpProjectionDisplay::displayCamera(), vpCircle::init(), vpSphere::init(), init(), vpCylinder::init(), vpTracker::operator=(), and vpPose::printPoint().
| int vpMeTracker::query_range |
Definition at line 177 of file vpMeTracker.h.
Referenced by operator=(), and vpMeTracker().
|
protected |
Definition at line 82 of file vpMeTracker.h.
Referenced by init(), operator=(), and vpMeTracker().