![]() |
IDS peak ICV v1.1.0
|
Public Member Functions | |
| None | __init__ (self, *Any args, **Any kwargs) |
In order to create an Image, please refer to the classmethods create_from_intrinsics and create_from_intrinsics_and_metadata. | |
| Undistortion | create_from_intrinsics (cls, IntrinsicParameters intrinsic_parameters) |
| Undistortion | create_from_intrinsics_and_metadata (cls, IntrinsicParameters intrinsic_parameters, Metadata metadata) |
| None | __del__ (self) |
| Destroys the undistortion object and releases any associated resources. | |
| UndistortedImage | process (self, Union[Image, ids_peak_ipl.Image] image) |
| Applies undistortion to the specified image. | |
| Interpolation | interpolation (self) |
| None | interpolation (self, Interpolation interpolation) |
| Sets the interpolation method used for undistortion. | |
Protected Attributes | |
| _handle | |
| _new_intrinsic_parameters = kwargs["_new_intrinsic_parameters"] | |
| _intrinsic_parameters = intrinsic_parameters | |
Represents an undistortion transformation for images.
Provides geometric correction to remove lens distortion using intrinsic calibration parameters. The 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 that of the calibration images.
process() may take longer. To avoid this, call set_capture_information() beforehand with matching metadata.Definition at line 47 of file undistortion.py.
| None __init__ | ( | self, | |
| *Any | args, | ||
| **Any | kwargs ) |
In order to create an Image, please refer to the classmethods create_from_intrinsics and create_from_intrinsics_and_metadata.
Definition at line 82 of file undistortion.py.
| None __del__ | ( | self | ) |
Destroys the undistortion object and releases any associated resources.
Definition at line 144 of file undistortion.py.
| Undistortion create_from_intrinsics | ( | cls, | |
| IntrinsicParameters | intrinsic_parameters ) |
| intrinsic_parameters | Intrinsic parameters derived from a camera calibration. |
Definition at line 99 of file undistortion.py.
| Undistortion create_from_intrinsics_and_metadata | ( | cls, | |
| IntrinsicParameters | intrinsic_parameters, | ||
| Metadata | metadata ) |
| intrinsic_parameters | Intrinsic parameters derived from a camera calibration. |
| metadata | Metadata of an image which contains information about the image capture settings. |
Definition at line 120 of file undistortion.py.
| Interpolation interpolation | ( | self | ) |
Definition at line 200 of file undistortion.py.
| None interpolation | ( | self, | |
| Interpolation | interpolation ) |
Sets the interpolation method used for undistortion.
| interpolation | Interpolation method to use. |
Definition at line 216 of file undistortion.py.
| UndistortedImage process | ( | self, | |
| Union[Image, ids_peak_ipl.Image] | image ) |
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.
| 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 image size or capture information does not match the undistortion configuration. |
Definition at line 154 of file undistortion.py.
|
protected |
Definition at line 90 of file undistortion.py.
|
protected |
Definition at line 108 of file undistortion.py.
|
protected |
Definition at line 96 of file undistortion.py.