Visual Servoing Platform
version 3.3.0 under development (2020-02-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.
vpMbtXmlGenericParser::vpMbtXmlGenericParser | ( | int | type = EDGE_PARSER | ) |
Definition at line 1449 of file vpMbtXmlGenericParser.cpp.
|
virtual |
Definition at line 1460 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getAngleAppear | ( | ) | const |
Get the angle to determine if a face appeared.
Definition at line 1478 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getAngleDisappear | ( | ) | const |
Get the angle to determine if a face disappeared.
Definition at line 1486 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::getCameraParameters | ( | vpCameraParameters & | cam | ) | const |
Definition at line 1491 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepX | ( | ) | const |
Get depth dense sampling step in X.
Definition at line 1507 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepY | ( | ) | const |
Get depth dense sampling step in Y.
Definition at line 1515 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbGenericTracker::track().
vpMbtFaceDepthNormal::vpFeatureEstimationType vpMbtXmlGenericParser::getDepthNormalFeatureEstimationMethod | ( | ) | const |
Get depth normal feature estimation method.
Definition at line 1523 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationMethod | ( | ) | const |
Get depth normal PCL plane estimation method.
Definition at line 1531 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacMaxIter | ( | ) | const |
Get depth normal PCL maximum number of iterations.
Definition at line 1539 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacThreshold | ( | ) | const |
Get depth normal PCL RANSAC threshold.
Definition at line 1547 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepX | ( | ) | const |
Get depth normal sampling step in X.
Definition at line 1555 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepY | ( | ) | const |
Get depth normal sampling step in Y.
Definition at line 1563 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::getEdgeMe | ( | vpMe & | ecm | ) | const |
Get moving edge parameters.
Definition at line 1499 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getFarClippingDistance | ( | ) | const |
Get the far clipping distance.
Definition at line 1571 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
bool vpMbtXmlGenericParser::getFovClipping | ( | ) | const |
Get if FOV clipping should be used or not.
Definition at line 1579 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getKltBlockSize | ( | ) | const |
Get the size of a block.
Definition at line 1587 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getKltHarrisParam | ( | ) | const |
Get the Harris free parameter.
Definition at line 1595 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getKltMaskBorder | ( | ) | const |
Get the Border of the mask.
Definition at line 1603 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getKltMaxFeatures | ( | ) | const |
Get the maximum number of features for the KLT.
Definition at line 1611 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getKltMinDistance | ( | ) | const |
Get the minimum distance between KLT points.
Definition at line 1619 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getKltPyramidLevels | ( | ) | const |
Get the number of pyramid levels
Definition at line 1627 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getKltQuality | ( | ) | const |
Get the quality of the KLT.
Definition at line 1635 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getKltWindowSize | ( | ) | const |
Get the size of the window used in the KLT tracker.
Definition at line 1643 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getLodMinLineLengthThreshold | ( | ) | const |
Get the minimum line length to track a segment when LOD is enabled.
Definition at line 1659 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getLodMinPolygonAreaThreshold | ( | ) | const |
Get the minimum polygon area to track a face when LOD is enabled.
Definition at line 1667 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
bool vpMbtXmlGenericParser::getLodState | ( | ) | const |
Get the state of LOD setting.
Definition at line 1651 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getNearClippingDistance | ( | ) | const |
Get the near clipping distance.
Definition at line 1675 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
unsigned int vpMbtXmlGenericParser::getProjectionErrorKernelSize | ( | ) | const |
Definition at line 1688 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
void vpMbtXmlGenericParser::getProjectionErrorMe | ( | vpMe & | me | ) | const |
Get ME parameters for projection error computation.
Definition at line 1683 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
bool vpMbtXmlGenericParser::hasFarClippingDistance | ( | ) | const |
Has Far clipping been specified?
Definition at line 1698 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
bool vpMbtXmlGenericParser::hasNearClippingDistance | ( | ) | const |
Has Near clipping been specified?
Definition at line 1708 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
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 1470 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), vpMbTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setAngleAppear | ( | const double & | aappear | ) |
Set the angle to determine if a face appeared.
aappear | : New angleAppear |
Definition at line 1718 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setAngleDisappear | ( | const double & | adisappear | ) |
Set the angle to determine if a face disappeared.
adisappear | : New angleDisappear |
Definition at line 1728 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setCameraParameters | ( | const vpCameraParameters & | cam | ) |
Set camera parameters.
cam | : New camera parameters |
Definition at line 1738 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setDepthDenseSamplingStepX | ( | unsigned int | stepX | ) |
Set depth dense sampling step in X.
stepX | : New sampling step |
Definition at line 1748 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setDepthDenseSamplingStepY | ( | unsigned int | stepY | ) |
Set depth dense sampling step in Y.
stepY | : New sampling step |
Definition at line 1758 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setDepthNormalFeatureEstimationMethod | ( | const vpMbtFaceDepthNormal::vpFeatureEstimationType & | method | ) |
Set depth normal feature estimation method.
method | : New feature estimation method |
Definition at line 1768 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationMethod | ( | int | method | ) |
Set depth normal PCL plane estimation method.
method | : New PCL plane estimation method |
Definition at line 1778 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationRansacMaxIter | ( | int | maxIter | ) |
Set depth normal PCL RANSAC maximum number of iterations.
maxIter | : New maximum number of iterations |
Definition at line 1788 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationRansacThreshold | ( | double | threshold | ) |
Set depth normal PCL RANSAC threshold.
threshold | : New RANSAC threshold |
Definition at line 1798 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setDepthNormalSamplingStepX | ( | unsigned int | stepX | ) |
Set depth normal sampling step in X.
stepX | : New sampling step |
Definition at line 1808 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setDepthNormalSamplingStepY | ( | unsigned int | stepY | ) |
Set depth normal sampling step in Y.
stepY | : New sampling step |
Definition at line 1818 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setEdgeMe | ( | const vpMe & | ecm | ) |
Set moving edge parameters.
ecm | : New moving edge parameters |
Definition at line 1828 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setFarClippingDistance | ( | const double & | fclip | ) |
Set the far clipping distance.
fclip | : New farClipping |
Definition at line 1838 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltBlockSize | ( | const unsigned int & | bs | ) |
Set the size of a block.
bs | : New blockSize |
Definition at line 1848 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setKltHarrisParam | ( | const double & | hp | ) |
Set the Harris free parameter.
hp | : New harrisParam |
Definition at line 1858 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setKltMaskBorder | ( | const unsigned int & | mb | ) |
Set the Border of the mask.
mb | = new maskBorder |
Definition at line 1868 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setKltMaxFeatures | ( | const unsigned int & | mF | ) |
Set the maximum number of features for the KLT.
mF | : New maxFeatures |
Definition at line 1878 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setKltMinDistance | ( | const double & | mD | ) |
Set the minimum distance between KLT points.
mD | : New minDist |
Definition at line 1888 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setKltPyramidLevels | ( | const unsigned int & | pL | ) |
Set the number of pyramid levels
pL | : New pyramidLevels |
Definition at line 1898 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setKltQuality | ( | const double & | q | ) |
Set the quality of the KLT.
q | : New quality |
Definition at line 1908 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setKltWindowSize | ( | const unsigned int & | w | ) |
Set the size of the window used in the KLT tracker.
w | : New winSize |
Definition at line 1918 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::setNearClippingDistance | ( | const double & | nclip | ) |
Set the near clipping distance.
nclip | : New nearClipping |
Definition at line 1928 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 1948 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 1938 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().