Visual Servoing Platform
version 3.4.0
|
#include <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 60 of file vpMbtXmlGenericParser.h.
Definition at line 63 of file vpMbtXmlGenericParser.h.
vpMbtXmlGenericParser::vpMbtXmlGenericParser | ( | int | type = EDGE_PARSER | ) |
Definition at line 1484 of file vpMbtXmlGenericParser.cpp.
|
virtual |
Definition at line 1495 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getAngleAppear | ( | ) | const |
Get the angle to determine if a face appeared.
Definition at line 1513 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 1521 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 1526 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 1542 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 1550 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 1558 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 1566 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 1574 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
double vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacThreshold | ( | ) | const |
Get depth normal PCL RANSAC threshold.
Definition at line 1582 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 1590 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 1598 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().
void vpMbtXmlGenericParser::getEdgeMe | ( | vpMe & | ecm | ) | const |
Get moving edge parameters.
Definition at line 1534 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 1606 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 1614 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 1622 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 1630 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 1638 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 1646 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 1654 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 1662 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 1670 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 1678 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 1694 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 1702 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 1686 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 1710 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 1723 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
void vpMbtXmlGenericParser::getProjectionErrorMe | ( | vpMe & | me | ) | const |
Get ME parameters for projection error computation.
Definition at line 1718 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
bool vpMbtXmlGenericParser::hasFarClippingDistance | ( | ) | const |
Has Far clipping been specified?
Definition at line 1733 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 1743 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 1505 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 1753 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 1763 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 1773 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 1783 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 1793 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 1803 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 1813 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 1823 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 1833 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 1843 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 1853 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 1863 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 1873 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltBlockSize | ( | const unsigned int & | bs | ) |
Set the size of a block.
bs | : New blockSize |
Definition at line 1883 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 1893 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 1903 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 1913 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 1923 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 1933 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 1943 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 1953 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 1963 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 1983 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 1973 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 1993 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), vpMbTracker::loadConfigFile(), and vpMbGenericTracker::track().