![]() |
IDS peak ICV v1.0.0
|
#include <peak_icv/algorithms/calibration/peak_icv_calibration_result.hpp>


Public Member Functions | |
| CalibrationResult (const std::string &filePath) | |
| Creates an instance of class CalibrationResult by loading it from file. | |
| ~CalibrationResult () override | |
| CalibrationResult (const CalibrationResult &other) | |
| CalibrationResult (CalibrationResult &&other) noexcept | |
| CalibrationResult & | operator= (const CalibrationResult &other) |
| CalibrationResult & | operator= (CalibrationResult &&other) noexcept |
| double | GetMeanReprojectionError () const |
| Retrieves the mean reprojection error from calibration result. | |
| std::vector< CalibrationView > | GetViews () const |
Provides a vector of CalibrationView. | |
| CalibrationParameters | GetCalibrationParameters () const |
| Extract the calibration parameters from a calibration result. The calibration parameters contain only the necessary information to use the camera calibration. | |
| operator CalibrationParameters () const | |
| Implicitly converts a calibration result into calibration parameters by extracting the calibration parameters from it. The calibration parameters contain only the necessary information to use the camera calibration. | |
Class for holding the results of a camera calibration.
The CalibrationResult stores intrinsic and extrinsic parameters as well as the mean reprojection error calculated by CameraCalibration.Process().
Definition at line 37 of file peak_icv_calibration_result.hpp.
|
inlineexplicit |
Creates an instance of class CalibrationResult by loading it from file.
| [in] | filePath | An existing file path to a calibration result JSON file. |
| IOException | If the given file_path does not exist, or the permissions are not sufficient to read it. |
| CorruptedException | If the file cannot be read. |
Definition at line 234 of file peak_icv_calibration_result.hpp.
|
inlineoverride |
Definition at line 226 of file peak_icv_calibration_result.hpp.
|
inline |
Definition at line 174 of file peak_icv_calibration_result.hpp.
|
inlinenoexcept |
Definition at line 182 of file peak_icv_calibration_result.hpp.
|
inline |
Extract the calibration parameters from a calibration result. The calibration parameters contain only the necessary information to use the camera calibration.
This function extracts the calibration parameters of the camera calibration. These parameters are essential for image operations like point cloud generation, image undistortion, and other calibration-dependent operations. Calibration parameters contain only intrinsic parameters and extrinsic parameters. The intrinsic parameters are always extracted from the calibration result. If the calibration result contains a single calibration view the extrinsic parameters are extracted from this view. If there are multiple calibration views e.g. as a result of a camera calibration, the extrinsic parameters are set to the identity matrix. In case you do not want to use the identity matrix but a specific calibration view from the calibration result as source for the extrinsic parameters the parameters of the view can be extracted using CalibrationResult::GetViews(), and integrated again via the struct.
Definition at line 272 of file peak_icv_calibration_result.hpp.
|
inline |
Retrieves the mean reprojection error from calibration result.
The mean reprojection error is the root mean square of distances between the marker points extracted from the calibration images and the projected world points.
Definition at line 241 of file peak_icv_calibration_result.hpp.
|
inline |
Provides a vector of CalibrationView.
The order in which the CalibrationViews are provided, is equivalent to the order of images provided to peak::icv::experimental::CameraCalibration::Process.
Definition at line 252 of file peak_icv_calibration_result.hpp.
|
inline |
Implicitly converts a calibration result into calibration parameters by extracting the calibration parameters from it. The calibration parameters contain only the necessary information to use the camera calibration.
This function extracts the calibration parameters of the camera calibration. These parameters are essential for image operations like point cloud generation, image undistortion, and other calibration-dependent operations. Calibration parameters contain only intrinsic parameters and extrinsic parameters. The intrinsic parameters are always extracted from the calibration result. If the calibration result contains a single calibration view the extrinsic parameters are extracted from this view. If there are multiple calibrations views e.g. as a result of a camera calibration, the extrinsic parameters are set to the identity matrix.
Definition at line 283 of file peak_icv_calibration_result.hpp.
|
inlinenoexcept |
Definition at line 208 of file peak_icv_calibration_result.hpp.
|
inline |
Definition at line 188 of file peak_icv_calibration_result.hpp.