![]() |
Visual Servoing Platform
version 3.6.1 under development (2025-02-17)
|
#include <visp3/rbt/vpRBSilhouetteControlPoint.h>
Public Attributes | |
vpImagePoint | icpoint |
vpPoint | cpoint |
vpPoint | cpointo |
double | xs |
double | ys |
double | nxs |
double | nys |
double | Zs |
Trackable silhouette point representation.
Definition at line 58 of file vpRBSilhouetteControlPoint.h.
vpRBSilhouetteControlPoint::vpRBSilhouetteControlPoint | ( | ) |
Definition at line 45 of file vpRBSilhouetteControlPoint.cpp.
References init(), and vpColVector::resize().
vpRBSilhouetteControlPoint::vpRBSilhouetteControlPoint | ( | const vpRBSilhouetteControlPoint & | meTracker | ) |
Definition at line 58 of file vpRBSilhouetteControlPoint.cpp.
References init().
vpRBSilhouetteControlPoint::vpRBSilhouetteControlPoint | ( | const vpRBSilhouetteControlPoint && | meTracker | ) |
Definition at line 92 of file vpRBSilhouetteControlPoint.cpp.
|
default |
void vpRBSilhouetteControlPoint::buildPoint | ( | int | n, |
int | m, | ||
const double & | Z, | ||
double | orient, | ||
const vpColVector & | normo, | ||
const vpHomogeneousMatrix & | cMo, | ||
const vpHomogeneousMatrix & | oMc, | ||
const vpCameraParameters & | cam, | ||
const vpMe & | me | ||
) |
Definition at line 225 of file vpRBSilhouetteControlPoint.cpp.
References vpPoint::changeFrame(), cpoint, cpointo, vpHomogeneousMatrix::extract(), vpCameraParameters::get_px(), vpCameraParameters::get_py(), vpCameraParameters::get_u0(), vpCameraParameters::get_v0(), vpPoint::get_X(), vpPoint::get_Y(), vpPoint::get_Z(), icpoint, nxs, nys, vpImagePoint::set_i(), vpImagePoint::set_j(), and vpPoint::setWorldCoordinates().
Referenced by vpRBSilhouetteMeTracker::extractFeatures().
void vpRBSilhouetteControlPoint::buildSilhouettePoint | ( | int | n, |
int | m, | ||
const double & | Z, | ||
double | orient, | ||
const vpColVector & | normo, | ||
const vpHomogeneousMatrix & | cMo, | ||
const vpHomogeneousMatrix & | oMc, | ||
const vpCameraParameters & | cam | ||
) |
Definition at line 257 of file vpRBSilhouetteControlPoint.cpp.
References vpPoint::changeFrame(), vpTracker::cP, cpoint, cpointo, vpHomogeneousMatrix::extract(), vpException::fatalError, vpCameraParameters::get_px(), vpCameraParameters::get_py(), vpCameraParameters::get_u0(), vpCameraParameters::get_v0(), vpPoint::get_X(), vpPoint::get_Y(), vpPoint::get_Z(), vpLine::getTheta(), icpoint, nxs, nys, vpImagePoint::set_i(), vpImagePoint::set_j(), vpPoint::setWorldCoordinates(), xs, ys, and Zs.
Referenced by vpRBSilhouetteCCDTracker::extractFeatures().
void vpRBSilhouetteControlPoint::computeMeInteractionMatrixError | ( | const vpHomogeneousMatrix & | cMo, |
unsigned int | i, | ||
vpMatrix & | L, | ||
vpColVector & | e | ||
) |
Compute the interaction matrix and the error vector corresponding to the line.
Definition at line 387 of file vpRBSilhouetteControlPoint.cpp.
References vpLine::changeFrame(), vpTracker::cP, vpFeatureBuilder::create(), vpException::fatalError, vpCameraParameters::get_px(), vpCameraParameters::get_py(), vpCameraParameters::get_u0(), vpCameraParameters::get_v0(), vpFeatureLine::getRho(), vpFeatureLine::getTheta(), vpFeatureLine::interaction(), vpMeSite::m_i, vpMeSite::m_j, vpForwardProjection::oP, vpFeatureLine::print(), vpLine::projection(), and vpColVector::t().
Referenced by vpRBSilhouetteMeTracker::computeVVSIter().
void vpRBSilhouetteControlPoint::computeMeInteractionMatrixErrorMH | ( | const vpHomogeneousMatrix & | cMo, |
unsigned int | i, | ||
vpMatrix & | L, | ||
vpColVector & | e | ||
) |
Definition at line 442 of file vpRBSilhouetteControlPoint.cpp.
References vpLine::changeFrame(), vpFeatureBuilder::create(), vpException::fatalError, vpCameraParameters::get_px(), vpCameraParameters::get_py(), vpCameraParameters::get_u0(), vpCameraParameters::get_v0(), vpFeatureLine::getRho(), vpMeSite::getState(), vpFeatureLine::getTheta(), vpFeatureLine::interaction(), vpMeSite::m_i, vpMeSite::m_j, vpMeSite::NO_SUPPRESSION, and vpLine::projection().
Referenced by vpRBSilhouetteMeTracker::computeVVSIter().
void vpRBSilhouetteControlPoint::detectSilhouette | ( | const vpImage< float > & | I | ) |
Definition at line 368 of file vpRBSilhouetteControlPoint.cpp.
References vpImagePoint::get_i(), vpImagePoint::get_j(), and icpoint.
Referenced by vpRBSilhouetteCCDTracker::extractFeatures().
|
inline |
Definition at line 116 of file vpRBSilhouetteControlPoint.h.
Referenced by vpRBSilhouetteCCDTracker::computeErrorAndInteractionMatrix().
|
inline |
Definition at line 120 of file vpRBSilhouetteControlPoint.h.
|
inline |
Definition at line 121 of file vpRBSilhouetteControlPoint.h.
|
inline |
Definition at line 110 of file vpRBSilhouetteControlPoint.h.
|
inline |
Definition at line 119 of file vpRBSilhouetteControlPoint.h.
|
inline |
Definition at line 118 of file vpRBSilhouetteControlPoint.h.
|
inline |
Definition at line 122 of file vpRBSilhouetteControlPoint.h.
Referenced by vpRBSilhouetteCCDTracker::computeLocalStatistics(), and vpRBSilhouetteCCDTracker::computeMaskGradient().
BEGIN_VISP_NAMESPACE void vpRBSilhouetteControlPoint::init | ( | void | ) |
Definition at line 40 of file vpRBSilhouetteControlPoint.cpp.
Referenced by vpRBSilhouetteControlPoint().
void vpRBSilhouetteControlPoint::initControlPoint | ( | const vpImage< unsigned char > & | I, |
double | cvlt | ||
) |
Definition at line 355 of file vpRBSilhouetteControlPoint.cpp.
References vpMeSite::convolution(), vpImagePoint::get_i(), vpImagePoint::get_j(), vpMe::getThresholdMarginRatio(), icpoint, vpMeSite::init(), and vpMeSite::setContrastThreshold().
Referenced by vpRBSilhouetteMeTracker::extractFeatures().
|
inline |
Definition at line 123 of file vpRBSilhouetteControlPoint.h.
Referenced by vpRBSilhouetteCCDTracker::extractFeatures().
|
inline |
vpRBSilhouetteControlPoint & vpRBSilhouetteControlPoint::operator= | ( | const vpRBSilhouetteControlPoint && | meTracker | ) |
vpRBSilhouetteControlPoint & vpRBSilhouetteControlPoint::operator= | ( | const vpRBSilhouetteControlPoint & | meTracker | ) |
|
inline |
Set the number of candidates to use for multiple hypotheses testing.
numCandidates |
Definition at line 109 of file vpRBSilhouetteControlPoint.h.
Referenced by vpRBSilhouetteMeTracker::extractFeatures().
|
inline |
Definition at line 111 of file vpRBSilhouetteControlPoint.h.
Referenced by vpRBSilhouetteCCDTracker::computeLocalStatistics().
|
inline |
Definition at line 117 of file vpRBSilhouetteControlPoint.h.
References vpMeSite::getState(), and vpMeSite::NO_SUPPRESSION.
Referenced by vpRBSilhouetteMeTracker::computeVVSIter().
void vpRBSilhouetteControlPoint::track | ( | const vpImage< unsigned char > & | I | ) |
Track the moving edge at this point retaining only the hypothesis with the highest likelihood.
I | The image in which to track |
Definition at line 145 of file vpRBSilhouetteControlPoint.cpp.
References vpMeSite::getState(), vpMeSite::m_convlt, vpMeSite::NO_SUPPRESSION, vpMeSite::setState(), vpMeSite::THRESHOLD, and vpMeSite::track().
void vpRBSilhouetteControlPoint::trackMultipleHypotheses | ( | const vpImage< unsigned char > & | I | ) |
Track the moving edge and retain the best numCandidates hypotheses.
I | The image in which to track |
Definition at line 164 of file vpRBSilhouetteControlPoint.cpp.
References vpMeSite::getState(), vpMeSite::NO_SUPPRESSION, vpMeSite::setState(), vpMeSite::THRESHOLD, and vpMeSite::trackMultipleHypotheses().
void vpRBSilhouetteControlPoint::update | ( | const vpHomogeneousMatrix & | _cMo | ) |
Definition at line 297 of file vpRBSilhouetteControlPoint.cpp.
References vpPoint::changeFrame(), cpointo, vpCameraParameters::get_px(), vpCameraParameters::get_py(), vpCameraParameters::get_u0(), vpCameraParameters::get_v0(), vpPoint::get_x(), vpPoint::get_y(), icpoint, vpPoint::projection(), and vpImagePoint::set_uv().
void vpRBSilhouetteControlPoint::updateSilhouettePoint | ( | const vpHomogeneousMatrix & | _cMo | ) |
Definition at line 312 of file vpRBSilhouetteControlPoint.cpp.
References vpLine::changeFrame(), vpPoint::changeFrame(), cpointo, vpFeatureBuilder::create(), vpException::fatalError, vpCameraParameters::get_px(), vpCameraParameters::get_py(), vpCameraParameters::get_u0(), vpCameraParameters::get_v0(), vpPoint::get_x(), vpPoint::get_y(), vpPoint::get_Z(), vpFeatureLine::getTheta(), icpoint, nxs, nys, vpLine::projection(), vpPoint::projection(), vpImagePoint::set_uv(), xs, ys, and Zs.
vpPoint vpRBSilhouetteControlPoint::cpoint |
Definition at line 89 of file vpRBSilhouetteControlPoint.h.
Referenced by buildPoint(), buildSilhouettePoint(), and operator=().
vpPoint vpRBSilhouetteControlPoint::cpointo |
Definition at line 90 of file vpRBSilhouetteControlPoint.h.
Referenced by buildPoint(), buildSilhouettePoint(), operator=(), update(), and updateSilhouettePoint().
vpImagePoint vpRBSilhouetteControlPoint::icpoint |
Definition at line 86 of file vpRBSilhouetteControlPoint.h.
Referenced by buildPoint(), buildSilhouettePoint(), vpRBSilhouetteCCDTracker::computeLocalStatistics(), vpRBSilhouetteCCDTracker::computeMaskGradient(), detectSilhouette(), vpRBSilhouetteCCDTracker::display(), initControlPoint(), operator=(), update(), and updateSilhouettePoint().
double vpRBSilhouetteControlPoint::nxs |
Definition at line 92 of file vpRBSilhouetteControlPoint.h.
Referenced by buildPoint(), buildSilhouettePoint(), vpRBSilhouetteCCDTracker::computeLocalStatistics(), operator=(), and updateSilhouettePoint().
double vpRBSilhouetteControlPoint::nys |
Definition at line 92 of file vpRBSilhouetteControlPoint.h.
Referenced by buildPoint(), buildSilhouettePoint(), vpRBSilhouetteCCDTracker::computeLocalStatistics(), operator=(), and updateSilhouettePoint().
double vpRBSilhouetteControlPoint::xs |
Definition at line 92 of file vpRBSilhouetteControlPoint.h.
Referenced by buildSilhouettePoint(), vpRBSilhouetteCCDTracker::computeErrorAndInteractionMatrix(), vpRBSilhouetteCCDTracker::computeLocalStatistics(), operator=(), and updateSilhouettePoint().
double vpRBSilhouetteControlPoint::ys |
Definition at line 92 of file vpRBSilhouetteControlPoint.h.
Referenced by buildSilhouettePoint(), vpRBSilhouetteCCDTracker::computeErrorAndInteractionMatrix(), operator=(), and updateSilhouettePoint().
double vpRBSilhouetteControlPoint::Zs |
Definition at line 92 of file vpRBSilhouetteControlPoint.h.
Referenced by buildSilhouettePoint(), vpRBSilhouetteCCDTracker::computeErrorAndInteractionMatrix(), operator=(), and updateSilhouettePoint().