#include <visp3/core/vpIoTools.h>
#include <visp3/mbt/vpMbtXmlGenericParser.h>
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
#if defined(VISP_HAVE_PUGIXML) && (defined(VISP_HAVE_LAPACK) || defined(VISP_HAVE_EIGEN3) || defined(VISP_HAVE_OPENCV))
double eps = std::numeric_limits<double>::epsilon();
{
std::string filename = visp_images_dir + "/xml/chateau.xml";
std::cout << "Parse config: " << filename << std::endl;
}
else {
}
std::cerr << "Issue when parsing xml: " << filename << " (ME)" << std::endl;
return EXIT_FAILURE;
}
std::cerr << "Issue when parsing xml: " << filename << " (KLT)" << std::endl;
return EXIT_FAILURE;
}
if (cam != cam_ref) {
std::cerr << "Issue when parsing xml: " << filename << " (cam)" << std::endl;
return EXIT_FAILURE;
}
std::cerr << "Issue when parsing xml: " << filename << " (visibility)" << std::endl;
return EXIT_FAILURE;
}
}
{
std::string filename = visp_images_dir + "/xml/chateau.xml";
std::cout << "Parse config: " << filename << std::endl;
std::cerr << "Issue when parsing xml: " << filename << " (projection error)" << std::endl;
return EXIT_FAILURE;
}
}
{
std::string filename = visp_images_dir + "/xml/chateau_depth.xml";
std::cout << "Parse config: " << filename << std::endl;
std::cerr << "Issue when parsing xml: " << filename << " (depth normal)" << std::endl;
return EXIT_FAILURE;
}
std::cerr << "Issue when parsing xml: " << filename << " (depth dense)" << std::endl;
return EXIT_FAILURE;
}
if (cam != cam_ref) {
std::cerr << "Issue when parsing xml: " << filename << " (cam)" << std::endl;
return EXIT_FAILURE;
}
std::cerr << "Issue when parsing xml: " << filename << " (visibility)" << std::endl;
return EXIT_FAILURE;
}
}
}
#elif !(defined(VISP_HAVE_LAPACK) || defined(VISP_HAVE_EIGEN3) || defined(VISP_HAVE_OPENCV))
std::cout << "Cannot run this example: install Lapack, Eigen3 or OpenCV" << std::endl;
#elif !(defined(VISP_HAVE_PUGIXML))
std::cout << "Cannot run this example: enable pugixml built-in" << std::endl;
#endif
std::cout << "Test succeed" << std::endl;
return EXIT_SUCCESS;
}
Generic class defining intrinsic camera parameters.
void initPersProjWithoutDistortion(double px, double py, double u0, double v0)
static bool equal(double x, double y, double threshold=0.001)
Parse an Xml file to extract configuration parameters of a mbtConfig object.
int getDepthNormalPclPlaneEstimationRansacMaxIter() const
unsigned int getKltMaxFeatures() const
unsigned int getDepthNormalSamplingStepX() const
unsigned int getProjectionErrorKernelSize() const
unsigned int getKltBlockSize() const
void getCameraParameters(vpCameraParameters &cam) const
double getAngleAppear() const
unsigned int getDepthNormalSamplingStepY() const
vpMbtFaceDepthNormal::vpFeatureEstimationType getDepthNormalFeatureEstimationMethod() const
void getEdgeMe(vpMe &ecm) const
unsigned int getKltMaskBorder() const
double getKltQuality() const
double getAngleDisappear() const
double getKltMinDistance() const
int getDepthNormalPclPlaneEstimationMethod() const
@ PROJECTION_ERROR_PARSER
unsigned int getDepthDenseSamplingStepY() const
double getDepthNormalPclPlaneEstimationRansacThreshold() const
void parse(const std::string &filename)
double getNearClippingDistance() const
void getProjectionErrorMe(vpMe &me) const
unsigned int getKltPyramidLevels() const
double getKltHarrisParam() const
unsigned int getKltWindowSize() const
unsigned int getDepthDenseSamplingStepX() const
double getFarClippingDistance() const
bool getFovClipping() const
void setMu1(const double &mu_1)
vpLikelihoodThresholdType getLikelihoodThresholdType() const
void setRange(const unsigned int &range)
void setLikelihoodThresholdType(const vpLikelihoodThresholdType likelihood_threshold_type)
void setMaskNumber(const unsigned int &mask_number)
void setThreshold(const double &threshold)
unsigned int getMaskNumber() const
void setSampleStep(const double &sample_step)
double getThreshold() const
unsigned int getMaskSize() const
void setMaskSize(const unsigned int &mask_size)
void setMu2(const double &mu_2)
double getSampleStep() const
unsigned int getRange() const
@ OLD_THRESHOLD
Old likelihood ratio threshold (to be avoided).