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
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
22
namespace
experimental
23
{
30
class
CalibrationResultWriter
31
{
32
public
:
43
void
Write
(
const
std::string& filePath,
const
CalibrationResult
& calibrationResult)
const
;
44
};
45
46
inline
void
CalibrationResultWriter::Write
(
const
std::string& filePath,
const
CalibrationResult
& calibrationResult)
const
47
{
48
auto
* handle = peak::common::detail::BackendAccessor<CalibrationResult>::BackendHandle(calibrationResult);
49
detail::ExecuteAndMapReturnCodes
([&] {
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 */
peak::icv::experimental::CalibrationResult
Class for holding the results of a camera calibration.
Definition
peak_icv_calibration_result.hpp:40
peak::icv::experimental::CalibrationResultWriter
Class for writing a calibration result to file.
Definition
peak_icv_calibration_result_writer.hpp:31
peak::icv::experimental::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:46
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 Sep 5 2025 - ©
IDS Imaging Development Systems GmbH