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 Vector3d principal
Principal x, y, z.
Vector3d distortion
Distortion.
static bool decode(const Node &node, lvr2::HyperspectralCamera &camera)
void convert(COORD_SYSTEM from, COORD_SYSTEM to, float *point)
Extrinsicsd extrinsicsEstimate
Extrinsics estimate.
double offsetAngle
Offset angle.
static constexpr char sensorType[]
Sensor type flag.
static Node encode(const lvr2::HyperspectralCamera &camera)
Extrinsicsd extrinsics
Camera model.
double focalLength
Focal length.
Extrinsics< double > Extrinsicsd
4x4 extrinsic calibration (double precision)