Calibration Library 1.0.0
A C++ library for camera calibration and vision-related geometric transformations
Loading...
Searching...
No Matches
dataset.h
Go to the documentation of this file.
1#pragma once
2
3// std
4#include <set>
5#include <string>
6#include <vector>
7
9
10namespace calib::pipeline {
11
13using calib::to_json;
14
15struct PlanarTargetPoint final {
16 double x = 0.0;
17 double y = 0.0;
18 int id = -1;
19 double local_x = 0.0;
20 double local_y = 0.0;
21 double local_z = 0.0;
22};
23
25 std::string file;
26 std::vector<PlanarTargetPoint> points;
27};
28
29struct PlanarDetections final {
30 std::string image_directory;
31 std::string feature_type;
32 std::string algo_version;
33 std::string params_hash;
34 std::string sensor_id;
35 std::set<std::string> tags;
36 nlohmann::json metadata = nlohmann::json::object();
37 std::filesystem::path source_file;
38 std::vector<PlanarImageDetections> images;
39};
40
44struct CalibrationDataset final {
46 nlohmann::json metadata;
47 std::vector<PlanarDetections> planar_cameras;
48 nlohmann::json raw_json;
49};
50
55
56} // namespace calib::pipeline
void from_json(const nlohmann::json &j, T &value)
Definition json.h:89
void to_json(nlohmann::json &j, const T &value)
Definition json.h:49
Aggregated dataset consumed by the calibration pipeline.
Definition dataset.h:44
nlohmann::json raw_json
Original dataset payloads keyed by source path.
Definition dataset.h:48
std::vector< PlanarDetections > planar_cameras
Definition dataset.h:47
std::vector< PlanarImageDetections > images
Definition dataset.h:38
std::set< std::string > tags
Definition dataset.h:35
std::filesystem::path source_file
Definition dataset.h:37
std::vector< PlanarTargetPoint > points
Definition dataset.h:26