41 #ifndef vpXMLPARSERCAMERA_H
42 #define vpXMLPARSERCAMERA_H
44 #include <visp3/core/vpConfig.h>
46 #if defined(VISP_HAVE_PUGIXML)
47 #include <visp3/core/vpCameraParameters.h>
172 std::string getCameraName()
const;
174 unsigned int getHeight()
const;
175 unsigned int getSubsampling_width()
const;
176 unsigned int getSubsampling_height()
const;
177 unsigned int getWidth()
const;
179 int parse(
vpCameraParameters &cam,
const std::string &filename,
const std::string &camera_name,
181 unsigned int image_height = 0,
bool verbose =
true);
183 int save(
const vpCameraParameters &cam,
const std::string &filename,
const std::string &camera_name,
184 unsigned int image_width = 0,
unsigned int image_height = 0,
const std::string &additionalInfo =
"",
185 bool verbose =
true);
187 void setCameraName(
const std::string &name);
188 void setHeight(
unsigned int height);
189 void setSubsampling_width(
unsigned int subsampling);
190 void setSubsampling_height(
unsigned int subsampling);
191 void setWidth(
unsigned int width);
Generic class defining intrinsic camera parameters.
vpCameraParametersProjType
XML parser to load and save intrinsic camera parameters.