41 #ifndef VP_XML_PARSER_CAMERA_H
42 #define VP_XML_PARSER_CAMERA_H
44 #include <visp3/core/vpConfig.h>
46 #if defined(VISP_HAVE_PUGIXML)
47 #include <visp3/core/vpCameraParameters.h>
181 std::string getCameraName()
const;
183 unsigned int getHeight()
const;
184 unsigned int getSubsampling_width()
const;
185 unsigned int getSubsampling_height()
const;
186 unsigned int getWidth()
const;
188 int parse(
vpCameraParameters &cam,
const std::string &filename,
const std::string &camera_name,
190 unsigned int image_height = 0,
bool verbose =
true);
192 int save(
const vpCameraParameters &cam,
const std::string &filename,
const std::string &camera_name,
193 unsigned int image_width = 0,
unsigned int image_height = 0,
const std::string &additionalInfo =
"",
194 bool verbose =
true);
196 void setCameraName(
const std::string &name);
197 void setHeight(
unsigned int height);
198 void setSubsampling_width(
unsigned int subsampling);
199 void setSubsampling_height(
unsigned int subsampling);
200 void setWidth(
unsigned int width);
Generic class defining intrinsic camera parameters.
vpCameraParametersProjType
XML parser to load and save intrinsic camera parameters.