ViSP
2.10.0
|
#include <vpMeTracker.h>
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) |
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 rows, int cols) |
int | outOfImage (vpImagePoint iP, int half, int rows, int cols) |
void | reset () |
virtual void | sample (const vpImage< unsigned char > &image)=0 |
void | setInitRange (const unsigned int &r) |
unsigned int | getInitRange () |
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 |
Public Attributes | |
std::list< vpMeSite > | list |
vpMe * | me |
unsigned int | init_range |
int | nGoodElement |
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 71 of file vpMeTracker.h.
vpMeTracker::vpMeTracker | ( | ) |
Definition at line 68 of file vpMeTracker.cpp.
References init().
vpMeTracker::vpMeTracker | ( | const vpMeTracker & | meTracker | ) |
Definition at line 77 of file vpMeTracker.cpp.
References display_point, init(), init_range, list, me, nGoodElement, query_range, and selectDisplay.
|
virtual |
Definition at line 107 of file vpMeTracker.cpp.
References reset().
Implemented in vpMeNurbs, vpMeLine, and vpMeEllipse.
Referenced by display(), vpMeEllipse::display(), vpMeEllipse::initTracking(), vpMeEllipse::track(), and vpMeLine::track().
|
virtual |
Display the moving edge sites with a color corresponding to their state.
I | : The image. |
Reimplemented in vpMeEllipse.
Definition at line 335 of file vpMeTracker.cpp.
References vpMeSite::display(), and list.
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 356 of file vpMeTracker.cpp.
References display(), vpMeSite::getState(), list, vpMeSite::NO_SUPPRESSION, and vpMeSite::weight.
|
inline |
|
inline |
Return the moving edges initialisation parameters
Definition at line 149 of file vpMeTracker.h.
|
inline |
Return the list of moving edges
Definition at line 163 of file vpMeTracker.h.
|
inline |
Definition at line 164 of file vpMeTracker.h.
|
inline |
Return the number of points that has not been suppressed.
Definition at line 171 of file vpMeTracker.h.
void vpMeTracker::init | ( | void | ) |
Definition at line 61 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 172 of file vpMeTracker.cpp.
References vpDisplay::displayArrow(), vpMe::getRange(), vpMeSite::getState(), vpColor::green, vpMeSite::i, vpMeSite::i_1, init_range, vpTrackingException::initializationError, vpMeSite::j, vpMeSite::j_1, list, me, nGoodElement, vpMeSite::NO_SUPPRESSION, vpImagePoint::set_i(), vpImagePoint::set_j(), vpMe::setRange(), vpMeSite::track(), vpDERROR_TRACE, and vpERROR_TRACE.
Referenced by vpMeEllipse::initTracking(), vpMeLine::initTracking(), vpMeNurbs::initTracking(), vpMeLine::reSample(), and vpMeNurbs::reSample().
unsigned int vpMeTracker::numberOfSignal | ( | ) |
Definition at line 127 of file vpMeTracker.cpp.
References list.
Referenced by vpMeLine::leastSquare(), vpMeNurbs::localReSample(), vpMeLine::reSample(), and vpMeNurbs::reSample().
vpMeTracker & vpMeTracker::operator= | ( | vpMeTracker & | f | ) |
Definition at line 113 of file vpMeTracker.cpp.
References list, me, and selectDisplay.
int vpMeTracker::outOfImage | ( | int | i, |
int | j, | ||
int | half, | ||
int | rows, | ||
int | cols | ||
) |
Definition at line 143 of file vpMeTracker.cpp.
Referenced by vpMeNurbs::localReSample(), vpMeLine::sample(), vpMeNurbs::sample(), vpMeNurbs::seekExtremities(), and vpMeLine::seekExtremities().
int vpMeTracker::outOfImage | ( | vpImagePoint | iP, |
int | half, | ||
int | rows, | ||
int | cols | ||
) |
Definition at line 153 of file vpMeTracker.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), and vpMath::round().
void vpMeTracker::reset | ( | ) |
Reset the tracker by removing all the moving edges.
Definition at line 101 of file vpMeTracker.cpp.
References list, and nGoodElement.
Referenced by ~vpMeTracker().
|
pure virtual |
|
inline |
Definition at line 108 of file vpMeTracker.h.
|
inline |
|
inline |
Set the moving edges initialisation parameters
p_me | : Moving Edges. |
Definition at line 142 of file vpMeTracker.h.
|
inline |
Set the list of moving edges
l | : list of Moving Edges. |
Definition at line 156 of file vpMeTracker.h.
unsigned int vpMeTracker::totalNumberOfSignal | ( | ) |
Definition at line 137 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 258 of file vpMeTracker.cpp.
References vpDisplay::displayArrow(), vpMeSite::getState(), vpColor::green, vpMeSite::i, vpMeSite::i_1, vpTrackingException::initializationError, vpMeSite::j, vpMeSite::j_1, list, me, nGoodElement, vpMeSite::NO_SUPPRESSION, vpTrackingException::notEnoughPointError, vpImagePoint::set_i(), vpImagePoint::set_j(), vpMeSite::setState(), vpMeSite::THRESHOLD, vpMeSite::track(), vpDERROR_TRACE, and vpERROR_TRACE.
Referenced by vpMeEllipse::track(), vpMeLine::track(), and vpMeNurbs::track().
|
inherited |
Feature coordinates expressed in the camera frame cP.
Definition at line 82 of file vpTracker.h.
Referenced by vpFeaturePoint3D::buildFrom(), vpCircle::changeFrame(), vpSphere::changeFrame(), vpCylinder::changeFrame(), vpLine::changeFrame(), vpFeatureBuilder::create(), vpCircle::init(), vpSphere::init(), vpLine::init(), vpPoint::init(), vpCylinder::init(), vpMbtPolygon::isVisible(), vpTracker::operator=(), vpPoint::operator=(), vpForwardProjection::print(), vpPose::printPoint(), vpForwardProjection::project(), vpSphere::projection(), vpCircle::projection(), vpCylinder::projection(), and vpLine::projection().
|
inherited |
Flag used to indicate if the feature parameters cP expressed in the camera frame are available.
Definition at line 88 of file vpTracker.h.
Referenced by vpTracker::init(), vpTracker::operator=(), and vpPoint::operator=().
bool vpMeTracker::display_point |
Definition at line 176 of file vpMeTracker.h.
Referenced by vpMeTracker().
unsigned int vpMeTracker::init_range |
Definition at line 83 of file vpMeTracker.h.
Referenced by initTracking(), and vpMeTracker().
std::list<vpMeSite> vpMeTracker::list |
Tracking dependent variables/functions List of tracked moving edges points.
Definition at line 80 of file vpMeTracker.h.
Referenced by display(), vpMeLine::display(), initTracking(), vpMeLine::leastSquare(), vpMeNurbs::localReSample(), numberOfSignal(), operator=(), reset(), vpMeLine::sample(), vpMeNurbs::sample(), vpMeLine::seekExtremities(), vpMeNurbs::seekExtremities(), vpMeLine::setExtremities(), vpMeLine::suppressPoints(), vpMeNurbs::suppressPoints(), vpMeNurbs::supressNearPoints(), totalNumberOfSignal(), track(), vpMeNurbs::track(), vpMeNurbs::updateDelta(), vpMeLine::updateDelta(), vpMeTracker(), vpMeEllipse::~vpMeEllipse(), and vpMeLine::~vpMeLine().
vpMe* vpMeTracker::me |
Moving edges initialisation parameters.
Definition at line 82 of file vpMeTracker.h.
Referenced by initTracking(), vpMeEllipse::initTracking(), operator=(), vpMeLine::reSample(), vpMeLine::sample(), vpMeLine::seekExtremities(), track(), and vpMeTracker().
int vpMeTracker::nGoodElement |
Definition at line 84 of file vpMeTracker.h.
Referenced by initTracking(), reset(), track(), and vpMeTracker().
|
inherited |
Feature coordinates expressed in the image plane p. They correspond to 2D normalized coordinates expressed in meters.
Definition at line 78 of file vpTracker.h.
Referenced by vpMbtDistanceCircle::computeInteractionMatrixError(), vpMeterPixelConversion::convertEllipse(), vpFeatureBuilder::create(), vpPoint::display(), vpSphere::display(), vpCircle::display(), vpCylinder::display(), vpProjectionDisplay::display(), vpLine::display(), vpProjectionDisplay::displayCamera(), vpDisplay::displayFrame(), vpPose::displayModel(), vpCircle::init(), vpSphere::init(), init(), vpLine::init(), vpPoint::init(), vpCylinder::init(), vpTracker::operator=(), vpPoint::operator=(), vpForwardProjection::print(), vpPose::printPoint(), vpForwardProjection::project(), vpSphere::projection(), vpCircle::projection(), vpCylinder::projection(), and vpLine::projection().
int vpMeTracker::query_range |
Definition at line 175 of file vpMeTracker.h.
Referenced by vpMeTracker().
|
protected |
Definition at line 87 of file vpMeTracker.h.
Referenced by init(), vpMeNurbs::localReSample(), operator=(), vpMeLine::sample(), vpMeNurbs::sample(), vpMeNurbs::seekExtremities(), vpMeLine::seekExtremities(), and vpMeTracker().