IDS peak ICV v1.0.0
Loading...
Searching...
No Matches
peak_icv_calibration_result_writer.hpp
Go to the documentation of this file.
1
11#pragma once
12
14
15#include <string>
16
17namespace peak
18{
19namespace icv
20{
21
22namespace experimental
23{
31{
32public:
43 void Write(const std::string& filePath, const CalibrationResult& calibrationResult) const;
44};
45
46inline void CalibrationResultWriter::Write(const std::string& filePath, const CalibrationResult& calibrationResult) const
47{
48 auto* handle = peak::common::detail::BackendAccessor<CalibrationResult>::BackendHandle(calibrationResult);
50 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Result_SaveToFile(handle, filePath.c_str(), {});
51 });
52}
53} /* namespace experimental */
54} /* namespace icv */
55} /* namespace peak */
Class for holding the results of a camera calibration.
void Write(const std::string &filePath, const CalibrationResult &calibrationResult) const
Saves calibration result to a JSON file for later use.
void ExecuteAndMapReturnCodes(const CallableType &callableObject)