#include <peak_icv/algorithms/transformations/peak_icv_undistortion.hpp>

Public Member Functions | |
| Undistortion (const IntrinsicParameters &intrinsicParameters) | |
| Constructs an undistortion using intrinsic parameters. | |
| Undistortion (const IntrinsicParameters &intrinsicParameters, const peak::common::Metadata &metadata) | |
| Constructs an undistortion using intrinsic parameters and metadata. | |
| Undistortion (const CalibrationParameters &calibrationParameters) | |
| Constructs an undistortion using calibration parameters. | |
| Undistortion (const CalibrationParameters &calibrationParameters, const peak::common::Metadata &metadata) | |
| Constructs an undistortion using calibration parameters and metadata. | |
| Undistortion (const CalibrationResult &calibrationResult) | |
| Constructs an undistortion using a calibration result. | |
| Undistortion (const CalibrationResult &calibrationResult, const peak::common::Metadata &metadata) | |
| Constructs an undistortion using a calibration result 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 undistortion to the specified image. | |
| Interpolation | GetInterpolation () const |
| void | SetInterpolation (Interpolation interpolation) |
| Sets the Interpolation method used for undistortion. | |
Represents an undistortion transformation for images.
Provides geometric correction to remove lens distortion using intrinsic calibration parameters. The intrinsic parameters can be obtained using CameraCalibration::Process().
This class also supports undistorting images with binning factors that differ from those used during calibration, as long as the image metadata includes valid binning information. The binning factor of the image to be undistorted must be greater than or equal to the binning factor of the calibration images.
Process() may take longer. To avoid this, use a constructor that accepts both calibration parameters and metadata. When using those constructors, the provided metadata must match the images to be undistorted.Definition at line 57 of file peak_icv_undistortion.hpp.
|
inlineexplicit |
Constructs an undistortion using intrinsic parameters.
| [in] | intrinsicParameters | Intrinsic calibration parameters. |
Definition at line 201 of file peak_icv_undistortion.hpp.
|
inline |
Constructs an undistortion using intrinsic parameters and metadata.
| [in] | intrinsicParameters | Intrinsic calibration parameters. |
| [in] | metadata | Metadata describing capture characteristics. |
Definition at line 210 of file peak_icv_undistortion.hpp.
|
inlineexplicit |
Constructs an undistortion using calibration parameters.
| [in] | calibrationParameters | Calibration parameters. |
Definition at line 221 of file peak_icv_undistortion.hpp.
|
inline |
Constructs an undistortion using calibration parameters and metadata.
| [in] | calibrationParameters | Calibration parameters. |
| [in] | metadata | Metadata describing capture characteristics. |
Definition at line 230 of file peak_icv_undistortion.hpp.
|
inlineexplicit |
Constructs an undistortion using a calibration result.
| [in] | calibrationResult | Calibration result. |
Definition at line 241 of file peak_icv_undistortion.hpp.
|
inline |
Constructs an undistortion using a calibration result and metadata.
| [in] | calibrationResult | Calibration result. |
| [in] | metadata | Metadata describing capture characteristics. |
Definition at line 251 of file peak_icv_undistortion.hpp.
|
inline |
Definition at line 263 of file peak_icv_undistortion.hpp.
|
inlinenoexcept |
Definition at line 275 of file peak_icv_undistortion.hpp.
|
inlineoverride |
Definition at line 286 of file peak_icv_undistortion.hpp.
|
inline |
Definition at line 349 of file peak_icv_undistortion.hpp.
|
inline |
Definition at line 294 of file peak_icv_undistortion.hpp.
|
inlinenoexcept |
Definition at line 315 of file peak_icv_undistortion.hpp.
|
inline |
Applies undistortion to the specified image.
This function undistorts the image and returns an UndistortedImage that includes updated intrinsic parameters.
The returned image has the same size and pixel format as the input image.
| [in] | image | The image to be undistorted. |
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
| NotPossibleException | The image binning factor is too small for the undistortion configuration. |
| MismatchException | The input image size or capture information does not match the undistortion configuration. |
Definition at line 335 of file peak_icv_undistortion.hpp.
|
inline |
Sets the Interpolation method used for undistortion.
| [in] | interpolation | interpolation method to use. |
Definition at line 360 of file peak_icv_undistortion.hpp.