Visual Servoing Platform  version 3.2.0 under development (2019-01-22)
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,
  PROJECTION_ERROR_PARSER = 0
}
 

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
 
void getProjectionErrorMe (vpMe &me) const
 
unsigned int getProjectionErrorKernelSize () const
 
bool hasFarClippingDistance () const
 
bool hasNearClippingDistance () const
 
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 setProjectionErrorMe (const vpMe &me)
 
void setProjectionErrorKernelSize (const unsigned int &size)
 
void writeMainClass (xmlNodePtr node)
 
Public Member Functions Inherited from vpXmlParser
void parse (const std::string &filename)
 
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,
  projection_error, projection_error_sample_step, projection_error_kernel_size
}
 

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)
 
void read_projection_error (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
 
vpMe m_projectionErrorMe
 
unsigned int m_projectionErrorKernelSize
 
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

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 
projection_error 
projection_error_sample_step 
projection_error_kernel_size 

Definition at line 148 of file vpMbtXmlGenericParser.h.

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.

PROJECTION_ERROR_PARSER 

Parser for projection error computation parameters.

Definition at line 67 of file vpMbtXmlGenericParser.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file vpMbtXmlGenericParser.cpp.

References init().

vpMbtXmlGenericParser::~vpMbtXmlGenericParser ( )
virtual

Definition at line 72 of file vpMbtXmlGenericParser.cpp.

Member Function Documentation

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, mbtGenericTrackingDepthOnly.cpp, mbtKltMultiTracking.cpp, mbtKltTracking.cpp, testGenericTracker.cpp, testGenericTrackerDepth.cpp, testXmlParser.cpp, tutorial-detection-object-mbt-deprecated.cpp, tutorial-detection-object-mbt.cpp, tutorial-detection-object-mbt2-deprecated.cpp, tutorial-detection-object-mbt2.cpp, tutorial-mb-edge-tracker.cpp, tutorial-mb-generic-tracker-full.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.

double vpMbtXmlGenericParser::getAngleAppear ( ) const
inline

Get the angle to determine if a face appeared.

Definition at line 223 of file vpMbtXmlGenericParser.h.

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

double vpMbtXmlGenericParser::getAngleDisappear ( ) const
inline

Get the angle to determine if a face disappeared.

Definition at line 228 of file vpMbtXmlGenericParser.h.

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

void vpMbtXmlGenericParser::getCameraParameters ( vpCameraParameters _cam) const
inline
unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepX ( ) const
inline

Get depth dense sampling step in X.

Definition at line 240 of file vpMbtXmlGenericParser.h.

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

unsigned int vpMbtXmlGenericParser::getDepthDenseSamplingStepY ( ) const
inline

Get depth dense sampling step in Y.

Definition at line 245 of file vpMbtXmlGenericParser.h.

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

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

Get depth normal feature estimation method.

Definition at line 250 of file vpMbtXmlGenericParser.h.

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

int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationMethod ( ) const
inline

Get depth normal PCL plane estimation method.

Definition at line 258 of file vpMbtXmlGenericParser.h.

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

int vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacMaxIter ( ) const
inline

Get depth normal PCL maximum number of iterations.

Definition at line 263 of file vpMbtXmlGenericParser.h.

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

double vpMbtXmlGenericParser::getDepthNormalPclPlaneEstimationRansacThreshold ( ) const
inline

Get depth normal PCL RANSAC threshold.

Definition at line 271 of file vpMbtXmlGenericParser.h.

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

unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepX ( ) const
inline

Get depth normal sampling step in X.

Definition at line 279 of file vpMbtXmlGenericParser.h.

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

unsigned int vpMbtXmlGenericParser::getDepthNormalSamplingStepY ( ) const
inline

Get depth normal sampling step in Y.

Definition at line 284 of file vpMbtXmlGenericParser.h.

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

void vpMbtXmlGenericParser::getEdgeMe ( vpMe _ecm) const
inline

Get moving edge parameters.

Definition at line 235 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

double vpMbtXmlGenericParser::getFarClippingDistance ( ) const
inline
bool vpMbtXmlGenericParser::getFovClipping ( ) const
inline

Get if FOV clipping should be used or not.

Definition at line 294 of file vpMbtXmlGenericParser.h.

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

unsigned int vpMbtXmlGenericParser::getKltBlockSize ( ) const
inline

Get the size of a block.

Definition at line 299 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

double vpMbtXmlGenericParser::getKltHarrisParam ( ) const
inline

Get the Harris free parameter.

Definition at line 304 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

unsigned int vpMbtXmlGenericParser::getKltMaskBorder ( ) const
inline

Get the Border of the mask.

Definition at line 309 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

unsigned int vpMbtXmlGenericParser::getKltMaxFeatures ( ) const
inline

Get the maximum number of features for the KLT.

Definition at line 314 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

double vpMbtXmlGenericParser::getKltMinDistance ( ) const
inline

Get the minimum distance between KLT points.

Definition at line 319 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

unsigned int vpMbtXmlGenericParser::getKltPyramidLevels ( ) const
inline

Get the number of pyramid levels

Definition at line 324 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

double vpMbtXmlGenericParser::getKltQuality ( ) const
inline

Get the quality of the KLT.

Definition at line 329 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

unsigned int vpMbtXmlGenericParser::getKltWindowSize ( ) const
inline

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

Definition at line 334 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

double vpMbtXmlGenericParser::getLodMinLineLengthThreshold ( ) const
inline

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

Definition at line 344 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

double vpMbtXmlGenericParser::getLodMinPolygonAreaThreshold ( ) const
inline

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

Definition at line 349 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

bool vpMbtXmlGenericParser::getLodState ( ) const
inline

Get the state of LOD setting.

Definition at line 339 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

double vpMbtXmlGenericParser::getNearClippingDistance ( ) const
inline
unsigned int vpMbtXmlGenericParser::getProjectionErrorKernelSize ( ) const
inline

Definition at line 361 of file vpMbtXmlGenericParser.h.

Referenced by vpMbTracker::loadConfigFile().

void vpMbtXmlGenericParser::getProjectionErrorMe ( vpMe me) const
inline

Get ME parameters for projection error computation.

Definition at line 359 of file vpMbtXmlGenericParser.h.

Referenced by vpMbTracker::loadConfigFile().

bool vpMbtXmlGenericParser::hasFarClippingDistance ( ) const
inline

Has Far clipping been specified?

Returns
True if yes, False otherwise.

Definition at line 368 of file vpMbtXmlGenericParser.h.

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

bool vpMbtXmlGenericParser::hasNearClippingDistance ( ) const
inline

Has Near clipping been specified?

Returns
True if yes, False otherwise.

Definition at line 375 of file vpMbtXmlGenericParser.h.

References vpXmlParser::readMainClass().

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

void vpXmlParser::parse ( const std::string &  filename)
inherited

parse the document. The data in the file are stored in the attributes of the child class. This method calls the readMainClass method which has to be implemented for every child class depending on the content to parse.

Parameters
filename: name of the file to parse

Definition at line 421 of file vpXmlParser.cpp.

References vpException::ioError, vpXmlParser::readMainClass(), and vpERROR_TRACE.

Referenced by vpXmlParserHomogeneousMatrix::getHomogeneousMatrixName(), vpXmlConfigParserKeyPoint::getUseRansacVVSPoseEstimation(), vpXmlParserCamera::getWidth(), vpMbDepthDenseTracker::loadConfigFile(), vpMbDepthNormalTracker::loadConfigFile(), vpMbEdgeKltTracker::loadConfigFile(), vpMbKltTracker::loadConfigFile(), vpMbEdgeTracker::loadConfigFile(), vpMbTracker::loadConfigFile(), vpXmlConfigParserKeyPoint::parse(), and vpMbGenericTracker::track().

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 322 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().

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 570 of file vpMbtXmlGenericParser.cpp.

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

Referenced by readMainClass().

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 605 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().

void vpMbtXmlGenericParser::read_depth_normal ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected
void vpMbtXmlGenericParser::read_depth_normal_PCL ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected
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 524 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().

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 651 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().

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 718 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().

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 784 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().

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 843 of file vpMbtXmlGenericParser.cpp.

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

Referenced by read_ecm().

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 883 of file vpMbtXmlGenericParser.cpp.

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

Referenced by read_ecm().

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 923 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().

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 1007 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().

void vpMbtXmlGenericParser::read_lod ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected
void vpMbtXmlGenericParser::read_projection_error ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protected
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 1231 of file vpMbtXmlGenericParser.cpp.

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

Referenced by readMainClass().

void vpMbtXmlGenericParser::readMainClass ( xmlDocPtr  doc,
xmlNodePtr  node 
)
virtual
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().

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

Set the angle to determine if a face appeared.

Parameters
aappear: New angleAppear

Definition at line 384 of file vpMbtXmlGenericParser.h.

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

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

Set the angle to determine if a face disappeared.

Parameters
adisappear: New angleDisappear

Definition at line 391 of file vpMbtXmlGenericParser.h.

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

void vpMbtXmlGenericParser::setCameraParameters ( const vpCameraParameters _cam)
inline

Set camera parameters.

Parameters
_cam: New camera parameters

Definition at line 398 of file vpMbtXmlGenericParser.h.

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

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

Set depth dense sampling step in X.

Parameters
stepX: New sampling step

Definition at line 405 of file vpMbtXmlGenericParser.h.

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

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

Set depth dense sampling step in Y.

Parameters
stepY: New sampling step

Definition at line 412 of file vpMbtXmlGenericParser.h.

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

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

Set depth normal feature estimation method.

Parameters
method: New feature estimation method

Definition at line 419 of file vpMbtXmlGenericParser.h.

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

void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationMethod ( const int  method)
inline

Set depth normal PCL plane estimation method.

Parameters
method: New PCL plane estimation method

Definition at line 429 of file vpMbtXmlGenericParser.h.

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

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 439 of file vpMbtXmlGenericParser.h.

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

void vpMbtXmlGenericParser::setDepthNormalPclPlaneEstimationRansacThreshold ( const double  threshold)
inline

Set depth normal PCL RANSAC threshold.

Parameters
threshold: New RANSAC threshold

Definition at line 449 of file vpMbtXmlGenericParser.h.

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

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

Set depth normal sampling step in X.

Parameters
stepX: New sampling step

Definition at line 459 of file vpMbtXmlGenericParser.h.

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

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

Set depth normal sampling step in Y.

Parameters
stepY: New sampling step

Definition at line 466 of file vpMbtXmlGenericParser.h.

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

void vpMbtXmlGenericParser::setEdgeMe ( const vpMe _ecm)
inline

Set moving edge parameters.

Parameters
_ecm: New moving edge parameters

Definition at line 473 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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

Set the far clipping distance.

Parameters
fclip: New farClipping

Definition at line 480 of file vpMbtXmlGenericParser.h.

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

Set the size of a block.

Parameters
bs: New blockSize

Definition at line 487 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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

Set the Harris free parameter.

Parameters
hp: New harrisParam

Definition at line 494 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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

Set the Border of the mask.

Parameters
mb= new maskBorder

Definition at line 501 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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

Set the maximum number of features for the KLT.

Parameters
mF: New maxFeatures

Definition at line 508 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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

Set the minimum distance between KLT points.

Parameters
mD: New minDist

Definition at line 515 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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

Set the number of pyramid levels

Parameters
pL: New pyramidLevels

Definition at line 522 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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

Set the quality of the KLT.

Parameters
q: New quality

Definition at line 529 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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 536 of file vpMbtXmlGenericParser.h.

Referenced by vpMbGenericTracker::track().

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().

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,
range,
step,
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.

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

Set the near clipping distance.

Parameters
nclip: New nearClipping

Definition at line 543 of file vpMbtXmlGenericParser.h.

void vpMbtXmlGenericParser::setProjectionErrorKernelSize ( const unsigned int &  size)
inline

Set kernel size used for projection error computation.

Parameters
size: Kernel size computed as kernel_size = size*2 + 1

Definition at line 557 of file vpMbtXmlGenericParser.h.

References vpXmlParser::writeMainClass().

Referenced by vpMbTracker::loadConfigFile().

void vpMbtXmlGenericParser::setProjectionErrorMe ( const vpMe me)
inline

Set ME parameters for projection error computation.

Parameters
me: ME parameters

Definition at line 550 of file vpMbtXmlGenericParser.h.

Referenced by vpMbTracker::loadConfigFile().

void vpMbtXmlGenericParser::writeMainClass ( xmlNodePtr  node)
virtual

Write info to file.

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

Implements vpXmlParser.

Definition at line 152 of file vpMbtXmlGenericParser.cpp.

References vpException::notImplementedError.

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.

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 read_projection_error(), vpXmlParserHomogeneousMatrix::save(), and vpXmlParserCamera::save().

double vpXmlParser::xmlReadDoubleChild ( xmlDocPtr  doc,
xmlNodePtr  node 
)
protectedinherited
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.

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(), read_projection_error(), vpMbtXmlParser::read_sample(), vpMbtXmlParser::read_sample_deprecated(), and read_sample_deprecated().

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().

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().

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.

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.

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.

Referenced by vpXmlParserRectOriented::writeMainClass().

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.

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.

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.

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

double vpMbtXmlGenericParser::m_angleAppear
protected

Angle to determine if a face appeared.

Definition at line 84 of file vpMbtXmlGenericParser.h.

Referenced by read_face(), and readMainClass().

double vpMbtXmlGenericParser::m_angleDisappear
protected

Angle to determine if a face disappeared.

Definition at line 86 of file vpMbtXmlGenericParser.h.

Referenced by read_face(), and readMainClass().

vpCameraParameters vpMbtXmlGenericParser::m_cam
protected

Camera parameters.

Definition at line 82 of file vpMbtXmlGenericParser.h.

Referenced by read_camera(), and readMainClass().

unsigned int vpMbtXmlGenericParser::m_depthDenseSamplingStepX
protected

Sampling step in X.

Definition at line 139 of file vpMbtXmlGenericParser.h.

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

unsigned int vpMbtXmlGenericParser::m_depthDenseSamplingStepY
protected

Sampling step in Y.

Definition at line 141 of file vpMbtXmlGenericParser.h.

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

vpMbtFaceDepthNormal::vpFeatureEstimationType vpMbtXmlGenericParser::m_depthNormalFeatureEstimationMethod
protected

Feature estimation method.

Definition at line 126 of file vpMbtXmlGenericParser.h.

Referenced by read_depth_normal(), and readMainClass().

int vpMbtXmlGenericParser::m_depthNormalPclPlaneEstimationMethod
protected

PCL plane estimation method.

Definition at line 128 of file vpMbtXmlGenericParser.h.

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

int vpMbtXmlGenericParser::m_depthNormalPclPlaneEstimationRansacMaxIter
protected

PCL RANSAC maximum number of iterations.

Definition at line 130 of file vpMbtXmlGenericParser.h.

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

double vpMbtXmlGenericParser::m_depthNormalPclPlaneEstimationRansacThreshold
protected

PCL RANSAC threshold.

Definition at line 132 of file vpMbtXmlGenericParser.h.

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

unsigned int vpMbtXmlGenericParser::m_depthNormalSamplingStepX
protected

Sampling step in X.

Definition at line 134 of file vpMbtXmlGenericParser.h.

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

unsigned int vpMbtXmlGenericParser::m_depthNormalSamplingStepY
protected

Sampling step in Y.

Definition at line 136 of file vpMbtXmlGenericParser.h.

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

vpMe vpMbtXmlGenericParser::m_ecm
protected
double vpMbtXmlGenericParser::m_farClipping
protected

Near clipping distance.

Definition at line 94 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

bool vpMbtXmlGenericParser::m_fovClipping
protected

Fov Clipping.

Definition at line 96 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

bool vpMbtXmlGenericParser::m_hasFarClipping
protected

Is far clipping distance specified?

Definition at line 92 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

bool vpMbtXmlGenericParser::m_hasNearClipping
protected

Is near clipping distance specified?

Definition at line 88 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

unsigned int vpMbtXmlGenericParser::m_kltBlockSize
protected

Block size.

Definition at line 121 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

double vpMbtXmlGenericParser::m_kltHarrisParam
protected

Harris free parameters.

Definition at line 119 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

unsigned int vpMbtXmlGenericParser::m_kltMaskBorder
protected

Border of the mask used on Klt points.

Definition at line 109 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

unsigned int vpMbtXmlGenericParser::m_kltMaxFeatures
protected

Maximum of Klt features.

Definition at line 111 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

double vpMbtXmlGenericParser::m_kltMinDist
protected

Minimum distance between klt points.

Definition at line 117 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

unsigned int vpMbtXmlGenericParser::m_kltPyramidLevels
protected

Number of pyramid levels.

Definition at line 123 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

double vpMbtXmlGenericParser::m_kltQualityValue
protected

Quality of the Klt points.

Definition at line 115 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

unsigned int vpMbtXmlGenericParser::m_kltWinSize
protected

Windows size.

Definition at line 113 of file vpMbtXmlGenericParser.h.

Referenced by read_klt(), and readMainClass().

double vpMbtXmlGenericParser::m_minLineLengthThreshold
protected

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

Definition at line 101 of file vpMbtXmlGenericParser.h.

Referenced by read_lod(), and readMainClass().

double vpMbtXmlGenericParser::m_minPolygonAreaThreshold
protected

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

Definition at line 103 of file vpMbtXmlGenericParser.h.

Referenced by read_lod(), and readMainClass().

double vpMbtXmlGenericParser::m_nearClipping
protected

Near clipping distance.

Definition at line 90 of file vpMbtXmlGenericParser.h.

Referenced by read_face().

vpParserType vpMbtXmlGenericParser::m_parserType
protected

Parser type.

Definition at line 80 of file vpMbtXmlGenericParser.h.

Referenced by readMainClass().

unsigned int vpMbtXmlGenericParser::m_projectionErrorKernelSize
protected

Kernel size (actual_kernel_size = size*2 + 1) used for projection error computation.

Definition at line 146 of file vpMbtXmlGenericParser.h.

Referenced by read_projection_error(), and readMainClass().

vpMe vpMbtXmlGenericParser::m_projectionErrorMe
protected

ME parameters for projection error computation.

Definition at line 144 of file vpMbtXmlGenericParser.h.

Referenced by read_projection_error(), and readMainClass().

bool vpMbtXmlGenericParser::m_useLod
protected

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

Definition at line 99 of file vpMbtXmlGenericParser.h.

Referenced by read_lod(), and readMainClass().

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().