IDS peak ICV v1.3.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
29{
30public:
41 void Write(const std::string& filePath, const CalibrationResult& calibrationResult) const;
42};
43
44inline void CalibrationResultWriter::Write(const std::string& filePath, const CalibrationResult& calibrationResult) const
45{
46 auto* handle = peak::common::detail::BackendAccessor<CalibrationResult>::BackendHandle(calibrationResult);
48 return PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Result_SaveToFile(handle, filePath.c_str(), {});
49 });
50}
51} /* namespace icv */
52} /* namespace peak */
Holds the results of a camera calibration.
Class for writing a calibration result to file.
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)