ViSP
2.9.0
|
#include <vpMbtMeLine.h>
Public Member Functions | |
vpMbtMeLine () | |
~vpMbtMeLine () | |
void | display (const vpImage< unsigned char > &, vpColor) |
void | display (const vpImage< unsigned char > &I) |
double | get_a () const |
double | get_b () const |
double | get_c () const |
void | initTracking (const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, double rho, double theta) |
void | track (const vpImage< unsigned char > &I) |
void | updateParameters (const vpImage< unsigned char > &I, double rho, double theta) |
void | updateParameters (const vpImage< unsigned char > &I, vpImagePoint ip1, vpImagePoint ip2, double rho, double theta) |
void | init () |
void | initTracking (const vpImage< unsigned char > &I) |
unsigned int | numberOfSignal () |
unsigned int | totalNumberOfSignal () |
void | display (const vpImage< unsigned char > &I, vpColVector &w, unsigned int &index_w) |
void | setDisplay (vpMeSite::vpMeSiteDisplayType select) |
int | outOfImage (int i, int j, int half, int rows, int cols) |
int | outOfImage (vpImagePoint iP, int half, int rows, int cols) |
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 | |
int | imin |
int | imax |
int | jmin |
int | jmax |
double | expecteddensity |
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 |
Implementation of a line used by the model-based tracker.
Definition at line 62 of file vpMbtMeLine.h.
vpMbtMeLine::vpMbtMeLine | ( | ) |
vpMbtMeLine::~vpMbtMeLine | ( | ) |
Implements vpMeTracker.
Definition at line 80 of file vpMbtMeLine.h.
Referenced by vpMbtDistanceLine::displayMovingEdges(), and vpMbtDistanceCylinder::displayMovingEdges().
|
inlinevirtual |
Display the moving edge sites with a color corresponding to their state.
I | : The image. |
Reimplemented from vpMeTracker.
Definition at line 81 of file vpMbtMeLine.h.
References vpMeTracker::display().
|
inherited |
Displays the status of moving edge sites
I | : The image. |
w | : vector |
index_w | : index |
Definition at line 347 of file vpMeTracker.cpp.
References vpMeTracker::display(), vpMeSite::getState(), vpMeTracker::list, vpMeSite::NO_SUPPRESSION, and vpMeSite::weight.
|
inline |
Get the a coefficient of the line corresponding to
Definition at line 88 of file vpMbtMeLine.h.
|
inline |
Get the a coefficient of the line corresponding to
Definition at line 95 of file vpMbtMeLine.h.
|
inline |
Get the a coefficient of the line corresponding to
Definition at line 102 of file vpMbtMeLine.h.
|
inlineinherited |
|
inlineinherited |
Return the moving edges initialisation parameters
Definition at line 147 of file vpMeTracker.h.
|
inlineinherited |
Return the list of moving edges
Definition at line 161 of file vpMeTracker.h.
Referenced by vpMbtDistanceLine::closeToImageBorder(), vpMbtDistanceLine::computeInteractionMatrixError(), vpMbtDistanceCylinder::computeInteractionMatrixError(), vpMbEdgeTracker::computeVVS(), vpMbEdgeTracker::getNbPoints(), vpMbtDistanceLine::initInteractionMatrixError(), vpMbtDistanceCylinder::initInteractionMatrixError(), vpMbEdgeKltTracker::postTrackingMbt(), vpMbEdgeTracker::testTracking(), vpMbEdgeKltTracker::trackFirstLoop(), vpMbtDistanceLine::trackMovingEdge(), vpMbtDistanceCylinder::trackMovingEdge(), vpMbtDistanceLine::updateMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
|
inlineinherited |
Definition at line 162 of file vpMeTracker.h.
|
inlineinherited |
Return the number of points that has not been suppressed.
Definition at line 169 of file vpMeTracker.h.
|
inherited |
Definition at line 61 of file vpMeTracker.cpp.
References vpTracker::init(), vpMeSite::NONE, vpTracker::p, vpColVector::resize(), and vpMeTracker::selectDisplay.
Referenced by vpMeTracker::vpMeTracker().
|
inherited |
Virtual function that is called by lower classes vpMeEllipse, vpMeLine and vpMeNurbs.
vpTrackingException::initializationError | : Moving edges not initialized. |
Definition at line 163 of file vpMeTracker.cpp.
References vpDisplay::displayArrow(), vpMe::getRange(), vpMeSite::getState(), vpColor::green, vpMeSite::i, vpMeSite::i_1, vpMeTracker::init_range, vpTrackingException::initializationError, vpMeSite::j, vpMeSite::j_1, vpMeTracker::list, vpMeTracker::me, vpMeTracker::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().
void vpMbtMeLine::initTracking | ( | const vpImage< unsigned char > & | I, |
const vpImagePoint & | ip1, | ||
const vpImagePoint & | ip2, | ||
double | rho, | ||
double | theta | ||
) |
Referenced by vpMbtDistanceLine::initMovingEdge(), and vpMbtDistanceCylinder::initMovingEdge().
|
inherited |
Definition at line 118 of file vpMeTracker.cpp.
References vpMeTracker::list.
Referenced by vpMeLine::leastSquare(), vpMeNurbs::localReSample(), vpMeLine::reSample(), and vpMeNurbs::reSample().
|
inherited |
Definition at line 134 of file vpMeTracker.cpp.
Referenced by vpMeNurbs::localReSample(), vpMeLine::sample(), vpMeNurbs::sample(), vpMeNurbs::seekExtremities(), and vpMeLine::seekExtremities().
|
inherited |
Definition at line 144 of file vpMeTracker.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), and vpMath::round().
|
inlineinherited |
Definition at line 108 of file vpMeTracker.h.
|
inlineinherited |
Set the initial range.
r | : initial range. |
Definition at line 126 of file vpMeTracker.h.
Referenced by vpMbtDistanceLine::initMovingEdge(), and vpMbtDistanceCylinder::initMovingEdge().
|
inlineinherited |
Set the moving edges initialisation parameters
p_me | : Moving Edges. |
Definition at line 140 of file vpMeTracker.h.
Referenced by vpMbtDistanceLine::initMovingEdge(), vpMbtDistanceCylinder::initMovingEdge(), vpMbtDistanceLine::setMovingEdge(), and vpMbtDistanceCylinder::setMovingEdge().
|
inlineinherited |
Set the list of moving edges
l | : list of Moving Edges. |
Definition at line 154 of file vpMeTracker.h.
|
inherited |
Definition at line 128 of file vpMeTracker.cpp.
References vpMeTracker::list.
void vpMbtMeLine::track | ( | const vpImage< unsigned char > & | I | ) |
Referenced by vpMbtDistanceLine::trackMovingEdge(), and vpMbtDistanceCylinder::trackMovingEdge().
void vpMbtMeLine::updateParameters | ( | const vpImage< unsigned char > & | I, |
double | rho, | ||
double | theta | ||
) |
Referenced by vpMbtDistanceLine::updateMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
void vpMbtMeLine::updateParameters | ( | const vpImage< unsigned char > & | I, |
vpImagePoint | ip1, | ||
vpImagePoint | ip2, | ||
double | rho, | ||
double | theta | ||
) |
|
inherited |
Feature coordinates expressed in the camera frame cP.
Definition at line 82 of file vpTracker.h.
Referenced by vpFeaturePoint3D::buildFrom(), vpSphere::changeFrame(), vpCircle::changeFrame(), vpCylinder::changeFrame(), vpLine::changeFrame(), vpFeatureBuilder::create(), vpCircle::init(), vpSphere::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().
|
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=().
|
inherited |
Definition at line 174 of file vpMeTracker.h.
Referenced by vpMeTracker::vpMeTracker().
double vpMbtMeLine::expecteddensity |
Definition at line 74 of file vpMbtMeLine.h.
Referenced by vpMbEdgeTracker::testTracking().
int vpMbtMeLine::imax |
Definition at line 72 of file vpMbtMeLine.h.
Referenced by vpMbtDistanceLine::initMovingEdge(), vpMbtDistanceCylinder::initMovingEdge(), vpMbtDistanceLine::updateMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
int vpMbtMeLine::imin |
Definition at line 72 of file vpMbtMeLine.h.
Referenced by vpMbtDistanceLine::initMovingEdge(), vpMbtDistanceCylinder::initMovingEdge(), vpMbtDistanceLine::updateMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
|
inherited |
Definition at line 83 of file vpMeTracker.h.
Referenced by vpMeTracker::initTracking(), and vpMeTracker::vpMeTracker().
int vpMbtMeLine::jmax |
Definition at line 73 of file vpMbtMeLine.h.
Referenced by vpMbtDistanceLine::initMovingEdge(), vpMbtDistanceCylinder::initMovingEdge(), vpMbtDistanceLine::updateMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
int vpMbtMeLine::jmin |
Definition at line 73 of file vpMbtMeLine.h.
Referenced by vpMbtDistanceLine::initMovingEdge(), vpMbtDistanceCylinder::initMovingEdge(), vpMbtDistanceLine::updateMovingEdge(), and vpMbtDistanceCylinder::updateMovingEdge().
|
inherited |
Tracking dependent variables/functions List of tracked moving edges points.
Definition at line 80 of file vpMeTracker.h.
Referenced by vpMeTracker::display(), vpMeLine::display(), vpMeTracker::initTracking(), vpMeLine::leastSquare(), vpMeNurbs::localReSample(), vpMeTracker::numberOfSignal(), vpMeTracker::operator=(), vpMeLine::sample(), vpMeNurbs::sample(), vpMeLine::seekExtremities(), vpMeNurbs::seekExtremities(), vpMeLine::setExtremities(), vpMeLine::suppressPoints(), vpMeNurbs::suppressPoints(), vpMeNurbs::supressNearPoints(), vpMeTracker::totalNumberOfSignal(), vpMeTracker::track(), vpMeNurbs::track(), vpMeLine::updateDelta(), vpMeNurbs::updateDelta(), vpMeTracker::vpMeTracker(), vpMeEllipse::~vpMeEllipse(), vpMeLine::~vpMeLine(), and vpMeTracker::~vpMeTracker().
|
inherited |
Moving edges initialisation parameters.
Definition at line 82 of file vpMeTracker.h.
Referenced by vpMeTracker::initTracking(), vpMeTracker::operator=(), vpMeLine::reSample(), vpMeLine::sample(), vpMeLine::seekExtremities(), vpMeTracker::track(), and vpMeTracker::vpMeTracker().
|
inherited |
Definition at line 84 of file vpMeTracker.h.
Referenced by vpMeTracker::initTracking(), vpMeTracker::track(), and vpMeTracker::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 vpFeatureBuilder::create(), vpPoint::display(), vpSphere::display(), vpCircle::display(), vpCylinder::display(), vpProjectionDisplay::display(), vpLine::display(), vpProjectionDisplay::displayCamera(), vpDisplay::displayFrame(), vpPose::displayModel(), vpCircle::init(), vpSphere::init(), vpMeTracker::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().
|
inherited |
Definition at line 173 of file vpMeTracker.h.
Referenced by vpMeTracker::vpMeTracker().
|
protectedinherited |
Definition at line 87 of file vpMeTracker.h.
Referenced by vpMeTracker::init(), vpMeNurbs::localReSample(), vpMeTracker::operator=(), vpMeLine::sample(), vpMeNurbs::sample(), vpMeNurbs::seekExtremities(), vpMeLine::seekExtremities(), and vpMeTracker::vpMeTracker().