A filter for undistorting images. This filter enables the correction of lens-distorted images. The corresponding correction table is generated for a calibration configuration and a specified image size, which is then applied to distorted images of the same size. To correct individual pixel positions, see UndistortPointFilter. More...
Inherits INativeHandle.
Public Member Functions | |
| void | Dispose (bool disposing) |
| IDisposable helper function. | |
| void | Dispose () |
| IDisposable implementation. | |
| Image | Undistort (Image image) |
| Undistort the given image . | |
Static Public Member Functions | |
| static UndistortImageFilter | Create (string calibrationData, Size2D imageSize, bool crop, UndistortInterpolationMode interpolationMode=UndistortInterpolationMode.Bilinear) |
| Create a new UndistortImageFilter from the given calibrationData . | |
Properties | |
| Size2D | OutputSize [get] |
| The dimensions of the undistorted output image. | |
| IntPtr | Handle [get] |
| Native handle of the Module. | |
| bool | IsDisposed [get] |
| Gets if the native handle has been disposed. | |
Events | |
| NativeHandleEventDelegate | ObjectDisposing |
| Raised when this object is about to be disposed via the IDisposable.Dispose method. | |
Events inherited from INativeHandle | |
| NativeHandleEventDelegate | ObjectDisposing |
| Raised when this object is about to be disposed via the IDisposable.Dispose method. | |
A filter for undistorting images. This filter enables the correction of lens-distorted images. The corresponding correction table is generated for a calibration configuration and a specified image size, which is then applied to distorted images of the same size. To correct individual pixel positions, see UndistortPointFilter.
|
static |
Create a new UndistortImageFilter from the given calibrationData .
| calibrationData | The calibration data in json format. |
| imageSize | Size of the image to undistort. |
| crop | Whether the output image contains only valid pixels. |
| interpolationMode | Interpolation mode to use. |
| ArgumentException | When calibrationData is null or empty. |
| CvbException | When an error during creation occurs. |
| void Dispose | ( | bool | disposing | ) |
IDisposable helper function.
| disposing |
Undistort the given image .
| image | Image to undistort. |
| ArgumentNullException | When image is null. |
| ArgumentException | When the planes of the given image do not have identical data types. |
| CvbException | When an error during undistortion occurs. |
| NativeHandleEventDelegate ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.