Visual Servoing Platform  version 3.1.0
vpMbtXmlGenericParser Class Reference

#include <visp3/mbt/vpMbtXmlGenericParser.h>

+ Inheritance diagram for vpMbtXmlGenericParser:

Public Types

enum  vpParserType { EDGE_PARSER = 1 << 0, KLT_PARSER = 1 << 1, DEPTH_NORMAL_PARSER = 1 << 2, DEPTH_DENSE_PARSER = 1 << 3 }
 

Public Member Functions

Public Member Functions Inherited from vpMbtXmlGenericParser
 vpMbtXmlGenericParser (const vpParserType &type=EDGE_PARSER)
 
virtual ~vpMbtXmlGenericParser ()
 
double getAngleAppear () const
 
double getAngleDisappear () const
 
void getCameraParameters (vpCameraParameters &_cam) const
 
void getEdgeMe (vpMe &_ecm) const
 
unsigned int getDepthDenseSamplingStepX () const
 
unsigned int getDepthDenseSamplingStepY () const
 
vpMbtFaceDepthNormal::vpFeatureEstimationType getDepthNormalFeatureEstimationMethod () const
 
int getDepthNormalPclPlaneEstimationMethod () const
 
int getDepthNormalPclPlaneEstimationRansacMaxIter () const
 
double getDepthNormalPclPlaneEstimationRansacThreshold () const
 
unsigned int getDepthNormalSamplingStepX () const
 
unsigned int getDepthNormalSamplingStepY () const
 
double getFarClippingDistance () const
 
bool getFovClipping () const
 
unsigned int getKltBlockSize () const
 
double getKltHarrisParam () const
 
unsigned int getKltMaskBorder () const
 
unsigned int getKltMaxFeatures () const
 
double getKltMinDistance () const
 
unsigned int getKltPyramidLevels () const
 
double getKltQuality () const
 
unsigned int getKltWindowSize () const
 
bool getLodState () const
 
double getLodMinLineLengthThreshold () const
 
double getLodMinPolygonAreaThreshold () const
 
double getNearClippingDistance () const
 
bool hasFarClippingDistance () const
 
bool hasNearClippingDistance () const
 
void parse (const std::string &filename)
 
virtual void readMainClass (xmlDocPtr doc, xmlNodePtr node)
 
void setAngleAppear (const double &aappear)
 
void setAngleDisappear (const double &adisappear)
 
void setCameraParameters (const vpCameraParameters &_cam)
 
void setDepthDenseSamplingStepX (const unsigned int stepX)
 
void setDepthDenseSamplingStepY (const unsigned int stepY)
 
void setDepthNormalFeatureEstimationMethod (const vpMbtFaceDepthNormal::vpFeatureEstimationType &method)
 
void setDepthNormalPclPlaneEstimationMethod (const int method)
 
void setDepthNormalPclPlaneEstimationRansacMaxIter (const int maxIter)
 
void setDepthNormalPclPlaneEstimationRansacThreshold (const double threshold)
 
void setDepthNormalSamplingStepX (const unsigned int stepX)
 
void setDepthNormalSamplingStepY (const unsigned int stepY)
 
void setEdgeMe (const vpMe &_ecm)
 
void setFarClippingDistance (const double &fclip)
 
void setKltBlockSize (const unsigned int &bs)
 
void setKltHarrisParam (const double &hp)
 
void setKltMaskBorder (const unsigned int &mb)
 
void setKltMaxFeatures (const unsigned int &mF)
 
void setKltMinDistance (const double &mD)
 
void setKltPyramidLevels (const unsigned int &pL)
 
void setKltQuality (const double &q)
 
void setKltWindowSize (const unsigned int &w)
 
void setNearClippingDistance (const double &nclip)
 
void writeMainClass (xmlNodePtr node)
 
Public Member Functions Inherited from vpXmlParser
void save (const std::string &filename, const bool append=false)
 
void setMap (const std::map< std::string, int > &_map)
 
void setMainTag (const std::string &tag)
 

Static Public Member Functions

Static Public Member Functions Inherited from vpXmlParser
static void cleanup ()
 

Protected Types

enum  vpDataToParseMb {
  conf, face, angle_appear, angle_disappear,
  near_clipping, far_clipping, fov_clipping, camera,
  height, width, u0, v0,
  px, py, lod, use_lod,
  min_line_length_threshold, min_polygon_area_threshold, ecm, mask,
  size, nb_mask, range, tracking,
  contrast, edge_threshold, mu1, mu2,
  sample, step, klt, mask_border,
  max_features, window_size, quality, min_distance,
  harris, size_block, pyramid_lvl, depth_normal,
  feature_estimation_method, PCL_plane_estimation, PCL_plane_estimation_method, PCL_plane_estimation_ransac_max_iter,
  PCL_plane_estimation_ransac_threshold, depth_sampling_step, depth_sampling_step_X, depth_sampling_step_Y,
  depth_dense, depth_dense_sampling_step, depth_dense_sampling_step_X, depth_dense_sampling_step_Y
}
 

Protected Member Functions

void init ()
 
void read_camera (xmlDocPtr doc, xmlNodePtr node)
 
void read_face (xmlDocPtr doc, xmlNodePtr node)
 
void read_lod (xmlDocPtr doc, xmlNodePtr node)
 
void read_ecm (xmlDocPtr doc, xmlNodePtr node)
 
void read_ecm_sample (xmlDocPtr doc, xmlNodePtr node)
 
void read_sample_deprecated (xmlDocPtr doc, xmlNodePtr node)
 
void read_ecm_mask (xmlDocPtr doc, xmlNodePtr node)
 
void read_ecm_range (xmlDocPtr doc, xmlNodePtr node)
 
void read_ecm_contrast (xmlDocPtr doc, xmlNodePtr node)
 
void read_klt (xmlDocPtr doc, xmlNodePtr node)
 
void read_depth_normal (xmlDocPtr doc, xmlNodePtr node)
 
void read_depth_normal_PCL (xmlDocPtr doc, xmlNodePtr node)
 
void read_depth_normal_sampling_step (xmlDocPtr doc, xmlNodePtr node)
 
void read_depth_dense (xmlDocPtr doc, xmlNodePtr node)
 
void read_depth_dense_sampling_step (xmlDocPtr doc, xmlNodePtr node)
 
Protected Member Functions Inherited from vpXmlParser
bool xmlReadBoolChild (xmlDocPtr doc, xmlNodePtr node)
 
char * xmlReadCharChild (xmlDocPtr doc, xmlNodePtr node)
 
double xmlReadDoubleChild (xmlDocPtr doc, xmlNodePtr node)
 
float xmlReadFloatChild (xmlDocPtr doc, xmlNodePtr node)
 
int xmlReadIntChild (xmlDocPtr doc, xmlNodePtr node)
 
std::string xmlReadStringChild (xmlDocPtr doc, xmlNodePtr node)
 
unsigned int xmlReadUnsignedIntChild (xmlDocPtr doc, xmlNodePtr node)
 
void xmlWriteBoolChild (xmlNodePtr node, const char *label, const bool value)
 
void xmlWriteCharChild (xmlNodePtr node, const char *label, const char *value)
 
void xmlWriteDoubleChild (xmlNodePtr node, const char *label, const double value)
 
void xmlWriteFloatChild (xmlNodePtr node, const char *label, const float value)
 
void xmlWriteIntChild (xmlNodePtr node, const char *label, const int value)
 
void xmlWriteStringChild (xmlNodePtr node, const char *label, const std::string &value)
 
void xmlWriteUnsignedIntChild (xmlNodePtr node, const char *label, const unsigned int value)
 

Protected Attributes

vpParserType m_parserType
 
vpCameraParameters m_cam
 
double m_angleAppear
 
double m_angleDisappear
 
bool m_hasNearClipping
 
double m_nearClipping
 
bool m_hasFarClipping
 
double m_farClipping
 
bool m_fovClipping
 
bool m_useLod
 
double m_minLineLengthThreshold
 
double m_minPolygonAreaThreshold
 
vpMe m_ecm
 
unsigned int m_kltMaskBorder
 
unsigned int m_kltMaxFeatures
 
unsigned int m_kltWinSize
 
double m_kltQualityValue
 
double m_kltMinDist
 
double m_kltHarrisParam
 
unsigned int m_kltBlockSize
 
unsigned int m_kltPyramidLevels
 
vpMbtFaceDepthNormal::vpFeatureEstimationType m_depthNormalFeatureEstimationMethod
 
int m_depthNormalPclPlaneEstimationMethod
 
int m_depthNormalPclPlaneEstimationRansacMaxIter
 
double m_depthNormalPclPlaneEstimationRansacThreshold
 
unsigned int m_depthNormalSamplingStepX
 
unsigned int m_depthNormalSamplingStepY
 
unsigned int m_depthDenseSamplingStepX
 
unsigned int m_depthDenseSamplingStepY
 
std::map< std::string, int > nodeMap
 
std::string main_tag
 

Detailed Description

Parse an Xml file to extract configuration parameters of a mbtConfig object.

Data parser for the model-based tracker.

Definition at line 64 of file vpMbtXmlGenericParser.h.

Member Enumeration Documentation

◆ vpDataToParseMb

Enumerator
conf 
face 
angle_appear 
angle_disappear 
near_clipping 
far_clipping 
fov_clipping 
camera 
height 
width 
u0 
v0 
px 
py 
lod 
use_lod 
min_line_length_threshold 
min_polygon_area_threshold 
ecm 
mask 
size 
nb_mask 
range 
tracking 
contrast 
edge_threshold 
mu1 
mu2 
sample 
step 
klt 
mask_border 
max_features 
window_size 
quality 
min_distance 
harris 
size_block 
pyramid_lvl 
depth_normal 
feature_estimation_method 
PCL_plane_estimation 
PCL_plane_estimation_method 
PCL_plane_estimation_ransac_max_iter 
PCL_plane_estimation_ransac_threshold 
depth_sampling_step 
depth_sampling_step_X 
depth_sampling_step_Y 
depth_dense 
depth_dense_sampling_step 
depth_dense_sampling_step_X 
depth_dense_sampling_step_Y 

Definition at line 142 of file vpMbtXmlGenericParser.h.

◆ vpParserType

Enumerator
EDGE_PARSER 

Parser for model-based tracking using moving edges features.

KLT_PARSER 

Parser for model-based tracking using KLT features.

DEPTH_NORMAL_PARSER 

Parser for model-based tracking using depth normal features.

DEPTH_DENSE_PARSER 

Parser for model-based tracking using depth dense features.

Definition at line 67 of file vpMbtXmlGenericParser.h.

Constructor & Destructor Documentation

◆ vpMbtXmlGenericParser()

vpMbtXmlGenericParser::vpMbtXmlGenericParser ( const vpParserType type = EDGE_PARSER)
explicit

Definition at line 46 of file vpMbtXmlGenericParser.cpp.

References init().

◆ ~vpMbtXmlGenericParser()

vpMbtXmlGenericParser::~vpMbtXmlGenericParser ( )
virtual

Definition at line 70 of file vpMbtXmlGenericParser.cpp.

Member Function Documentation

◆ cleanup()

static void vpXmlParser::cleanup ( )
inlinestaticinherited

As stated in http://xmlsoft.org/html/libxml-parser.html#xmlCleanupParser to clean up memory allocated by the xml2 library itself, the user should call xmlCleanupParser() only when the process has finished using the xml2 library. In case of doubt abstain from calling this function or do it just before calling exit() to avoid leak reports from valgrind ! That's why in ViSP the destructor doesn't call xmlCleanupParser(). Rather we provide the static function vpXmlParser::cleanup() that calls xmlCleanupParser() that could be called just before exit().

Examples:
mbtEdgeKltMultiTracking.cpp, mbtEdgeKltTracking.cpp, mbtEdgeMultiTracking.cpp, mbtEdgeTracking.cpp, mbtGenericTracking.cpp, mbtGenericTracking2.cpp, mbtGenericTrackingDepth.cpp, mbtKltMultiTracking.cpp, mbtKltTracking.cpp, testXmlParser.cpp, tutorial-detection-object-mbt.cpp, tutorial-detection-object-mbt2.cpp, tutorial-mb-edge-tracker.cpp, tutorial-mb-hybrid-tracker.cpp, tutorial-mb-klt-tracker.cpp, and tutorial-mb-tracker-full.cpp.

Definition at line 310 of file vpXmlParser.h.

◆ getAngleAppear()

double vpMbtXmlGenericParser::getAngleAppear ( ) const
inline

Get the angle to determine if a face appeared.

Definition at line 213 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getAngleDisappear()

double vpMbtXmlGenericParser::getAngleDisappear ( ) const
inline

Get the angle to determine if a face disappeared.

Definition at line 218 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getCameraParameters()

void vpMbtXmlGenericParser::getCameraParameters ( vpCameraParameters _cam) const
inline

◆ getDepthDenseSamplingStepX()

unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepX ( ) const
inline

Get depth dense sampling step in X.

Definition at line 230 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getDepthDenseSamplingStepY()

unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepY ( ) const
inline

Get depth dense sampling step in Y.

Definition at line 235 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getDepthNormalFeatureEstimationMethod()

vpMbtFaceDepthNormal::vpFeatureEstimationType vpMbtXmlGenericParser::getDepthNormalFeatureEstimationMethod ( ) const
inline

Get depth normal feature estimation method.

Definition at line 240 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getDepthNormalPclPlaneEstimationMethod()

int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationMethod ( ) const
inline

Get depth normal PCL plane estimation method.

Definition at line 248 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getDepthNormalPclPlaneEstimationRansacMaxIter()

int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacMaxIter ( ) const
inline

Get depth normal PCL maximum number of iterations.

Definition at line 253 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getDepthNormalPclPlaneEstimationRansacThreshold()

double vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacThreshold ( ) const
inline

Get depth normal PCL RANSAC threshold.

Definition at line 261 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getDepthNormalSamplingStepX()

unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepX ( ) const
inline

Get depth normal sampling step in X.

Definition at line 269 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getDepthNormalSamplingStepY()

unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepY ( ) const
inline

Get depth normal sampling step in Y.

Definition at line 274 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getEdgeMe()

void vpMbtXmlGenericParser::getEdgeMe ( vpMe _ecm) const
inline

Get moving edge parameters.

Definition at line 225 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getFarClippingDistance()

double vpMbtXmlGenericParser::getFarClippingDistance ( ) const
inline

◆ getFovClipping()

bool vpMbtXmlGenericParser::getFovClipping ( ) const
inline

Get if FOV clipping should be used or not.

Definition at line 284 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ getKltBlockSize()

unsigned int vpMbtXmlGenericParser::getKltBlockSize ( ) const
inline

Get the size of a block.

Definition at line 289 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getKltHarrisParam()

double vpMbtXmlGenericParser::getKltHarrisParam ( ) const
inline

Get the Harris free parameter.

Definition at line 294 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getKltMaskBorder()

unsigned int vpMbtXmlGenericParser::getKltMaskBorder ( ) const
inline

Get the Border of the mask.

Definition at line 299 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getKltMaxFeatures()

unsigned int vpMbtXmlGenericParser::getKltMaxFeatures ( ) const
inline

Get the maximum number of features for the KLT.

Definition at line 304 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getKltMinDistance()

double vpMbtXmlGenericParser::getKltMinDistance ( ) const
inline

Get the minimum distance between KLT points.

Definition at line 309 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getKltPyramidLevels()

unsigned int vpMbtXmlGenericParser::getKltPyramidLevels ( ) const
inline

Get the number of pyramid levels

Definition at line 314 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getKltQuality()

double vpMbtXmlGenericParser::getKltQuality ( ) const
inline

Get the quality of the KLT.

Definition at line 319 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getKltWindowSize()

unsigned int vpMbtXmlGenericParser::getKltWindowSize ( ) const
inline

Get the size of the window used in the KLT tracker.

Definition at line 324 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getLodMinLineLengthThreshold()

double vpMbtXmlGenericParser::getLodMinLineLengthThreshold ( ) const
inline

Get the minimum line length to track a segment when LOD is enabled.

Definition at line 334 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getLodMinPolygonAreaThreshold()

double vpMbtXmlGenericParser::getLodMinPolygonAreaThreshold ( ) const
inline

Get the minimum polygon area to track a face when LOD is enabled.

Definition at line 339 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getLodState()

bool vpMbtXmlGenericParser::getLodState ( ) const
inline

Get the state of LOD setting.

Definition at line 329 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ getNearClippingDistance()

double vpMbtXmlGenericParser::getNearClippingDistance ( ) const
inline

◆ hasFarClippingDistance()

bool vpMbtXmlGenericParser::hasFarClippingDistance ( ) const
inline

Has Far clipping been specified?

Returns
True if yes, False otherwise.

Definition at line 351 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ hasNearClippingDistance()

bool vpMbtXmlGenericParser::hasNearClippingDistance ( ) const
inline

Has Near clipping been specified?

Returns
True if yes, False otherwise.

Definition at line 358 of file vpMbtXmlGenericParser.h.

References vpXmlParser::parse(), and vpXmlParser::readMainClass().

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ init()

◆ parse()

void vpMbtXmlGenericParser::parse ( const std::string &  filename)

Parse the file in parameters. This method is deprecated, use parse() instead.

Parameters
filename: File to parse.

Definition at line 147 of file vpMbtXmlGenericParser.cpp.

References vpXmlParser::parse().

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ read_camera()

void vpMbtXmlGenericParser::read_camera ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read camera information.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the camera information.

Definition at line 302 of file vpMbtXmlGenericParser.cpp.

References vpCameraParameters::get_px(), vpCameraParameters::get_py(), vpCameraParameters::get_u0(), vpCameraParameters::get_v0(), vpCameraParameters::initPersProjWithoutDistortion(), m_cam, vpXmlParser::nodeMap, px, py, u0, v0, and vpXmlParser::xmlReadDoubleChild().

Referenced by readMainClass().

◆ read_depth_dense()

void vpMbtXmlGenericParser::read_depth_dense ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read depth dense information.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the ecm information.

Definition at line 550 of file vpMbtXmlGenericParser.cpp.

References depth_dense_sampling_step, m_depthDenseSamplingStepX, m_depthDenseSamplingStepY, vpXmlParser::nodeMap, and read_depth_dense_sampling_step().

Referenced by readMainClass().

◆ read_depth_dense_sampling_step()

void vpMbtXmlGenericParser::read_depth_dense_sampling_step ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read depth dense sampling step.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the range information.

Definition at line 585 of file vpMbtXmlGenericParser.cpp.

References depth_dense_sampling_step_X, depth_dense_sampling_step_Y, m_depthDenseSamplingStepX, m_depthDenseSamplingStepY, vpXmlParser::nodeMap, and vpXmlParser::xmlReadUnsignedIntChild().

Referenced by read_depth_dense().

◆ read_depth_normal()

void vpMbtXmlGenericParser::read_depth_normal ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

◆ read_depth_normal_PCL()

void vpMbtXmlGenericParser::read_depth_normal_PCL ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

◆ read_depth_normal_sampling_step()

void vpMbtXmlGenericParser::read_depth_normal_sampling_step ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read depth normal sampling step.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node information.

Definition at line 504 of file vpMbtXmlGenericParser.cpp.

References depth_sampling_step_X, depth_sampling_step_Y, m_depthNormalSamplingStepX, m_depthNormalSamplingStepY, vpXmlParser::nodeMap, and vpXmlParser::xmlReadUnsignedIntChild().

Referenced by read_depth_normal().

◆ read_ecm()

void vpMbtXmlGenericParser::read_ecm ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read ecm information.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the ecm information.

Definition at line 631 of file vpMbtXmlGenericParser.cpp.

References contrast, vpMe::getMaskNumber(), vpMe::getMaskSize(), vpMe::getMu1(), vpMe::getMu2(), vpMe::getRange(), vpMe::getSampleStep(), vpMe::getThreshold(), m_ecm, mask, vpXmlParser::nodeMap, range, read_ecm_contrast(), read_ecm_mask(), read_ecm_range(), read_ecm_sample(), and sample.

Referenced by readMainClass().

◆ read_ecm_contrast()

void vpMbtXmlGenericParser::read_ecm_contrast ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read the contrast information from the xml file.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the contrast information.

Definition at line 698 of file vpMbtXmlGenericParser.cpp.

References edge_threshold, vpMe::getMu1(), vpMe::getMu2(), vpMe::getThreshold(), m_ecm, mu1, mu2, vpXmlParser::nodeMap, vpMe::setMu1(), vpMe::setMu2(), vpMe::setThreshold(), and vpXmlParser::xmlReadDoubleChild().

Referenced by read_ecm().

◆ read_ecm_mask()

void vpMbtXmlGenericParser::read_ecm_mask ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read mask information for the vpMeSite.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the mask information.

Definition at line 764 of file vpMbtXmlGenericParser.cpp.

References vpException::badValue, vpMe::getMaskNumber(), vpMe::getMaskSize(), m_ecm, nb_mask, vpXmlParser::nodeMap, vpMe::setMaskNumber(), vpMe::setMaskSize(), size, and vpXmlParser::xmlReadUnsignedIntChild().

Referenced by read_ecm().

◆ read_ecm_range()

void vpMbtXmlGenericParser::read_ecm_range ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read range information for the vpMeSite.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the range information.

Definition at line 823 of file vpMbtXmlGenericParser.cpp.

References vpMe::getRange(), m_ecm, vpXmlParser::nodeMap, vpMe::setRange(), tracking, and vpXmlParser::xmlReadUnsignedIntChild().

Referenced by read_ecm().

◆ read_ecm_sample()

void vpMbtXmlGenericParser::read_ecm_sample ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read sample information.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the sample information.

Definition at line 863 of file vpMbtXmlGenericParser.cpp.

References vpMe::getSampleStep(), m_ecm, vpXmlParser::nodeMap, vpMe::setSampleStep(), step, and vpXmlParser::xmlReadIntChild().

Referenced by read_ecm().

◆ read_face()

void vpMbtXmlGenericParser::read_face ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read face information.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the camera information.

Definition at line 903 of file vpMbtXmlGenericParser.cpp.

References angle_appear, angle_disappear, far_clipping, fov_clipping, m_angleAppear, m_angleDisappear, m_farClipping, m_fovClipping, m_hasFarClipping, m_hasNearClipping, m_nearClipping, near_clipping, vpXmlParser::nodeMap, vpXmlParser::xmlReadDoubleChild(), and vpXmlParser::xmlReadIntChild().

Referenced by readMainClass().

◆ read_klt()

void vpMbtXmlGenericParser::read_klt ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read klt information.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the camera information.

Definition at line 987 of file vpMbtXmlGenericParser.cpp.

References harris, m_kltBlockSize, m_kltHarrisParam, m_kltMaskBorder, m_kltMaxFeatures, m_kltMinDist, m_kltPyramidLevels, m_kltQualityValue, m_kltWinSize, mask_border, max_features, min_distance, vpXmlParser::nodeMap, pyramid_lvl, quality, size_block, window_size, vpXmlParser::xmlReadDoubleChild(), and vpXmlParser::xmlReadUnsignedIntChild().

Referenced by readMainClass().

◆ read_lod()

void vpMbtXmlGenericParser::read_lod ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

◆ read_sample_deprecated()

void vpMbtXmlGenericParser::read_sample_deprecated ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected

Read sample information.

Exceptions
vpException::fatalErrorif there was an unexpected number of data.
Parameters
doc: Pointer to the document.
node: Pointer to the node of the sample information.

Definition at line 1148 of file vpMbtXmlGenericParser.cpp.

References vpMe::getSampleStep(), m_ecm, vpXmlParser::nodeMap, vpMe::setSampleStep(), step, and vpXmlParser::xmlReadIntChild().

Referenced by readMainClass().

◆ readMainClass()

◆ save()

void vpXmlParser::save ( const std::string &  filename,
const bool  append = false 
)
inherited

Save the content of the class in the file given in parameters. The data of the class are in the child class. This method calls the write_main_class method which has to be implemented for every class depending on the data to save.

Parameters
filename: the name of the file used to record the data
append: if true and if the file exists, the data will be added to the data already in the file

Definition at line 453 of file vpXmlParser.cpp.

References vpException::ioError, vpXmlParser::main_tag, vpERROR_TRACE, and vpXmlParser::writeMainClass().

Referenced by vpXmlParserHomogeneousMatrix::getHomogeneousMatrixName(), and vpXmlParserCamera::getWidth().

◆ setAngleAppear()

void vpMbtXmlGenericParser::setAngleAppear ( const double &  aappear)
inline

Set the angle to determine if a face appeared.

Parameters
aappear: New angleAppear

Definition at line 369 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setAngleDisappear()

void vpMbtXmlGenericParser::setAngleDisappear ( const double &  adisappear)
inline

Set the angle to determine if a face disappeared.

Parameters
adisappear: New angleDisappear

Definition at line 376 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setCameraParameters()

void vpMbtXmlGenericParser::setCameraParameters ( const vpCameraParameters _cam)
inline

Set camera parameters.

Parameters
_cam: New camera parameters

Definition at line 383 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setDepthDenseSamplingStepX()

void vpMbtXmlGenericParser::setDepthDenseSamplingStepX ( const unsigned int  stepX)
inline

Set depth dense sampling step in X.

Parameters
stepX: New sampling step

Definition at line 390 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setDepthDenseSamplingStepY()

void vpMbtXmlGenericParser::setDepthDenseSamplingStepY ( const unsigned int  stepY)
inline

Set depth dense sampling step in Y.

Parameters
stepY: New sampling step

Definition at line 397 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthDenseTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setDepthNormalFeatureEstimationMethod()

void vpMbtXmlGenericParser::setDepthNormalFeatureEstimationMethod ( const vpMbtFaceDepthNormal::vpFeatureEstimationType method)
inline

Set depth normal feature estimation method.

Parameters
method: New feature estimation method

Definition at line 404 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setDepthNormalPclPlaneEstimationMethod()

void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationMethod ( const int  method)
inline

Set depth normal PCL plane estimation method.

Parameters
method: New PCL plane estimation method

Definition at line 414 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setDepthNormalPclPlaneEstimationRansacMaxIter()

void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationRansacMaxIter ( const int  maxIter)
inline

Set depth normal PCL RANSAC maximum number of iterations.

Parameters
maxIter: New maximum number of iterations

Definition at line 424 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setDepthNormalPclPlaneEstimationRansacThreshold()

void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationRansacThreshold ( const double  threshold)
inline

Set depth normal PCL RANSAC threshold.

Parameters
threshold: New RANSAC threshold

Definition at line 434 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setDepthNormalSamplingStepX()

void vpMbtXmlGenericParser::setDepthNormalSamplingStepX ( const unsigned int  stepX)
inline

Set depth normal sampling step in X.

Parameters
stepX: New sampling step

Definition at line 444 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setDepthNormalSamplingStepY()

void vpMbtXmlGenericParser::setDepthNormalSamplingStepY ( const unsigned int  stepY)
inline

Set depth normal sampling step in Y.

Parameters
stepY: New sampling step

Definition at line 451 of file vpMbtXmlGenericParser.h.

Referenced by vpMbDepthNormalTracker::loadConfigFile(), and vpMbGenericTracker::track().

◆ setEdgeMe()

void vpMbtXmlGenericParser::setEdgeMe ( const vpMe _ecm)
inline

Set moving edge parameters.

Parameters
_ecm: New moving edge parameters

Definition at line 458 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setFarClippingDistance()

void vpMbtXmlGenericParser::setFarClippingDistance ( const double &  fclip)
inline

Set the far clipping distance.

Parameters
fclip: New farClipping

Definition at line 465 of file vpMbtXmlGenericParser.h.

◆ setKltBlockSize()

void vpMbtXmlGenericParser::setKltBlockSize ( const unsigned int &  bs)
inline

Set the size of a block.

Parameters
bs: New blockSize

Definition at line 472 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setKltHarrisParam()

void vpMbtXmlGenericParser::setKltHarrisParam ( const double &  hp)
inline

Set the Harris free parameter.

Parameters
hp: New harrisParam

Definition at line 479 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setKltMaskBorder()

void vpMbtXmlGenericParser::setKltMaskBorder ( const unsigned int &  mb)
inline

Set the Border of the mask.

Parameters
mb= new maskBorder

Definition at line 486 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setKltMaxFeatures()

void vpMbtXmlGenericParser::setKltMaxFeatures ( const unsigned int &  mF)
inline

Set the maximum number of features for the KLT.

Parameters
mF: New maxFeatures

Definition at line 493 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setKltMinDistance()

void vpMbtXmlGenericParser::setKltMinDistance ( const double &  mD)
inline

Set the minimum distance between KLT points.

Parameters
mD: New minDist

Definition at line 500 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setKltPyramidLevels()

void vpMbtXmlGenericParser::setKltPyramidLevels ( const unsigned int &  pL)
inline

Set the number of pyramid levels

Parameters
pL: New pyramidLevels

Definition at line 507 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setKltQuality()

void vpMbtXmlGenericParser::setKltQuality ( const double &  q)
inline

Set the quality of the KLT.

Parameters
q: New quality

Definition at line 514 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setKltWindowSize()

void vpMbtXmlGenericParser::setKltWindowSize ( const unsigned int &  w)
inline

Set the size of the window used in the KLT tracker.

Parameters
w: New winSize

Definition at line 521 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

◆ setMainTag()

void vpXmlParser::setMainTag ( const std::string &  tag)
inlineinherited

set the name of the main tag

The main tag corresponds to the name of the root node

Parameters
tag: name of the root node of the document

Definition at line 295 of file vpXmlParser.h.

Referenced by vpMbXmlParser::init(), init(), and vpXmlConfigParserKeyPoint::vpXmlConfigParserKeyPoint().

◆ setMap()

void vpXmlParser::setMap ( const std::map< std::string, int > &  _map)
inlineinherited

Set the map describing the data to parse. This map stores the name of each node and an associated key used to simplify the parsing of the file.

If the following file want to be parsed:

<config>
<range>5</range>
<step>7</step>
<size_filter>3</size_filter>
</config>

The following map has to be declared:

std::map dataToParse;
dataToParse["config"] = 0;
dataToParse["range"] = 1;
dataToParse["step"] = 2;
dataToParse["size_filter"] = 3;

Or, you can use keyzord instead of number as key but it implies to declare in the child class an enumeration type of the name. For example:

typedef enum{
config,
size_filter} data_enum;
std::map dataToParse;
dataToParse["config"] = config;
dataToParse["range"] = range;
dataToParse["step"] = step;
dataToParse["size_filter"] = size_filter;
Parameters
_map: the map describing the data to parse

Definition at line 286 of file vpXmlParser.h.

◆ setNearClippingDistance()

void vpMbtXmlGenericParser::setNearClippingDistance ( const double &  nclip)
inline

Set the near clipping distance.

Parameters
nclip: New nearClipping

Definition at line 528 of file vpMbtXmlGenericParser.h.

References vpXmlParser::writeMainClass().

◆ writeMainClass()

void vpMbtXmlGenericParser::writeMainClass ( xmlNodePtr  node)
virtual

Write info to file.

Warning
Useless, so not yet implemented => Throw exception.

Implements vpXmlParser.

Definition at line 154 of file vpMbtXmlGenericParser.cpp.

References vpException::notImplementedError.

◆ xmlReadBoolChild()

bool vpXmlParser::xmlReadBoolChild ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protectedinherited

read a boolean

Warning
throw a vpException::ioError if the value cannot be parsed to a bool
Parameters
doc: The main xml document
node: a pointer to the node to read value
Returns
the bool value in the node

Definition at line 282 of file vpXmlParser.cpp.

References vpException::fatalError.

◆ xmlReadCharChild()

char * vpXmlParser::xmlReadCharChild ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protectedinherited

Read an array of character.

Warning
The array of characters is allocated and must be explicitly freed to avoid memory leak.
Parameters
doc: The main xml document
node: a pointer to the node to read value
Returns
pointer to an allocated array of character.

Definition at line 100 of file vpXmlParser.cpp.

References vpException::fatalError.

Referenced by vpXmlParserHomogeneousMatrix::save(), and vpXmlParserCamera::save().

◆ xmlReadDoubleChild()

double vpXmlParser::xmlReadDoubleChild ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protectedinherited

read a double

Warning
throw a vpException::ioError if the value cannot be parsed to a double
Parameters
doc: The main xml document
node: a pointer to the node to read value
Returns
the double value in the node
Examples:
testXmlParser.cpp.

Definition at line 212 of file vpXmlParser.cpp.

References vpException::fatalError, and vpException::ioError.

Referenced by vpXmlConfigParserKeyPoint::parse(), vpMbXmlParser::read_camera(), read_camera(), vpMbtXmlParser::read_contrast(), read_depth_normal_PCL(), read_ecm_contrast(), vpMbXmlParser::read_face(), read_face(), vpMbtKltXmlParser::read_klt(), read_klt(), vpMbXmlParser::read_lod(), read_lod(), vpXmlParserHomogeneousMatrix::save(), and vpXmlParserCamera::save().

◆ xmlReadFloatChild()

float vpXmlParser::xmlReadFloatChild ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protectedinherited

read a float

Warning
throw a vpException::ioError if the value cannot be parsed to a float
Parameters
doc: The main xml document
node: a pointer to the node to read value
Returns
the float value in the node

Definition at line 245 of file vpXmlParser.cpp.

References vpException::fatalError, and vpException::ioError.

◆ xmlReadIntChild()

int vpXmlParser::xmlReadIntChild ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protectedinherited

read an int

Warning
throw a vpException::ioError if the value cannot be parsed to an integer
Parameters
doc: The main xml document
node: a pointer to the node to read value
Returns
the integer value in the node
Examples:
testXmlParser.cpp.

Definition at line 144 of file vpXmlParser.cpp.

References vpException::fatalError, and vpException::ioError.

Referenced by vpXmlConfigParserKeyPoint::parse(), read_depth_normal(), read_depth_normal_PCL(), read_ecm_sample(), vpMbXmlParser::read_face(), read_face(), vpMbXmlParser::read_lod(), read_lod(), vpMbtXmlParser::read_sample(), vpMbtXmlParser::read_sample_deprecated(), and read_sample_deprecated().

◆ xmlReadStringChild()

std::string vpXmlParser::xmlReadStringChild ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protectedinherited

Read an array of character.

Parameters
doc: The main xml document
node: a pointer to the node to read value
Returns
std::string representing the value.
Examples:
testXmlParser.cpp.

Definition at line 120 of file vpXmlParser.cpp.

References vpException::fatalError.

Referenced by vpXmlConfigParserKeyPoint::parse().

◆ xmlReadUnsignedIntChild()

unsigned int vpXmlParser::xmlReadUnsignedIntChild ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protectedinherited

read an int

Warning
throw a vpException::ioError if the value cannot be parsed to an unsigned integer
Parameters
doc: The main xml document
node: a pointer to the node to read value
Returns
the unsigned integer value in the node

Definition at line 178 of file vpXmlParser.cpp.

References vpException::fatalError, and vpException::ioError.

Referenced by read_depth_dense_sampling_step(), read_depth_normal_sampling_step(), read_ecm_mask(), read_ecm_range(), vpMbtKltXmlParser::read_klt(), read_klt(), vpMbtXmlParser::read_mask(), vpMbtXmlParser::read_range(), and vpXmlParserCamera::save().

◆ xmlWriteBoolChild()

void vpXmlParser::xmlWriteBoolChild ( xmlNodePtr  node,
const char *  label,
const bool  value 
)
protectedinherited

write a bool.

Parameters
node: a pointer to the node to read value
label: label (name of the data) of the node
value: boolean to write (true or false)

Definition at line 398 of file vpXmlParser.cpp.

◆ xmlWriteCharChild()

void vpXmlParser::xmlWriteCharChild ( xmlNodePtr  node,
const char *  label,
const char *  value 
)
protectedinherited

write an array of character.

Parameters
node: a pointer to the node to read value
label: label (name of the data) of the node
value: pointer to the array of character to write
Examples:
testXmlParser.cpp.

Definition at line 306 of file vpXmlParser.cpp.

◆ xmlWriteDoubleChild()

void vpXmlParser::xmlWriteDoubleChild ( xmlNodePtr  node,
const char *  label,
const double  value 
)
protectedinherited

write a double.

Parameters
node: a pointer to the node to read value
label: label (name of the data) of the node
value: double to write
Examples:
testXmlParser.cpp.

Definition at line 366 of file vpXmlParser.cpp.

◆ xmlWriteFloatChild()

void vpXmlParser::xmlWriteFloatChild ( xmlNodePtr  node,
const char *  label,
const float  value 
)
protectedinherited

write a float.

Parameters
node: a pointer to the node to read value
label: label (name of the data) of the node
value: float to write

Definition at line 382 of file vpXmlParser.cpp.

◆ xmlWriteIntChild()

void vpXmlParser::xmlWriteIntChild ( xmlNodePtr  node,
const char *  label,
const int  value 
)
protectedinherited

write an integer.

Parameters
node: a pointer to the node to read value
label: label (name of the data) of the node
value: integer to write
Examples:
testXmlParser.cpp.

Definition at line 334 of file vpXmlParser.cpp.

◆ xmlWriteStringChild()

void vpXmlParser::xmlWriteStringChild ( xmlNodePtr  node,
const char *  label,
const std::string &  value 
)
protectedinherited

write an array of character.

Parameters
node: a pointer to the node to read value
label: label (name of the data) of the node
value: std::string to write;

Definition at line 320 of file vpXmlParser.cpp.

◆ xmlWriteUnsignedIntChild()

void vpXmlParser::xmlWriteUnsignedIntChild ( xmlNodePtr  node,
const char *  label,
const unsigned int  value 
)
protectedinherited

write an unsigned integer.

Parameters
node: a pointer to the node to read value
label: label (name of the data) of the node
value: unsigned integer to write

Definition at line 350 of file vpXmlParser.cpp.

Member Data Documentation

◆ m_angleAppear

double vpMbtXmlGenericParser::m_angleAppear
protected

Angle to determine if a face appeared.

Definition at line 83 of file vpMbtXmlGenericParser.h.

Referenced by read_face(), and readMainClass().

◆ m_angleDisappear

double vpMbtXmlGenericParser::m_angleDisappear
protected

Angle to determine if a face disappeared.

Definition at line 85 of file vpMbtXmlGenericParser.h.

Referenced by read_face(), and readMainClass().

◆ m_cam

vpCameraParameters vpMbtXmlGenericParser::m_cam
protected

Camera parameters.

Definition at line 81 of file vpMbtXmlGenericParser.h.

Referenced by read_camera(), and readMainClass().

◆ m_depthDenseSamplingStepX

unsigned int vpMbtXmlGenericParser::m_depthDenseSamplingStepX
protected

Sampling step in X.

Definition at line 138 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_dense(), read_depth_dense_sampling_step(), and readMainClass().

◆ m_depthDenseSamplingStepY

unsigned int vpMbtXmlGenericParser::m_depthDenseSamplingStepY
protected

Sampling step in Y.

Definition at line 140 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_dense(), read_depth_dense_sampling_step(), and readMainClass().

◆ m_depthNormalFeatureEstimationMethod

vpMbtFaceDepthNormal::vpFeatureEstimationType vpMbtXmlGenericParser::m_depthNormalFeatureEstimationMethod
protected

Feature estimation method.

Definition at line 125 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_normal(), and readMainClass().

◆ m_depthNormalPclPlaneEstimationMethod

int vpMbtXmlGenericParser::m_depthNormalPclPlaneEstimationMethod
protected

PCL plane estimation method.

Definition at line 127 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_normal(), read_depth_normal_PCL(), and readMainClass().

◆ m_depthNormalPclPlaneEstimationRansacMaxIter

int vpMbtXmlGenericParser::m_depthNormalPclPlaneEstimationRansacMaxIter
protected

PCL RANSAC maximum number of iterations.

Definition at line 129 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_normal(), read_depth_normal_PCL(), and readMainClass().

◆ m_depthNormalPclPlaneEstimationRansacThreshold

double vpMbtXmlGenericParser::m_depthNormalPclPlaneEstimationRansacThreshold
protected

PCL RANSAC threshold.

Definition at line 131 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_normal(), read_depth_normal_PCL(), and readMainClass().

◆ m_depthNormalSamplingStepX

unsigned int vpMbtXmlGenericParser::m_depthNormalSamplingStepX
protected

Sampling step in X.

Definition at line 133 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_normal(), read_depth_normal_sampling_step(), and readMainClass().

◆ m_depthNormalSamplingStepY

unsigned int vpMbtXmlGenericParser::m_depthNormalSamplingStepY
protected

Sampling step in Y.

Definition at line 135 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_normal(), read_depth_normal_sampling_step(), and readMainClass().

◆ m_ecm

vpMe vpMbtXmlGenericParser::m_ecm
protected

◆ m_farClipping

double vpMbtXmlGenericParser::m_farClipping
protected

Near clipping distance.

Definition at line 93 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

◆ m_fovClipping

bool vpMbtXmlGenericParser::m_fovClipping
protected

Fov Clipping.

Definition at line 95 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

◆ m_hasFarClipping

bool vpMbtXmlGenericParser::m_hasFarClipping
protected

Is far clipping distance specified?

Definition at line 91 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

◆ m_hasNearClipping

bool vpMbtXmlGenericParser::m_hasNearClipping
protected

Is near clipping distance specified?

Definition at line 87 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

◆ m_kltBlockSize

unsigned int vpMbtXmlGenericParser::m_kltBlockSize
protected

Block size.

Definition at line 120 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

◆ m_kltHarrisParam

double vpMbtXmlGenericParser::m_kltHarrisParam
protected

Harris free parameters.

Definition at line 118 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

◆ m_kltMaskBorder

unsigned int vpMbtXmlGenericParser::m_kltMaskBorder
protected

Border of the mask used on Klt points.

Definition at line 108 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

◆ m_kltMaxFeatures

unsigned int vpMbtXmlGenericParser::m_kltMaxFeatures
protected

Maximum of Klt features.

Definition at line 110 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

◆ m_kltMinDist

double vpMbtXmlGenericParser::m_kltMinDist
protected

Minimum distance between klt points.

Definition at line 116 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

◆ m_kltPyramidLevels

unsigned int vpMbtXmlGenericParser::m_kltPyramidLevels
protected

Number of pyramid levels.

Definition at line 122 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

◆ m_kltQualityValue

double vpMbtXmlGenericParser::m_kltQualityValue
protected

Quality of the Klt points.

Definition at line 114 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

◆ m_kltWinSize

unsigned int vpMbtXmlGenericParser::m_kltWinSize
protected

Windows size.

Definition at line 112 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

◆ m_minLineLengthThreshold

double vpMbtXmlGenericParser::m_minLineLengthThreshold
protected

Minimum line length to track a segment when LOD is enabled.

Definition at line 100 of file vpMbtXmlGenericParser.h.

Referenced by read_lod(), and readMainClass().

◆ m_minPolygonAreaThreshold

double vpMbtXmlGenericParser::m_minPolygonAreaThreshold
protected

Minimum polygon area to track a face when LOD is enabled.

Definition at line 102 of file vpMbtXmlGenericParser.h.

Referenced by read_lod(), and readMainClass().

◆ m_nearClipping

double vpMbtXmlGenericParser::m_nearClipping
protected

Near clipping distance.

Definition at line 89 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

◆ m_parserType

vpParserType vpMbtXmlGenericParser::m_parserType
protected

Parser type.

Definition at line 79 of file vpMbtXmlGenericParser.h.

Referenced by readMainClass().

◆ m_useLod

bool vpMbtXmlGenericParser::m_useLod
protected

If true, the LOD is enabled, otherwise it is not.

Definition at line 98 of file vpMbtXmlGenericParser.h.

Referenced by read_lod(), and readMainClass().

◆ main_tag

std::string vpXmlParser::main_tag
protectedinherited

The name of the main tag for the file to parse

Definition at line 231 of file vpXmlParser.h.

Referenced by vpXmlParser::save().

◆ nodeMap