#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 |
| Gets whether this 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.
| using HotpixelList = std::vector<peak::common::Point> |
|
inlineexplicit |
Creates a HotpixelCorrectionFeature for an existing hotpixel correction module.
| module | Reference to the underlying detail::HotpixelCorrectionModule. |
|
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. |
|
inline |
Retrieves the current list of known hot pixels.
|
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.
|
inlineoverridevirtual |
Gets whether this feature is currently enabled.
true if enabled; otherwise false.Implements IFeature.
|
inlineoverridevirtual |
Clears the hot pixel list.
Implements IFeature.
|
inlineoverridevirtual |
Enables or disables the feature.
| enabled | Set to true to enable, or false to disable. |
Implements IFeature.
|
inline |
Sets the list of known hot pixels.
| hotpixels | A vector of hot pixel positions to use. |