42 #ifndef _vpMbtXmlGenericParser_h_
43 #define _vpMbtXmlGenericParser_h_
45 #include <visp3/core/vpConfig.h>
47 #if defined(VISP_HAVE_PUGIXML)
48 #include <visp3/core/vpCameraParameters.h>
49 #include <visp3/mbt/vpMbtFaceDepthNormal.h>
50 #include <visp3/me/vpMe.h>
70 DEPTH_NORMAL_PARSER = 1 << 2,
72 DEPTH_DENSE_PARSER = 1 << 3,
74 PROJECTION_ERROR_PARSER = 0
81 double getAngleAppear()
const;
82 double getAngleDisappear()
const;
86 void getEdgeMe(
vpMe &ecm)
const;
88 unsigned int getDepthDenseSamplingStepX()
const;
89 unsigned int getDepthDenseSamplingStepY()
const;
92 int getDepthNormalPclPlaneEstimationMethod()
const;
93 int getDepthNormalPclPlaneEstimationRansacMaxIter()
const;
94 double getDepthNormalPclPlaneEstimationRansacThreshold()
const;
95 unsigned int getDepthNormalSamplingStepX()
const;
96 unsigned int getDepthNormalSamplingStepY()
const;
98 double getFarClippingDistance()
const;
99 bool getFovClipping()
const;
101 unsigned int getKltBlockSize()
const;
102 double getKltHarrisParam()
const;
103 unsigned int getKltMaskBorder()
const;
104 unsigned int getKltMaxFeatures()
const;
105 double getKltMinDistance()
const;
106 unsigned int getKltPyramidLevels()
const;
107 double getKltQuality()
const;
108 unsigned int getKltWindowSize()
const;
110 bool getLodState()
const;
111 double getLodMinLineLengthThreshold()
const;
112 double getLodMinPolygonAreaThreshold()
const;
114 double getNearClippingDistance()
const;
116 void getProjectionErrorMe(
vpMe &me)
const;
118 unsigned int getProjectionErrorKernelSize()
const;
120 bool hasFarClippingDistance()
const;
121 bool hasNearClippingDistance()
const;
123 void parse(
const std::string &filename);
125 void setAngleAppear(
const double &aappear);
126 void setAngleDisappear(
const double &adisappear);
130 void setDepthDenseSamplingStepX(
unsigned int stepX);
131 void setDepthDenseSamplingStepY(
unsigned int stepY);
134 void setDepthNormalPclPlaneEstimationMethod(
int method);
135 void setDepthNormalPclPlaneEstimationRansacMaxIter(
int maxIter);
136 void setDepthNormalPclPlaneEstimationRansacThreshold(
double threshold);
137 void setDepthNormalSamplingStepX(
unsigned int stepX);
138 void setDepthNormalSamplingStepY(
unsigned int stepY);
140 void setEdgeMe(
const vpMe &ecm);
142 void setFarClippingDistance(
const double &fclip);
144 void setKltBlockSize(
const unsigned int &bs);
145 void setKltHarrisParam(
const double &hp);
146 void setKltMaskBorder(
const unsigned int &mb);
147 void setKltMaxFeatures(
const unsigned int &mF);
148 void setKltMinDistance(
const double &mD);
149 void setKltPyramidLevels(
const unsigned int &pL);
150 void setKltQuality(
const double &q);
151 void setKltWindowSize(
const unsigned int &w);
153 void setNearClippingDistance(
const double &nclip);
155 void setProjectionErrorMe(
const vpMe &me);
156 void setProjectionErrorKernelSize(
const unsigned int &size);
158 void setVerbose(
bool verbose);
Generic class defining intrinsic camera parameters.
Parse an Xml file to extract configuration parameters of a mbtConfig object.