![]() |
Visual Servoing Platform
version 3.3.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 61 of file vpMbtXmlGenericParser.h.
Definition at line 64 of file vpMbtXmlGenericParser.h.
vpMbtXmlGenericParser::vpMbtXmlGenericParser | ( | int | type = EDGE_PARSER | ) |
Definition at line 1448 of file vpMbtXmlGenericParser.cpp.
|
virtual |
Definition at line 1459 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getAngleAppear | ( | ) | const |
Get the angle to determine if a face appeared.
Definition at line 1477 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::loadConfigFile().
double vpMbtXmlGenericParser::getAngleDisappear | ( | ) | const |
Get the angle to determine if a face disappeared.
Definition at line 1485 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::getCameraParameters | ( | vpCameraParameters & | cam | ) | const |
Definition at line 1490 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepX | ( | ) | const |
Get depth dense sampling step in X.
Definition at line 1506 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepY | ( | ) | const |
Get depth dense sampling step in Y.
Definition at line 1514 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile().
vpMbtFaceDepthNormal::vpFeatureEstimationType vpMbtXmlGenericParser::getDepthNormalFeatureEstimationMethod | ( | ) | const |
Get depth normal feature estimation method.
Definition at line 1522 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationMethod | ( | ) | const |
Get depth normal PCL plane estimation method.
Definition at line 1530 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacMaxIter | ( | ) | const |
Get depth normal PCL maximum number of iterations.
Definition at line 1538 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
double vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacThreshold | ( | ) | const |
Get depth normal PCL RANSAC threshold.
Definition at line 1546 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepX | ( | ) | const |
Get depth normal sampling step in X.
Definition at line 1554 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepY | ( | ) | const |
Get depth normal sampling step in Y.
Definition at line 1562 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::getEdgeMe | ( | vpMe & | ecm | ) | const |
Get moving edge parameters.
Definition at line 1498 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getFarClippingDistance | ( | ) | const |
Get the far clipping distance.
Definition at line 1570 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::loadConfigFile().
bool vpMbtXmlGenericParser::getFovClipping | ( | ) | const |
Get if FOV clipping should be used or not.
Definition at line 1578 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getKltBlockSize | ( | ) | const |
Get the size of a block.
Definition at line 1586 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getKltHarrisParam | ( | ) | const |
Get the Harris free parameter.
Definition at line 1594 of file vpMbtXmlGenericParser.cpp.
unsigned int vpMbtXmlGenericParser::getKltMaskBorder | ( | ) | const |
Get the Border of the mask.
Definition at line 1602 of file vpMbtXmlGenericParser.cpp.
unsigned int vpMbtXmlGenericParser::getKltMaxFeatures | ( | ) | const |
Get the maximum number of features for the KLT.
Definition at line 1610 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getKltMinDistance | ( | ) | const |
Get the minimum distance between KLT points.
Definition at line 1618 of file vpMbtXmlGenericParser.cpp.
unsigned int vpMbtXmlGenericParser::getKltPyramidLevels | ( | ) | const |
Get the number of pyramid levels
Definition at line 1626 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getKltQuality | ( | ) | const |
Get the quality of the KLT.
Definition at line 1634 of file vpMbtXmlGenericParser.cpp.
unsigned int vpMbtXmlGenericParser::getKltWindowSize | ( | ) | const |
Get the size of the window used in the KLT tracker.
Definition at line 1642 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getLodMinLineLengthThreshold | ( | ) | const |
Get the minimum line length to track a segment when LOD is enabled.
Definition at line 1658 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getLodMinPolygonAreaThreshold | ( | ) | const |
Get the minimum polygon area to track a face when LOD is enabled.
Definition at line 1666 of file vpMbtXmlGenericParser.cpp.
bool vpMbtXmlGenericParser::getLodState | ( | ) | const |
Get the state of LOD setting.
Definition at line 1650 of file vpMbtXmlGenericParser.cpp.
double vpMbtXmlGenericParser::getNearClippingDistance | ( | ) | const |
Get the near clipping distance.
Definition at line 1674 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::loadConfigFile().
unsigned int vpMbtXmlGenericParser::getProjectionErrorKernelSize | ( | ) | const |
Definition at line 1687 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
void vpMbtXmlGenericParser::getProjectionErrorMe | ( | vpMe & | me | ) | const |
Get ME parameters for projection error computation.
Definition at line 1682 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().
bool vpMbtXmlGenericParser::hasFarClippingDistance | ( | ) | const |
Has Far clipping been specified?
Definition at line 1697 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::loadConfigFile().
bool vpMbtXmlGenericParser::hasNearClippingDistance | ( | ) | const |
Has Near clipping been specified?
Definition at line 1707 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::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 1469 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbTracker::loadConfigFile().
void vpMbtXmlGenericParser::setAngleAppear | ( | const double & | aappear | ) |
Set the angle to determine if a face appeared.
aappear | : New angleAppear |
Definition at line 1717 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setAngleDisappear | ( | const double & | adisappear | ) |
Set the angle to determine if a face disappeared.
adisappear | : New angleDisappear |
Definition at line 1727 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbDepthNormalTracker::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(), and vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setDepthDenseSamplingStepX | ( | unsigned int | stepX | ) |
Set depth dense sampling step in X.
stepX | : New sampling step |
Definition at line 1747 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 1757 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 1767 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 1777 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 1787 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 1797 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 1807 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 1817 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbDepthNormalTracker::loadConfigFile().
void vpMbtXmlGenericParser::setEdgeMe | ( | const vpMe & | ecm | ) |
Set moving edge parameters.
ecm | : New moving edge parameters |
Definition at line 1827 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setFarClippingDistance | ( | const double & | fclip | ) |
Set the far clipping distance.
fclip | : New farClipping |
Definition at line 1837 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltBlockSize | ( | const unsigned int & | bs | ) |
Set the size of a block.
bs | : New blockSize |
Definition at line 1847 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltHarrisParam | ( | const double & | hp | ) |
Set the Harris free parameter.
hp | : New harrisParam |
Definition at line 1857 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltMaskBorder | ( | const unsigned int & | mb | ) |
Set the Border of the mask.
mb | = new maskBorder |
Definition at line 1867 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 1877 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltMinDistance | ( | const double & | mD | ) |
Set the minimum distance between KLT points.
mD | : New minDist |
Definition at line 1887 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltPyramidLevels | ( | const unsigned int & | pL | ) |
Set the number of pyramid levels
pL | : New pyramidLevels |
Definition at line 1897 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setKltQuality | ( | const double & | q | ) |
Set the quality of the KLT.
q | : New quality |
Definition at line 1907 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 1917 of file vpMbtXmlGenericParser.cpp.
void vpMbtXmlGenericParser::setNearClippingDistance | ( | const double & | nclip | ) |
Set the near clipping distance.
nclip | : New nearClipping |
Definition at line 1927 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 1947 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 1937 of file vpMbtXmlGenericParser.cpp.
Referenced by vpMbTracker::loadConfigFile().