42 #ifndef _vpMbtXmlGenericParser_h_ 43 #define _vpMbtXmlGenericParser_h_ 45 #include <visp3/core/vpConfig.h> 47 #include <visp3/core/vpCameraParameters.h> 48 #include <visp3/mbt/vpMbtFaceDepthNormal.h> 49 #include <visp3/me/vpMe.h> 67 DEPTH_NORMAL_PARSER = 1 << 2,
69 DEPTH_DENSE_PARSER = 1 << 3,
71 PROJECTION_ERROR_PARSER = 0
78 double getAngleAppear()
const;
79 double getAngleDisappear()
const;
83 void getEdgeMe(
vpMe &ecm)
const;
85 unsigned int getDepthDenseSamplingStepX()
const;
86 unsigned int getDepthDenseSamplingStepY()
const;
89 int getDepthNormalPclPlaneEstimationMethod()
const;
90 int getDepthNormalPclPlaneEstimationRansacMaxIter()
const;
91 double getDepthNormalPclPlaneEstimationRansacThreshold()
const;
92 unsigned int getDepthNormalSamplingStepX()
const;
93 unsigned int getDepthNormalSamplingStepY()
const;
95 double getFarClippingDistance()
const;
96 bool getFovClipping()
const;
98 unsigned int getKltBlockSize()
const;
99 double getKltHarrisParam()
const;
100 unsigned int getKltMaskBorder()
const;
101 unsigned int getKltMaxFeatures()
const;
102 double getKltMinDistance()
const;
103 unsigned int getKltPyramidLevels()
const;
104 double getKltQuality()
const;
105 unsigned int getKltWindowSize()
const;
107 bool getLodState()
const;
108 double getLodMinLineLengthThreshold()
const;
109 double getLodMinPolygonAreaThreshold()
const;
111 double getNearClippingDistance()
const;
113 void getProjectionErrorMe(
vpMe &me)
const;
115 unsigned int getProjectionErrorKernelSize()
const;
117 bool hasFarClippingDistance()
const;
118 bool hasNearClippingDistance()
const;
120 void parse(
const std::string &filename);
122 void setAngleAppear(
const double &aappear);
123 void setAngleDisappear(
const double &adisappear);
127 void setDepthDenseSamplingStepX(
unsigned int stepX);
128 void setDepthDenseSamplingStepY(
unsigned int stepY);
131 void setDepthNormalPclPlaneEstimationMethod(
int method);
132 void setDepthNormalPclPlaneEstimationRansacMaxIter(
int maxIter);
133 void setDepthNormalPclPlaneEstimationRansacThreshold(
double threshold);
134 void setDepthNormalSamplingStepX(
unsigned int stepX);
135 void setDepthNormalSamplingStepY(
unsigned int stepY);
137 void setEdgeMe(
const vpMe &ecm);
139 void setFarClippingDistance(
const double &fclip);
141 void setKltBlockSize(
const unsigned int &bs);
142 void setKltHarrisParam(
const double &hp);
143 void setKltMaskBorder(
const unsigned int &mb);
144 void setKltMaxFeatures(
const unsigned int &mF);
145 void setKltMinDistance(
const double &mD);
146 void setKltPyramidLevels(
const unsigned int &pL);
147 void setKltQuality(
const double &q);
148 void setKltWindowSize(
const unsigned int &w);
150 void setNearClippingDistance(
const double &nclip);
152 void setProjectionErrorMe(
const vpMe &me);
153 void setProjectionErrorKernelSize(
const unsigned int &size);
155 void setVerbose(
bool verbose);
Parse an Xml file to extract configuration parameters of a mbtConfig object.Data parser for the model...
Generic class defining intrinsic camera parameters.