Visual Servoing Platform
version 3.6.1 under development (2024-12-17)
|
#include <visp3/mbt/vpMbtXmlGenericParser.h>
Public Types | |
enum | vpParserType { EDGE_PARSER = 1 << 0 , KLT_PARSER = 1 << 1 , DEPTH_NORMAL_PARSER = 1 << 2 , DEPTH_DENSE_PARSER = 1 << 3 , PROJECTION_ERROR_PARSER = 0 } |
Parse an Xml file to extract configuration parameters of a mbtConfig object.
Data parser for the model-based tracker.
Definition at line 62 of file vpMbtXmlGenericParser.h.
Definition at line 65 of file vpMbtXmlGenericParser.h.
BEGIN_VISP_NAMESPACE vpMbtXmlGenericParser::vpMbtXmlGenericParser | ( | int | type = EDGE_PARSER | ) |
Definition at line 1537 of file vpMbtXmlGenericParser.cpp.
|
virtual |
Definition at line 1540 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getAngleAppear | ( | ) | const |
Get the angle to determine if a face appeared.
Definition at line 1552 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
double vpMbtXmlGenericParser::getAngleDisappear | ( | ) | const |
Get the angle to determine if a face disappeared.
Definition at line 1557 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
void vpMbtXmlGenericParser::getCameraParameters | ( | vpCameraParameters & | cam | ) | const |
Definition at line 1559 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepX | ( | ) | const |
Get depth dense sampling step in X.
Definition at line 1569 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepY | ( | ) | const |
Get depth dense sampling step in Y.
Definition at line 1574 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile().
vpMbtFaceDepthNormal::vpFeatureEstimationType vpMbtXmlGenericParser::getDepthNormalFeatureEstimationMethod | ( | ) | const |
Get depth normal feature estimation method.
Definition at line 1579 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationMethod | ( | ) | const |
Get depth normal PCL plane estimation method.
Definition at line 1587 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacMaxIter | ( | ) | const |
Get depth normal PCL maximum number of iterations.
Definition at line 1595 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
double vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacThreshold | ( | ) | const |
Get depth normal PCL RANSAC threshold.
Definition at line 1603 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepX | ( | ) | const |
Get depth normal sampling step in X.
Definition at line 1611 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepY | ( | ) | const |
Get depth normal sampling step in Y.
Definition at line 1619 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::getEdgeMe | ( | vpMe & | ecm | ) | const |
Get moving edge parameters.
Definition at line 1564 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeTracker::loadConfigFile().
double vpMbtXmlGenericParser::getFarClippingDistance | ( | ) | const |
Get the far clipping distance.
Definition at line 1627 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
bool vpMbtXmlGenericParser::getFovClipping | ( | ) | const |
Get if FOV clipping should be used or not.
Definition at line 1632 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getKltBlockSize | ( | ) | const |
Get the size of a block.
Definition at line 1637 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getKltHarrisParam | ( | ) | const |
Get the Harris free parameter.
Definition at line 1642 of file vpMbtXmlGenericParser.cpp.
unsigned int vpMbtXmlGenericParser::getKltMaskBorder | ( | ) | const |
Get the Border of the mask.
Definition at line 1647 of file vpMbtXmlGenericParser.cpp.
unsigned int vpMbtXmlGenericParser::getKltMaxFeatures | ( | ) | const |
Get the maximum number of features for the KLT.
Definition at line 1652 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getKltMinDistance | ( | ) | const |
Get the minimum distance between KLT points.
Definition at line 1657 of file vpMbtXmlGenericParser.cpp.
unsigned int vpMbtXmlGenericParser::getKltPyramidLevels | ( | ) | const |
Get the number of pyramid levels
Definition at line 1662 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getKltQuality | ( | ) | const |
Get the quality of the KLT.
Definition at line 1667 of file vpMbtXmlGenericParser.cpp.
unsigned int vpMbtXmlGenericParser::getKltWindowSize | ( | ) | const |
Get the size of the window used in the KLT tracker.
Definition at line 1672 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getLodMinLineLengthThreshold | ( | ) | const |
Get the minimum line length to track a segment when LOD is enabled.
Definition at line 1682 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeTracker::loadConfigFile().
double vpMbtXmlGenericParser::getLodMinPolygonAreaThreshold | ( | ) | const |
Get the minimum polygon area to track a face when LOD is enabled.
Definition at line 1687 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeTracker::loadConfigFile().
bool vpMbtXmlGenericParser::getLodState | ( | ) | const |
Get the state of LOD setting.
Definition at line 1677 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeTracker::loadConfigFile().
double vpMbtXmlGenericParser::getNearClippingDistance | ( | ) | const |
Get the near clipping distance.
Definition at line 1692 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getProjectionErrorKernelSize | ( | ) | const |
Definition at line 1699 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
void vpMbtXmlGenericParser::getProjectionErrorMe | ( | vpMe & | me | ) | const |
Get ME parameters for projection error computation.
Definition at line 1697 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
bool vpMbtXmlGenericParser::hasFarClippingDistance | ( | ) | const |
Has Far clipping been specified?
Definition at line 1709 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
bool vpMbtXmlGenericParser::hasNearClippingDistance | ( | ) | const |
Has Near clipping been specified?
Definition at line 1716 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
void vpMbtXmlGenericParser::parse | ( | const std::string & | filename | ) |
Parse an XML config file that contains parameters for the Generic Model-Based Tracker.
filename | : Document to parse. |
Definition at line 1547 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile(), vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
void vpMbtXmlGenericParser::setAngleAppear | ( | const double & | aappear | ) |
Set the angle to determine if a face appeared.
aappear | : New angleAppear |
Definition at line 1723 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
void vpMbtXmlGenericParser::setAngleDisappear | ( | const double & | adisappear | ) |
Set the angle to determine if a face disappeared.
adisappear | : New angleDisappear |
Definition at line 1730 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
void vpMbtXmlGenericParser::setCameraParameters | ( | const vpCameraParameters & | cam | ) |
Set camera parameters.
cam | : New camera parameters |
Definition at line 1737 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthDenseSamplingStepX | ( | unsigned int | stepX | ) |
Set depth dense sampling step in X.
stepX | : New sampling step |
Definition at line 1744 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthDenseSamplingStepY | ( | unsigned int | stepY | ) |
Set depth dense sampling step in Y.
stepY | : New sampling step |
Definition at line 1754 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthNormalFeatureEstimationMethod | ( | const vpMbtFaceDepthNormal::vpFeatureEstimationType & | method | ) |
Set depth normal feature estimation method.
method | : New feature estimation method |
Definition at line 1764 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationMethod | ( | int | method | ) |
Set depth normal PCL plane estimation method.
method | : New PCL plane estimation method |
Definition at line 1775 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationRansacMaxIter | ( | int | maxIter | ) |
Set depth normal PCL RANSAC maximum number of iterations.
maxIter | : New maximum number of iterations |
Definition at line 1785 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationRansacThreshold | ( | double | threshold | ) |
Set depth normal PCL RANSAC threshold.
threshold | : New RANSAC threshold |
Definition at line 1795 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthNormalSamplingStepX | ( | unsigned int | stepX | ) |
Set depth normal sampling step in X.
stepX | : New sampling step |
Definition at line 1805 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthNormalSamplingStepY | ( | unsigned int | stepY | ) |
Set depth normal sampling step in Y.
stepY | : New sampling step |
Definition at line 1815 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setEdgeMe | ( | const vpMe & | moving_edge | ) |
Set moving edge parameters.
moving_edge | : New moving edge parameters |
Definition at line 1825 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeTracker::loadConfigFile().
void vpMbtXmlGenericParser::setFarClippingDistance | ( | const double & | fclip | ) |
Set the far clipping distance.
fclip | : New farClipping |
Definition at line 1832 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltBlockSize | ( | const unsigned int & | bs | ) |
Set the size of a block.
bs | : New blockSize |
Definition at line 1839 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltHarrisParam | ( | const double & | hp | ) |
Set the Harris free parameter.
hp | : New harrisParam |
Definition at line 1846 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltMaskBorder | ( | const unsigned int & | mb | ) |
Set the Border of the mask.
mb | = new maskBorder |
Definition at line 1853 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltMaxFeatures | ( | const unsigned int & | mF | ) |
Set the maximum number of features for the KLT.
mF | : New maxFeatures |
Definition at line 1860 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltMinDistance | ( | const double & | mD | ) |
Set the minimum distance between KLT points.
mD | : New minDist |
Definition at line 1867 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltPyramidLevels | ( | const unsigned int & | pL | ) |
Set the number of pyramid levels
pL | : New pyramidLevels |
Definition at line 1874 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltQuality | ( | const double & | q | ) |
Set the quality of the KLT.
q | : New quality |
Definition at line 1881 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltWindowSize | ( | const unsigned int & | w | ) |
Set the size of the window used in the KLT tracker.
w | : New winSize |
Definition at line 1888 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setNearClippingDistance | ( | const double & | nclip | ) |
Set the near clipping distance.
nclip | : New nearClipping |
Definition at line 1895 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setProjectionErrorKernelSize | ( | const unsigned int & | size | ) |
Set kernel size used for projection error computation.
size | : Kernel size computed as kernel_size = size*2 + 1 |
Definition at line 1909 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
void vpMbtXmlGenericParser::setProjectionErrorMe | ( | const vpMe & | me | ) |
Set ME parameters for projection error computation.
me | : ME parameters |
Definition at line 1902 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
void vpMbtXmlGenericParser::setVerbose | ( | bool | verbose | ) |
Set verbose mode (print tracker configuration in the standard output if set).
verbose | : verbose flag |
Definition at line 1919 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile(), vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbEdgeTracker::loadConfigFile().