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