1 #include <visp/vpImageIo.h>
3 #include <visp/vpImageTools.h>
4 #include <visp/vpXmlParserCamera.h>
21 std::cout <<
"Cannot found parameters for camera named \"Camera\"" << std::endl;
30 std::cout << cam << std::endl;
39 std::cout <<
"Catch an exception: " << e << std::endl;
static void write(const vpImage< unsigned char > &I, const char *filename)
unsigned int getWidth() const
error that can be emited by ViSP classes.
XML parser to load and save intrinsic camera parameters.
vpCameraParametersProjType
Generic class defining intrinsic camera parameters.
Perspective projection with distortion model.
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)
static void read(vpImage< unsigned char > &I, const char *filename)
void initPersProjWithDistortion(const double px, const double py, const double u0, const double v0, const double kud, const double kdu)