1 #include <visp3/core/vpImageTools.h> 3 #include <visp3/core/vpXmlParserCamera.h> 4 #include <visp3/io/vpImageIo.h> 16 #ifdef VISP_HAVE_PUGIXML 22 std::cout <<
"Cannot found parameters for camera named \"Camera\"" << std::endl;
31 std::cout << cam << std::endl;
39 std::cout <<
"Catch an exception: " << e << std::endl;
error that can be emited by ViSP classes.
XML parser to load and save intrinsic camera parameters.
void initPersProjWithDistortion(double px, double py, double u0, double v0, double kud, double kdu)
static void write(const vpImage< unsigned char > &I, const std::string &filename)
vpCameraParametersProjType
Generic class defining intrinsic camera parameters.
int parse(vpCameraParameters &cam, const std::string &filename, const std::string &camera_name, const vpCameraParameters::vpCameraParametersProjType &projModel, unsigned int image_width=0, unsigned int image_height=0)
unsigned int getHeight() const
static void read(vpImage< unsigned char > &I, const std::string &filename)
unsigned int getWidth() const