![]() |
IDS peak ICV v1.1.0
|
#include <peak_icv/pipeline/features/peak_icv_hotpixel_correction_feature.hpp>
Public Types | |
| using | HotpixelList = std::vector<peak::common::Point> |
Public Member Functions | |
| HotpixelCorrectionFeature (detail::HotpixelCorrectionModule &module) | |
| Creates a HotpixelCorrectionFeature for an existing hotpixel correction module. | |
| void | SetEnabled (bool enabled) override |
| Enables or disables the feature. | |
| bool | IsEnabled () const override |
| Indicates whether the feature is currently enabled. | |
| void | ResetToDefault () override |
| Clears the hot pixel list. | |
| void | SetList (const HotpixelList &hotpixels) |
| Sets the list of known hot pixels. | |
| HotpixelList | GetList () const |
| Retrieves the current list of known hot pixels. | |
| peak::common::IntervalU | GetSensitivityRange () const |
| Retrieves the valid range for the detection sensitivity. | |
| void | Detect (const peak::icv::Image &image, uint32_t sensitivity=3, float gainFactor=1.0F) |
| Performs immediate hot pixel detection on the given image. | |
HotpixelCorrection detects and corrects hot pixels in camera images.
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.
Definition at line 36 of file peak_icv_hotpixel_correction_feature.hpp.
| using HotpixelList = std::vector<peak::common::Point> |
Definition at line 39 of file peak_icv_hotpixel_correction_feature.hpp.
|
inlineexplicit |
Creates a HotpixelCorrectionFeature for an existing hotpixel correction module.
| module | Reference to the underlying detail::HotpixelCorrectionModule. |
Definition at line 121 of file peak_icv_hotpixel_correction_feature.hpp.
|
inline |
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 GetList().
| 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. |
| gainFactor | Gain factor applied to the image. Used to account for increased noise levels when detecting hot pixels. |
Definition at line 155 of file peak_icv_hotpixel_correction_feature.hpp.
|
inline |
Retrieves the current list of known hot pixels.
Definition at line 145 of file peak_icv_hotpixel_correction_feature.hpp.
|
inline |
Retrieves the valid range for the detection sensitivity.
The returned interval specifies the minimum and maximum sensitivity values that can be passed to the Detect function.
Definition at line 150 of file peak_icv_hotpixel_correction_feature.hpp.
|
inlineoverridevirtual |
Indicates whether the feature is currently enabled.
true if enabled; otherwise, false.Implements IFeature.
Definition at line 130 of file peak_icv_hotpixel_correction_feature.hpp.
|
inlineoverridevirtual |
Clears the hot pixel list.
Implements IFeature.
Definition at line 135 of file peak_icv_hotpixel_correction_feature.hpp.
|
inlineoverridevirtual |
Enables or disables the feature.
| enabled | Set to true to enable the feature, or false to disable it. |
Implements IFeature.
Definition at line 125 of file peak_icv_hotpixel_correction_feature.hpp.
|
inline |
Sets the list of known hot pixels.
| hotpixels | A vector of hot pixel positions to use. |
Definition at line 140 of file peak_icv_hotpixel_correction_feature.hpp.