Public Member Functions | |
| None | __init__ (self, HotpixelCorrectionModule module) |
| Creates a HotpixelCorrectionFeature for an existing hotpixel correction module. | |
| bool | enabled (self) |
| Gets whether this feature is currently enabled. | |
| None | enabled (self, bool enabled) |
| Enables or disables the feature. | |
| None | reset_to_default (self) |
| Resets the hotpixel list to its default value (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 96 of file hotpixel_correction_feature.py.
| bool enabled | ( | self | ) |
Gets whether this feature is currently enabled.
Reimplemented from IFeature.
Definition at line 40 of file hotpixel_correction_feature.py.
| None enabled | ( | self, | |
| bool | enabled ) |
Enables or disables the feature.
| enabled | True to enable, False to disable. |
Reimplemented from IFeature.
Definition at line 52 of file hotpixel_correction_feature.py.
| np.ndarray hotpixel_list | ( | self | ) |
Gets the current pixel list.
Definition at line 75 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 86 of file hotpixel_correction_feature.py.
| None reset_to_default | ( | self | ) |
Resets the hotpixel list to its default value (empty list).
Reimplemented from IFeature.
Definition at line 63 of file hotpixel_correction_feature.py.
|
protected |
Definition at line 37 of file hotpixel_correction_feature.py.