![]() |
IDS peak ICV v1.1.0
|
Public Member Functions | |
| None | __init__ (self, HotpixelCorrectionModule module) |
| Creates a HotpixelCorrectionFeature for an existing hotpixel correction module. | |
| bool | enabled (self) |
| Indicates whether the feature is currently enabled. | |
| None | enabled (self, bool value) |
| Enables or disables the feature. | |
| None | reset_to_default (self) |
| Resets the pixel list (empty list). | |
| np.ndarray | hotpixel_list (self) |
| Gets the current pixel list. | |
| None | hotpixel_list (self, np.ndarray pixel_list) |
| Sets the pixel list. | |
| None | detect (self, Image image, int sensitivity=3, float gain_factor=1.0) |
| Performs immediate hot pixel detection on the given image. | |
Protected Attributes | |
| _module = module | |
HotpixelCorrection detects and corrects hot pixels in camera images.
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
The HotpixelCorrection class is responsible for identifying and correcting defective pixels that consistently report higher-than-expected intensity values.
It allows fine-tuning of the detection sensitivity and management of a hot pixel correction list, which is applied during image processing through the process() method.
The default value is an empty hotpixel correction list.
Definition at line 10 of file hotpixel_correction_feature.py.
| None __init__ | ( | self, | |
| HotpixelCorrectionModule | module ) |
Creates a HotpixelCorrectionFeature for an existing hotpixel correction module.
| module | Reference to the underlying module |
Definition at line 29 of file hotpixel_correction_feature.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. |
Definition at line 94 of file hotpixel_correction_feature.py.
| bool enabled | ( | self | ) |
Indicates whether the feature is currently enabled.
Reimplemented from IFeature.
Definition at line 40 of file hotpixel_correction_feature.py.
| None enabled | ( | self, | |
| bool | value ) |
Enables or disables the feature.
| value | Set to True to enable the feature, or False to disable it. |
Reimplemented from IFeature.
Definition at line 51 of file hotpixel_correction_feature.py.
| np.ndarray hotpixel_list | ( | self | ) |
Gets the current pixel list.
Definition at line 73 of file hotpixel_correction_feature.py.
| None hotpixel_list | ( | self, | |
| np.ndarray | pixel_list ) |
Sets the pixel list.
| pixel_list | A list of points representing the hotpixel. |
Definition at line 84 of file hotpixel_correction_feature.py.
| None reset_to_default | ( | self | ) |
Resets the pixel list (empty list).
Reimplemented from IFeature.
Definition at line 61 of file hotpixel_correction_feature.py.
|
protected |
Definition at line 37 of file hotpixel_correction_feature.py.