![]() |
IDS peak ICV v1.1.0
|
Public Member Functions | |
| None | __init__ (self) |
| Creates a HotpixelCorrectionModule module with default settings (no correction). | |
| str | type (self) |
| Returns the type of the module for serialization purposes. | |
| bool | enabled (self) |
| Gets whether this module is enabled. | |
| None | enabled (self, bool enabled) |
| Enable or disable the module. | |
| PointArray | hotpixel_list (self) |
| Gets the current array of known hot pixels. | |
| None | hotpixel_list (self, PointArray pixel_list) |
| Sets the array of known hot pixels. | |
| Interval | sensitivity_range (self) |
| Gets the valid range for sensitivity. | |
| None | detect (self, Image image, int sensitivity=3, float gain_factor=1.0) |
| Performs immediate hot pixel detection on the given image. | |
| Image | process (self, Image input_image) |
| Applies hot pixel correction to the input image in place and returns a reference to the modified image. | |
| None | reset_to_default (self) |
| Resets all module settings. | |
| None | serialize (self, IArchive archive) |
| Serializes the object's internal state into the provided archive. | |
| None | deserialize (self, IArchive archive) |
| Restores the object's state from the provided archive. | |
Data Fields | |
| enabled | |
| hotpixel_list = [] | |
Static Public Attributes | |
| np | DEFAULT_HOTPIXEL_LIST = np.empty(0, dtype=Point) |
Protected Member Functions | |
| None | _apply_pixel_list (self) |
| None | _call_backend_set_list (self, npt.NDArray pixel_list) |
| None | _call_backend_get_list (self) |
Protected Attributes | |
| bool | _hotpixel_correction_enabled = True |
| np.ndarray|None | _hotpixel_list = self.DEFAULT_HOTPIXEL_LIST |
| _handle = _hotpixel_correction_handle | |
| np | _hotpixel_list |
| _enabled | |
Hotpixel correction is an image pipeline module for detecting and correcting hot pixels in camera images.
Provides the feature HotpixelCorrectionFeature.
Definition at line 23 of file hotpixel_correction_module.py.
| None __init__ | ( | self | ) |
Creates a HotpixelCorrectionModule module with default settings (no correction).
Reimplemented from ModuleBase.
Definition at line 41 of file hotpixel_correction_module.py.
|
protected |
Definition at line 285 of file hotpixel_correction_module.py.
|
protected |
Definition at line 306 of file hotpixel_correction_module.py.
|
protected |
Definition at line 294 of file hotpixel_correction_module.py.
| None deserialize | ( | self, | |
| IArchive | archive ) |
Restores the object's state from the provided archive.
This function reads and applies all necessary parameters from the given archive to reconstruct the internal state of the object. It ensures that the object is restored to a valid and consistent state.
| archive | The source archive containing the serialized parameters. |
| CorruptedException | If Archive is malformed, misses keys or the values are invalid |
| NotSupportedException | If the 'Version' entry indicates an unsupported version. |
Reimplemented from ModuleBase.
Definition at line 256 of file hotpixel_correction_module.py.
| None detect | ( | self, | |
| Image | image, | ||
| int | sensitivity = 3, | ||
| float | gain_factor = 1.0 ) |
Performs immediate hot pixel detection on the given image.
This method analyzes the provided image and detects hot pixels based on the sensitivity setting. The results are stored internally and can be accessed using pixel_list.
Note: Calling this function will overwrite any existing hot pixel list previously set via pixel_list.
| image | The input image to analyze for hot pixel detection. |
| sensitivity | Sensitivity for hot pixel detection. A higher sensitivity may result in detecting more hot pixels, including possible false positives. |
| gain_factor | Gain factor applied to the image. Used to account for increased noise levels when detecting hot pixels. |
| NotSupportedException | If image has any other than the supported pixel formats. |
Definition at line 153 of file hotpixel_correction_module.py.
| bool enabled | ( | self | ) |
Gets whether this module is enabled.
When disabled, :func:process returns the input image unchanged.
Reimplemented from ModuleBase.
Definition at line 73 of file hotpixel_correction_module.py.
| None enabled | ( | self, | |
| bool | enabled ) |
Enable or disable the module.
When disabled, :func:process returns the input image unchanged.
| enabled | True to enable, False to disable. |
Reimplemented from ModuleBase.
Definition at line 87 of file hotpixel_correction_module.py.
| PointArray hotpixel_list | ( | self | ) |
Gets the current array of known hot pixels.
Definition at line 102 of file hotpixel_correction_module.py.
| None hotpixel_list | ( | self, | |
| PointArray | pixel_list ) |
Sets the array of known hot pixels.
| pixel_list | An array of hot pixel positions to use. |
Definition at line 119 of file hotpixel_correction_module.py.
Applies hot pixel correction to the input image in place and returns a reference to the modified image.
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
The correction is performed based on the current configuration of the module. The operation modifies the input image directly and does not create a copy.
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
Images with other formats are passed through unmodified.
This operation disregards any specified image regions and processes the entire image.
| input_image | The input image to be processed and corrected. |
| NotSupportedException | If image has any other than the supported pixel formats. |
Reimplemented from IModule.
Definition at line 179 of file hotpixel_correction_module.py.
| None reset_to_default | ( | self | ) |
Resets all module settings.
Restores the module configuration to its default values:
Reimplemented from IModule.
Definition at line 215 of file hotpixel_correction_module.py.
| Interval sensitivity_range | ( | self | ) |
Gets the valid range for sensitivity.
Definition at line 138 of file hotpixel_correction_module.py.
| None serialize | ( | self, | |
| IArchive | archive ) |
Serializes the object's internal state into the provided archive.
This function populates the given archive with all parameters required to fully represent the current state of the object. It ensures that the object can be reconstructed or transmitted accurately by saving all relevant data members in a consistent and structured format.
Reimplemented from ModuleBase.
Definition at line 230 of file hotpixel_correction_module.py.
| str type | ( | self | ) |
Returns the type of the module for serialization purposes.
Reimplemented from IModule.
Definition at line 61 of file hotpixel_correction_module.py.
|
protected |
Definition at line 246 of file hotpixel_correction_module.py.
|
protected |
Definition at line 58 of file hotpixel_correction_module.py.
|
protected |
Definition at line 50 of file hotpixel_correction_module.py.
|
protected |
Definition at line 51 of file hotpixel_correction_module.py.
|
protected |
Definition at line 116 of file hotpixel_correction_module.py.
|
static |
Definition at line 33 of file hotpixel_correction_module.py.
| enabled |
Definition at line 203 of file hotpixel_correction_module.py.
| hotpixel_list = [] |
Definition at line 249 of file hotpixel_correction_module.py.