Visual Servoing Platform  version 3.6.1 under development (2025-02-17)

#include <visp3/rbt/vpRBSilhouetteControlPoint.h>

Public Member Functions

void init ()
 
 vpRBSilhouetteControlPoint ()
 
 vpRBSilhouetteControlPoint (const vpRBSilhouetteControlPoint &meTracker)
 
 vpRBSilhouetteControlPoint (const vpRBSilhouetteControlPoint &&meTracker)
 
vpRBSilhouetteControlPointoperator= (const vpRBSilhouetteControlPoint &meTracker)
 
vpRBSilhouetteControlPointoperator= (const vpRBSilhouetteControlPoint &&meTracker)
 
 ~vpRBSilhouetteControlPoint ()=default
 
void setNumCandidates (unsigned numCandidates)
 
unsigned getNumCandidates () const
 
void setValid (bool valid)
 
bool isValid () const
 
const vpCameraParametersgetCameraParameters () const
 
bool siteIsValid () const
 
const vpMeSitegetSite () const
 
vpMeSitegetSite ()
 
const vpFeatureLinegetFeatureLine () const
 
const vpLinegetLine () const
 
double getTheta () const
 
bool isSilhouette () const
 
void initControlPoint (const vpImage< unsigned char > &I, double cvlt)
 
void detectSilhouette (const vpImage< float > &I)
 
void 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)
 
void buildSilhouettePoint (int n, int m, const double &Z, double orient, const vpColVector &normo, const vpHomogeneousMatrix &cMo, const vpHomogeneousMatrix &oMc, const vpCameraParameters &cam)
 
void update (const vpHomogeneousMatrix &_cMo)
 
void updateSilhouettePoint (const vpHomogeneousMatrix &_cMo)
 
void track (const vpImage< unsigned char > &I)
 
void trackMultipleHypotheses (const vpImage< unsigned char > &I)
 
void computeMeInteractionMatrixError (const vpHomogeneousMatrix &cMo, unsigned int i, vpMatrix &L, vpColVector &e)
 
void computeMeInteractionMatrixErrorMH (const vpHomogeneousMatrix &cMo, unsigned int i, vpMatrix &L, vpColVector &e)
 

Public Attributes

vpImagePoint icpoint
 
vpPoint cpoint
 
vpPoint cpointo
 
double xs
 
double ys
 
double nxs
 
double nys
 
double Zs
 

Detailed Description

Trackable silhouette point representation.

Definition at line 58 of file vpRBSilhouetteControlPoint.h.

Constructor & Destructor Documentation

◆ vpRBSilhouetteControlPoint() [1/3]

vpRBSilhouetteControlPoint::vpRBSilhouetteControlPoint ( )

Definition at line 45 of file vpRBSilhouetteControlPoint.cpp.

References init(), and vpColVector::resize().

◆ vpRBSilhouetteControlPoint() [2/3]

vpRBSilhouetteControlPoint::vpRBSilhouetteControlPoint ( const vpRBSilhouetteControlPoint meTracker)

Definition at line 58 of file vpRBSilhouetteControlPoint.cpp.

References init().

◆ vpRBSilhouetteControlPoint() [3/3]

vpRBSilhouetteControlPoint::vpRBSilhouetteControlPoint ( const vpRBSilhouetteControlPoint &&  meTracker)

Definition at line 92 of file vpRBSilhouetteControlPoint.cpp.

◆ ~vpRBSilhouetteControlPoint()

vpRBSilhouetteControlPoint::~vpRBSilhouetteControlPoint ( )
default

Member Function Documentation

◆ buildPoint()

◆ buildSilhouettePoint()

◆ computeMeInteractionMatrixError()

◆ computeMeInteractionMatrixErrorMH()

◆ detectSilhouette()

void vpRBSilhouetteControlPoint::detectSilhouette ( const vpImage< float > &  I)

◆ getCameraParameters()

const vpCameraParameters& vpRBSilhouetteControlPoint::getCameraParameters ( ) const
inline

◆ getFeatureLine()

const vpFeatureLine& vpRBSilhouetteControlPoint::getFeatureLine ( ) const
inline

Definition at line 120 of file vpRBSilhouetteControlPoint.h.

◆ getLine()

const vpLine& vpRBSilhouetteControlPoint::getLine ( ) const
inline

Definition at line 121 of file vpRBSilhouetteControlPoint.h.

◆ getNumCandidates()

unsigned vpRBSilhouetteControlPoint::getNumCandidates ( ) const
inline

Definition at line 110 of file vpRBSilhouetteControlPoint.h.

◆ getSite() [1/2]

vpMeSite& vpRBSilhouetteControlPoint::getSite ( )
inline

Definition at line 119 of file vpRBSilhouetteControlPoint.h.

◆ getSite() [2/2]

const vpMeSite& vpRBSilhouetteControlPoint::getSite ( ) const
inline

Definition at line 118 of file vpRBSilhouetteControlPoint.h.

◆ getTheta()

double vpRBSilhouetteControlPoint::getTheta ( ) const
inline

◆ init()

BEGIN_VISP_NAMESPACE void vpRBSilhouetteControlPoint::init ( void  )

Definition at line 40 of file vpRBSilhouetteControlPoint.cpp.

Referenced by vpRBSilhouetteControlPoint().

◆ initControlPoint()

void vpRBSilhouetteControlPoint::initControlPoint ( const vpImage< unsigned char > &  I,
double  cvlt 
)

◆ isSilhouette()

bool vpRBSilhouetteControlPoint::isSilhouette ( ) const
inline

◆ isValid()

◆ operator=() [1/2]

vpRBSilhouetteControlPoint & vpRBSilhouetteControlPoint::operator= ( const vpRBSilhouetteControlPoint &&  meTracker)

Definition at line 97 of file vpRBSilhouetteControlPoint.cpp.

References cpoint, cpointo, icpoint, nxs, nys, xs, ys, and Zs.

◆ operator=() [2/2]

vpRBSilhouetteControlPoint & vpRBSilhouetteControlPoint::operator= ( const vpRBSilhouetteControlPoint meTracker)

Definition at line 64 of file vpRBSilhouetteControlPoint.cpp.

References cpoint, cpointo, icpoint, nxs, nys, xs, ys, and Zs.

◆ setNumCandidates()

void vpRBSilhouetteControlPoint::setNumCandidates ( unsigned  numCandidates)
inline

Set the number of candidates to use for multiple hypotheses testing.

Parameters
numCandidates

Definition at line 109 of file vpRBSilhouetteControlPoint.h.

Referenced by vpRBSilhouetteMeTracker::extractFeatures().

◆ setValid()

void vpRBSilhouetteControlPoint::setValid ( bool  valid)
inline

◆ siteIsValid()

bool vpRBSilhouetteControlPoint::siteIsValid ( ) const
inline

◆ track()

void vpRBSilhouetteControlPoint::track ( const vpImage< unsigned char > &  I)

Track the moving edge at this point retaining only the hypothesis with the highest likelihood.

Parameters
IThe 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().

◆ trackMultipleHypotheses()

void vpRBSilhouetteControlPoint::trackMultipleHypotheses ( const vpImage< unsigned char > &  I)

Track the moving edge and retain the best numCandidates hypotheses.

Parameters
IThe image in which to track
See also
setNumCandidates

Definition at line 164 of file vpRBSilhouetteControlPoint.cpp.

References vpMeSite::getState(), vpMeSite::NO_SUPPRESSION, vpMeSite::setState(), vpMeSite::THRESHOLD, and vpMeSite::trackMultipleHypotheses().

◆ update()

◆ updateSilhouettePoint()

Member Data Documentation

◆ cpoint

vpPoint vpRBSilhouetteControlPoint::cpoint

Definition at line 89 of file vpRBSilhouetteControlPoint.h.

Referenced by buildPoint(), buildSilhouettePoint(), and operator=().

◆ cpointo

vpPoint vpRBSilhouetteControlPoint::cpointo

◆ icpoint

◆ nxs

◆ nys

◆ xs

◆ ys

◆ Zs