Go to the documentation of this file.
2 #ifndef LVR2_IO_YAML_HYPERSPECTRALCAMERAMETA_IO_HPP
3 #define LVR2_IO_YAML_HYPERSPECTRALCAMERAMETA_IO_HPP
8 #include <yaml-cpp/yaml.h>
39 node[
"principal"] = Load(
"[]");
40 node[
"principal"].push_back(camera.
principal[0]);
41 node[
"principal"].push_back(camera.
principal[1]);
42 node[
"principal"].push_back(camera.
principal[2]);
44 node[
"distortion"] = Load(
"[]");
45 node[
"distortion"].push_back(camera.
principal[0]);
46 node[
"distortion"].push_back(camera.
principal[1]);
47 node[
"distortion"].push_back(camera.
principal[2]);
60 camera.
focalLength = node[
"focalLength"].as<
double>();
61 camera.
offsetAngle = node[
"offsetAngle"].as<
double>();
65 camera.
principal[0] = node[
"principal"][0].as<
double>();
66 camera.
principal[1] = node[
"principal"][1].as<
double>();
67 camera.
principal[2] = node[
"principal"][1].as<
double>();
69 camera.
distortion[0] = node[
"distortion"][0].as<
double>();
70 camera.
distortion[1] = node[
"distortion"][1].as<
double>();
71 camera.
distortion[2] = node[
"distortion"][1].as<
double>();
79 #endif // LVR2_IO_YAML_HYPERSPECTRALCAMERAMETA_IO_HPP
static Node encode(const lvr2::HyperspectralCamera &camera)
static constexpr char sensorType[]
Sensor type flag.
Extrinsicsd extrinsics
Camera model.
double focalLength
Focal length.
Extrinsics< double > Extrinsicsd
4x4 extrinsic calibration (double precision)
Vector3d principal
Principal x, y, z.
void convert(COORD_SYSTEM from, COORD_SYSTEM to, float *point)
static bool decode(const Node &node, lvr2::HyperspectralCamera &camera)
Vector3d distortion
Distortion.
Extrinsicsd extrinsicsEstimate
Extrinsics estimate.
double offsetAngle
Offset angle.
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:23