42 #ifndef __vpMbtXmlGenericParser_h_ 43 #define __vpMbtXmlGenericParser_h_ 45 #include <visp3/core/vpConfig.h> 49 #include <libxml/xmlmemory.h> 51 #include <visp3/core/vpCameraParameters.h> 52 #include <visp3/core/vpXmlParser.h> 53 #include <visp3/mbt/vpMbtFaceDepthNormal.h> 54 #include <visp3/me/vpMe.h> 71 DEPTH_NORMAL_PARSER = 1 << 2,
73 DEPTH_DENSE_PARSER = 1 << 3
201 depth_dense_sampling_step_Y
242 return m_depthNormalFeatureEstimationMethod;
255 return m_depthNormalPclPlaneEstimationRansacMaxIter;
263 return m_depthNormalPclPlaneEstimationRansacThreshold;
360 void parse(
const std::string &filename);
406 m_depthNormalFeatureEstimationMethod = method;
416 m_depthNormalPclPlaneEstimationMethod = method;
426 m_depthNormalPclPlaneEstimationRansacMaxIter = maxIter;
436 m_depthNormalPclPlaneEstimationRansacThreshold = threshold;
536 void read_camera(xmlDocPtr doc, xmlNodePtr node);
537 void read_face(xmlDocPtr doc, xmlNodePtr node);
538 void read_lod(xmlDocPtr doc, xmlNodePtr node);
541 void read_ecm(xmlDocPtr doc, xmlNodePtr node);
542 void read_ecm_sample(xmlDocPtr doc, xmlNodePtr node);
543 void read_sample_deprecated(xmlDocPtr doc, xmlNodePtr node);
544 void read_ecm_mask(xmlDocPtr doc, xmlNodePtr node);
545 void read_ecm_range(xmlDocPtr doc, xmlNodePtr node);
546 void read_ecm_contrast(xmlDocPtr doc, xmlNodePtr node);
549 void read_klt(xmlDocPtr doc, xmlNodePtr node);
552 void read_depth_normal(xmlDocPtr doc, xmlNodePtr node);
553 void read_depth_normal_PCL(xmlDocPtr doc, xmlNodePtr node);
554 void read_depth_normal_sampling_step(xmlDocPtr doc, xmlNodePtr node);
557 void read_depth_dense(xmlDocPtr doc, xmlNodePtr node);
558 void read_depth_dense_sampling_step(xmlDocPtr doc, xmlNodePtr node);
unsigned int getDepthNormalSamplingStepY() const
unsigned int m_kltWinSize
Windows size.
unsigned int m_depthDenseSamplingStepX
Sampling step in X.
bool m_hasNearClipping
Is near clipping distance specified?
double m_minLineLengthThreshold
Minimum line length to track a segment when LOD is enabled.
bool hasFarClippingDistance() const
int getDepthNormalPclPlaneEstimationMethod() const
void setKltQuality(const double &q)
void setKltPyramidLevels(const unsigned int &pL)
int m_depthNormalPclPlaneEstimationMethod
PCL plane estimation method.
double m_angleDisappear
Angle to determine if a face disappeared.
double getFarClippingDistance() const
double getDepthNormalPclPlaneEstimationRansacThreshold() const
virtual void writeMainClass(xmlNodePtr node)=0
bool m_useLod
If true, the LOD is enabled, otherwise it is not.
void getCameraParameters(vpCameraParameters &_cam) const
double m_nearClipping
Near clipping distance.
unsigned int getKltBlockSize() const
void setKltMaskBorder(const unsigned int &mb)
double getNearClippingDistance() const
unsigned int m_depthDenseSamplingStepY
Sampling step in Y.
unsigned int getDepthDenseSamplingStepY() const
double getAngleAppear() const
unsigned int m_kltBlockSize
Block size.
int m_depthNormalPclPlaneEstimationRansacMaxIter
PCL RANSAC maximum number of iterations.
This class intends to simplify the creation of xml parser based on the libxml2 third party library...
double m_kltMinDist
Minimum distance between klt points.
void setDepthNormalSamplingStepX(const unsigned int stepX)
Parse an Xml file to extract configuration parameters of a mbtConfig object.Data parser for the model...
unsigned int m_depthNormalSamplingStepX
Sampling step in X.
void setKltHarrisParam(const double &hp)
void setDepthDenseSamplingStepX(const unsigned int stepX)
unsigned int m_depthNormalSamplingStepY
Sampling step in Y.
void setAngleDisappear(const double &adisappear)
void setEdgeMe(const vpMe &_ecm)
double m_kltQualityValue
Quality of the Klt points.
void setKltMinDistance(const double &mD)
bool m_fovClipping
Fov Clipping.
vpMbtFaceDepthNormal::vpFeatureEstimationType m_depthNormalFeatureEstimationMethod
Feature estimation method.
double getAngleDisappear() const
bool getFovClipping() const
Generic class defining intrinsic camera parameters.
unsigned int getKltWindowSize() const
unsigned int getKltMaxFeatures() const
vpCameraParameters m_cam
Camera parameters.
double getKltMinDistance() const
virtual void readMainClass(xmlDocPtr doc, xmlNodePtr node)=0
unsigned int getDepthNormalSamplingStepX() const
void setDepthNormalPclPlaneEstimationRansacMaxIter(const int maxIter)
double m_farClipping
Near clipping distance.
void setKltWindowSize(const unsigned int &w)
double m_minPolygonAreaThreshold
Minimum polygon area to track a face when LOD is enabled.
void setAngleAppear(const double &aappear)
double m_depthNormalPclPlaneEstimationRansacThreshold
PCL RANSAC threshold.
vpParserType m_parserType
Parser type.
void setDepthDenseSamplingStepY(const unsigned int stepY)
unsigned int m_kltMaskBorder
Border of the mask used on Klt points.
bool hasNearClippingDistance() const
double getLodMinLineLengthThreshold() const
void setNearClippingDistance(const double &nclip)
unsigned int getDepthDenseSamplingStepX() const
void setFarClippingDistance(const double &fclip)
int getDepthNormalPclPlaneEstimationRansacMaxIter() const
unsigned int m_kltPyramidLevels
Number of pyramid levels.
unsigned int getKltMaskBorder() const
void setCameraParameters(const vpCameraParameters &_cam)
double getKltQuality() const
double m_kltHarrisParam
Harris free parameters.
void getEdgeMe(vpMe &_ecm) const
void setDepthNormalFeatureEstimationMethod(const vpMbtFaceDepthNormal::vpFeatureEstimationType &method)
void setDepthNormalPclPlaneEstimationMethod(const int method)
void setKltBlockSize(const unsigned int &bs)
void setDepthNormalPclPlaneEstimationRansacThreshold(const double threshold)
void setKltMaxFeatures(const unsigned int &mF)
double getKltHarrisParam() const
unsigned int m_kltMaxFeatures
Maximum of Klt features.
double m_angleAppear
Angle to determine if a face appeared.
vpMe m_ecm
Moving edges parameters.
void setDepthNormalSamplingStepY(const unsigned int stepY)
vpMbtFaceDepthNormal::vpFeatureEstimationType getDepthNormalFeatureEstimationMethod() const
bool m_hasFarClipping
Is far clipping distance specified?
double getLodMinPolygonAreaThreshold() const
unsigned int getKltPyramidLevels() const
void parse(const std::string &filename)