IDS peak ICV
v1.1.0
Loading...
Searching...
No Matches
peak_icv_calibration_result_writer.hpp
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <
peak_icv/algorithms/calibration/peak_icv_calibration_result.hpp
>
14
15
#include <string>
16
17
namespace
peak
18
{
19
namespace
icv
20
{
21
28
class
CalibrationResultWriter
29
{
30
public
:
41
void
Write
(
const
std::string& filePath,
const
CalibrationResult
& calibrationResult)
const
;
42
};
43
44
inline
void
CalibrationResultWriter::Write
(
const
std::string& filePath,
const
CalibrationResult
& calibrationResult)
const
45
{
46
auto
* handle = peak::common::detail::BackendAccessor<CalibrationResult>::BackendHandle(calibrationResult);
47
detail::ExecuteAndMapReturnCodes
([&] {
48
return
PEAK_ICV_C_ABI_PREFIX peak_icv_Calibration_Result_SaveToFile(handle, filePath.c_str(), {});
49
});
50
}
51
}
/* namespace icv */
52
}
/* namespace peak */
peak::icv::CalibrationResult
Holds the results of a camera calibration.
Definition
peak_icv_calibration_result.hpp:47
peak::icv::CalibrationResultWriter
Class for writing a calibration result to file.
Definition
peak_icv_calibration_result_writer.hpp:29
peak::icv::CalibrationResultWriter::Write
void Write(const std::string &filePath, const CalibrationResult &calibrationResult) const
Saves calibration result to a JSON file for later use.
Definition
peak_icv_calibration_result_writer.hpp:44
peak::icv::detail::ExecuteAndMapReturnCodes
void ExecuteAndMapReturnCodes(const CallableType &callableObject)
Definition
peak_icv_exception_helpers.hpp:56
peak
Definition
peak_common_math.hpp:20
peak_icv_calibration_result.hpp
peak_icv
io
peak_icv_calibration_result_writer.hpp
Send mail feedback
Generated on Fri Dec 12 2025 - ©
IDS Imaging Development Systems GmbH