2 #include <visp/vpImageIo.h>
3 #include <visp/vpImageTools.h>
4 #include <visp/vpXmlParserCamera.h>
17 std::cout <<
"Cannot found parameters for camera named \"Camera\"" << std::endl;
23 std::cout << cam << std::endl;
static void write(const vpImage< unsigned char > &I, const char *filename)
unsigned int getWidth() const
XML parser to load and save intrinsic camera parameters.
vpCameraParametersProjType
Generic class defining intrinsic camera parameters.
Perspective projection with distortion model.
int parse(vpCameraParameters &cam, const char *filename, const std::string &camera_name, const vpCameraParameters::vpCameraParametersProjType &projModel, const unsigned int image_width=0, const unsigned int image_height=0)
unsigned int getHeight() const
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)