Calibration Library 1.0.0
A C++ library for camera calibration and vision-related geometric transformations
Loading...
Searching...
No Matches
loaders.h
Go to the documentation of this file.
1#pragma once
2
3// std
4#include <filesystem>
5#include <optional>
6#include <vector>
7
9
10namespace calib::pipeline {
11
20 public:
24 struct Entry final {
25 std::filesystem::path path;
26 std::optional<std::string> sensor_id;
27 };
28
29 private:
30 std::vector<Entry> entries_;
31
32 public:
34 explicit JsonPlanarDatasetLoader(std::vector<Entry> entries) : entries_(std::move(entries)) {}
35
44 void add_entry(const std::filesystem::path& path,
45 std::optional<std::string> sensor_id = std::nullopt);
46
53 [[nodiscard]] auto load() -> CalibrationDataset override;
54};
55
56} // namespace calib::pipeline
Loader that reads planar target detections from JSON files.
Definition loaders.h:19
JsonPlanarDatasetLoader(std::vector< Entry > entries)
Definition loaders.h:34
auto load() -> CalibrationDataset override
Load and validate all configured dataset entries.
Definition loaders.cpp:56
void add_entry(const std::filesystem::path &path, std::optional< std::string > sensor_id=std::nullopt)
Append a dataset file to the loader queue.
Definition loaders.cpp:51
Aggregated dataset consumed by the calibration pipeline.
Definition dataset.h:44
Description of a JSON dataset entry on disk.
Definition loaders.h:24
std::optional< std::string > sensor_id
Definition loaders.h:26