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
75 , PROJECTION_ERROR_PARSER = 0
211 projection_error_kernel_size
252 return m_depthNormalFeatureEstimationMethod;
265 return m_depthNormalPclPlaneEstimationRansacMaxIter;
273 return m_depthNormalPclPlaneEstimationRansacThreshold;
421 m_depthNormalFeatureEstimationMethod = method;
431 m_depthNormalPclPlaneEstimationMethod = method;
441 m_depthNormalPclPlaneEstimationRansacMaxIter = maxIter;
451 m_depthNormalPclPlaneEstimationRansacThreshold = threshold;
565 void read_camera(xmlDocPtr doc, xmlNodePtr node);
566 void read_face(xmlDocPtr doc, xmlNodePtr node);
567 void read_lod(xmlDocPtr doc, xmlNodePtr node);
570 void read_ecm(xmlDocPtr doc, xmlNodePtr node);
571 void read_ecm_sample(xmlDocPtr doc, xmlNodePtr node);
572 void read_sample_deprecated(xmlDocPtr doc, xmlNodePtr node);
573 void read_ecm_mask(xmlDocPtr doc, xmlNodePtr node);
574 void read_ecm_range(xmlDocPtr doc, xmlNodePtr node);
575 void read_ecm_contrast(xmlDocPtr doc, xmlNodePtr node);
578 void read_klt(xmlDocPtr doc, xmlNodePtr node);
581 void read_depth_normal(xmlDocPtr doc, xmlNodePtr node);
582 void read_depth_normal_PCL(xmlDocPtr doc, xmlNodePtr node);
583 void read_depth_normal_sampling_step(xmlDocPtr doc, xmlNodePtr node);
586 void read_depth_dense(xmlDocPtr doc, xmlNodePtr node);
587 void read_depth_dense_sampling_step(xmlDocPtr doc, xmlNodePtr node);
590 void read_projection_error(xmlDocPtr doc, xmlNodePtr node);
unsigned int m_kltWinSize
Windows size.
unsigned int m_depthDenseSamplingStepX
Sampling step in X.
double getFarClippingDistance() const
bool m_hasNearClipping
Is near clipping distance specified?
double m_minLineLengthThreshold
Minimum line length to track a segment when LOD is enabled.
double getKltMinDistance() const
void setKltQuality(const double &q)
double getNearClippingDistance() const
void setKltPyramidLevels(const unsigned int &pL)
int m_depthNormalPclPlaneEstimationMethod
PCL plane estimation method.
void getCameraParameters(vpCameraParameters &_cam) const
double m_angleDisappear
Angle to determine if a face disappeared.
bool hasNearClippingDistance() const
unsigned int getKltBlockSize() const
double getAngleAppear() const
void setProjectionErrorKernelSize(const unsigned int &size)
virtual void writeMainClass(xmlNodePtr node)=0
bool m_useLod
If true, the LOD is enabled, otherwise it is not.
double m_nearClipping
Near clipping distance.
double getLodMinLineLengthThreshold() const
void setKltMaskBorder(const unsigned int &mb)
unsigned int m_depthDenseSamplingStepY
Sampling step in Y.
unsigned int getProjectionErrorKernelSize() 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)
bool hasFarClippingDistance() const
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)
void setProjectionErrorMe(const vpMe &me)
void getProjectionErrorMe(vpMe &me) const
bool m_fovClipping
Fov Clipping.
vpMbtFaceDepthNormal::vpFeatureEstimationType m_depthNormalFeatureEstimationMethod
Feature estimation method.
Generic class defining intrinsic camera parameters.
double getKltHarrisParam() const
double getDepthNormalPclPlaneEstimationRansacThreshold() const
vpCameraParameters m_cam
Camera parameters.
void getEdgeMe(vpMe &_ecm) const
virtual void readMainClass(xmlDocPtr doc, xmlNodePtr node)=0
void setDepthNormalPclPlaneEstimationRansacMaxIter(const int maxIter)
double getAngleDisappear() const
double m_farClipping
Near clipping distance.
unsigned int getDepthNormalSamplingStepX() const
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.
unsigned int m_projectionErrorKernelSize
Kernel size (actual_kernel_size = size*2 + 1) used for projection error computation.
void setDepthDenseSamplingStepY(const unsigned int stepY)
vpMbtFaceDepthNormal::vpFeatureEstimationType getDepthNormalFeatureEstimationMethod() const
unsigned int getKltPyramidLevels() const
unsigned int m_kltMaskBorder
Border of the mask used on Klt points.
unsigned int getKltMaskBorder() const
unsigned int getDepthDenseSamplingStepX() const
double getKltQuality() const
void setNearClippingDistance(const double &nclip)
void setFarClippingDistance(const double &fclip)
unsigned int getDepthDenseSamplingStepY() const
unsigned int m_kltPyramidLevels
Number of pyramid levels.
void setCameraParameters(const vpCameraParameters &_cam)
bool getFovClipping() const
unsigned int getDepthNormalSamplingStepY() const
unsigned int getKltMaxFeatures() const
double m_kltHarrisParam
Harris free parameters.
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)
unsigned int m_kltMaxFeatures
Maximum of Klt features.
vpMe m_projectionErrorMe
ME parameters for projection error computation.
double getLodMinPolygonAreaThreshold() const
double m_angleAppear
Angle to determine if a face appeared.
vpMe m_ecm
Moving edges parameters.
int getDepthNormalPclPlaneEstimationRansacMaxIter() const
int getDepthNormalPclPlaneEstimationMethod() const
void setDepthNormalSamplingStepY(const unsigned int stepY)
unsigned int getKltWindowSize() const
bool m_hasFarClipping
Is far clipping distance specified?