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


Public Member Functions | |
| Undistortion (const IntrinsicParameters &intrinsicParameters) | |
Creates an instance of class undistortion based on the given intrinsicParameters. | |
| Undistortion (const IntrinsicParameters &intrinsicParameters, const peak::common::Metadata &metadata) | |
Creates an instance of class undistortion based on the given intrinsicParameters and metadata. | |
| Undistortion (const CalibrationParameters &calibrationParameters) | |
Creates an instance of class undistortion based on the given calibrationParameters. | |
| Undistortion (const CalibrationParameters &calibrationParameters, const peak::common::Metadata &metadata) | |
Creates an instance of class undistortion based on the given calibrationParameters and metadata. | |
| Undistortion (const CalibrationResult &calibrationResult) | |
Creates an instance of class undistortion based on the given calibrationResult. | |
| Undistortion (const CalibrationResult &calibrationResult, const peak::common::Metadata &metadata) | |
Creates an instance of class undistortion based on the given calibrationResult and metadata. | |
| Undistortion (const Undistortion &other) | |
| Undistortion (Undistortion &&other) noexcept | |
| ~Undistortion () override | |
| Undistortion & | operator= (const Undistortion &other) |
| Undistortion & | operator= (Undistortion &&other) noexcept |
| UndistortedImage | Process (const Image &image) const |
Applies the undistortion on the given image and returns the undistorted image. | |
| Interpolation | GetInterpolation () const |
| Provides the current interpolation algorithm used by the undistortion. | |
| void | SetInterpolation (Interpolation interpolation) |
| Sets the interpolation method for the undistortion transformation. | |
Class for undistorting an image.
Undistortion is applied to correct image distortion using the camera's intrinsic calibration parameters. The IntrinsicParameters can be calculated using the CameraCalibration::Process.
Definition at line 43 of file peak_icv_undistortion.hpp.
|
inlineexplicit |
Creates an instance of class undistortion based on the given intrinsicParameters.
This constructor can also be used if you need to perform an undistortion on images with metadata which differs from the metadata of the images that were used to create the intrinsicParameters via CameraCalibration::Process concerning the binning factors. In this case, the first call of the function Undistortion::Process may take longer than subsequent calls, because some internal parameters have to be reinitialized.
To avoid this initial delay, you can instead use the constructor Undistortion(const IntrinsicParameters& intrinsicParameters, const peak::common::Metadata& metadata) to create the undistortion with both the intrinsic parameters and the metadata from the start.
| [in] | intrinsicParameters | Can be obtained e.g. using CameraCalibration::Process |
Definition at line 262 of file peak_icv_undistortion.hpp.
|
inline |
Creates an instance of class undistortion based on the given intrinsicParameters and metadata.
This constructor can be used if you need to perform an undistortion on images with metadata which differs from the metadata of the images that were used to create the intrinsicParameters via CameraCalibration::Process concerning the binning factors. If this constructor was used before calling Undistortion::Process, the images to be undistorted must have metadata that matches exactly with what was provided in this constructor.
| [in] | intrinsicParameters | Can be obtained e.g. using CameraCalibration::Process |
| [in] | metadata | Metadata related to a capture process, e.g. used binning factor. |
Definition at line 270 of file peak_icv_undistortion.hpp.
|
inlineexplicit |
Creates an instance of class undistortion based on the given calibrationParameters.
This constructor can also be used if you need to perform an undistortion on images with metadata which differs from the metadata of the images that were used to create the calibrationParameters via CameraCalibration::Process concerning the binning factors. In this case, the first call of the function Undistortion::Process may take longer than subsequent calls, because some internal parameters have to be reinitialized.
To avoid this initial delay, you can instead use the constructor Undistortion(const CalibrationParameters& calibrationParameters, const Metadata& metadata) to create the undistortion with both the intrinsic parameters and the metadata from the start.
| [in] | calibrationParameters | Can be obtained e.g. using CameraCalibration::Process |
Definition at line 282 of file peak_icv_undistortion.hpp.
|
inline |
Creates an instance of class undistortion based on the given calibrationParameters and metadata.
This constructor can be used if you need to perform an undistortion on images with metadata which differs from the metadata of the images that were used to create the calibrationParameters via CameraCalibration::Process concerning the binning factors. If this constructor was used before calling Undistortion::Process, the images to be undistorted must have metadata that matches exactly with what was provided in this constructor.
| [in] | calibrationParameters | Can be obtained e.g. using CameraCalibration::Process |
| [in] | metadata | Metadata related to a capture process, e.g. used binning factor. |
Definition at line 291 of file peak_icv_undistortion.hpp.
|
inlineexplicit |
Creates an instance of class undistortion based on the given calibrationResult.
This constructor can also be used if you need to perform an undistortion on images with metadata which differs from the metadata of the images that were used to create the calibrationResult via CameraCalibration::Process concerning the binning factors. In this case, the first call of the function Undistortion::Process may take longer than subsequent calls, because some internal parameters have to be reinitialized.
To avoid this initial delay, you can instead use the constructor Undistortion(const CalibrationResult& calibrationResult, const peak::common::Metadata& metadata) to create the undistortion with both the intrinsic parameters and the metadata from the start.
| [in] | calibrationResult | Can be obtained e.g. using CameraCalibration::Process |
Definition at line 303 of file peak_icv_undistortion.hpp.
|
inline |
Creates an instance of class undistortion based on the given calibrationResult and metadata.
This constructor can be used if you need to perform an undistortion on images with metadata which differs from the metadata of the images that were used to create the calibrationResult via CameraCalibration::Process concerning the binning factors. If this constructor was used before calling Undistortion::Process, the images to be undistorted must have metadata that matches exactly with what was provided in this constructor.
| [in] | calibrationResult | Can be obtained e.g. using CameraCalibration::Process |
| [in] | metadata | Metadata related to a capture process, e.g. used binning factor. |
Definition at line 313 of file peak_icv_undistortion.hpp.
|
inline |
Definition at line 326 of file peak_icv_undistortion.hpp.
|
inlinenoexcept |
Definition at line 338 of file peak_icv_undistortion.hpp.
|
inlineoverride |
Definition at line 349 of file peak_icv_undistortion.hpp.
|
inline |
Provides the current interpolation algorithm used by the undistortion.
This algorithm returns the interpolation algorithm currently set for the undistortion transformation process.
Definition at line 412 of file peak_icv_undistortion.hpp.
|
inline |
Definition at line 357 of file peak_icv_undistortion.hpp.
|
inlinenoexcept |
Definition at line 378 of file peak_icv_undistortion.hpp.
|
inline |
Applies the undistortion on the given image and returns the undistorted image.
When performing an undistortion on images with metadata that differs from the metadata of the images which were used to create the calibration parameters via CameraCalibration::Process the first call of the function Undistortion::Process may take longer than subsequent calls. This is because some internal parameters have to be reinitialized.
To avoid this initial delay, you can instead use one of the undistortion constructors that take metadata as input to create the undistortion with the metadata from the start. In this case the images to be undistorted must have metadata that matches exactly with what was provided in the constructor.
| [in] | image | The image to be undistorted |
| MismatchException | If the image size doesn't match the image size defined in the calibration file or the metadata of the input image does not fit the calibration. |
Definition at line 398 of file peak_icv_undistortion.hpp.
|
inline |
Sets the interpolation method for the undistortion transformation.
Definition at line 423 of file peak_icv_undistortion.hpp.