1 #include <visp3/core/vpImageTools.h> 3 #include <visp3/core/vpXmlParserCamera.h> 4 #include <visp3/io/vpImageIo.h> 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;
unsigned int getWidth() const
error that can be emited by ViSP classes.
XML parser to load and save intrinsic camera parameters.
static void write(const vpImage< unsigned char > &I, const std::string &filename)
vpCameraParametersProjType
Generic class defining intrinsic camera parameters.
static void read(vpImage< unsigned char > &I, const std::string &filename)
unsigned int getHeight() const
int parse(vpCameraParameters &cam, const std::string &filename, const std::string &camera_name, const vpCameraParameters::vpCameraParametersProjType &projModel, const unsigned int image_width=0, const unsigned int image_height=0)
void initPersProjWithDistortion(const double px, const double py, const double u0, const double v0, const double kud, const double kdu)