#include <peak_icv/pipeline/detail/peak_icv_hotpixel_correction_module.hpp>
Public Member Functions | |
| HotpixelCorrectionModule () | |
| Creates a HotpixelCorrectionModule module with default settings (no correction). | |
| ~HotpixelCorrectionModule () override | |
| HotpixelCorrectionModule (const HotpixelCorrectionModule &other)=delete | |
| Copy constructor for class HotpixelCorrectionModule is deleted. | |
| HotpixelCorrectionModule (HotpixelCorrectionModule &&other) noexcept | |
| HotpixelCorrectionModule & | operator= (const HotpixelCorrectionModule &other)=delete |
| Copy assignment for class HotpixelCorrectionModule is deleted. | |
| HotpixelCorrectionModule & | operator= (HotpixelCorrectionModule &&other) noexcept |
| void | SetEnabled (bool enabled) override |
| Enables or disables the module. | |
| bool | IsEnabled () const override |
| Gets whether this module is currently enabled. | |
| const char * | GetType () const override |
| Returns the type of the module for serialization purposes. | |
| peak::icv::Image | Process (const peak::icv::Image &input) const |
| Applies hot pixel correction to the input image in place and returns a reference to the modified image. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Applies hot pixel correction to the input image in place and returns a reference to the modified image. | |
| void | Serialize (peak::common::serialization::IArchive &archive) const override |
| Serializes the object's internal state into the provided archive. | |
| void | Deserialize (const peak::common::serialization::IArchive &archive) override |
| Restores the object's state from the provided archive. | |
| void | SetList (const std::vector< peak::common::Point > &hotpixels) |
| Sets the list of known hot pixels. | |
| std::vector< peak::common::Point > | GetList () const |
| Retrieves the current list of known hot pixels. | |
| peak::common::IntervalU | GetSensitivityRange () const |
| Returns the valid range of sensitivities. | |
| void | Detect (const peak::icv::Image &image, uint32_t sensitivity=3, float gainFactor=1.0F) |
| Performs immediate hot pixel detection on the given image. | |
| void | ResetToDefault () override |
| Clears the hot pixel list. | |
Hotpixel correction is an image pipeline module for detecting and correcting 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 35 of file peak_icv_hotpixel_correction_module.hpp.
|
inline |
Creates a HotpixelCorrectionModule module with default settings (no correction).
Definition at line 261 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverride |
Definition at line 268 of file peak_icv_hotpixel_correction_module.hpp.
|
delete |
Copy constructor for class HotpixelCorrectionModule is deleted.
|
inlinenoexcept |
Definition at line 276 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
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. |
Implements ISerializable.
Definition at line 328 of file peak_icv_hotpixel_correction_module.hpp.
|
inline |
Performs immediate hot pixel detection on the given image.
This method analyzes the provided image and detects hot pixels based on the current 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. Valid values are within the range returned by GetSensitivityRange. |
| gainFactor | Gain factor applied to the image (typically 1.0 or higher). Used to account for increased noise levels when detecting hot pixels. Higher gain factors may require higher sensitivity values for effective detection. |
| OutOfRangeException | If sensitivity value is outside the valid range. |
| NotSupportedException | If image has any other than the supported pixel formats. |
Definition at line 389 of file peak_icv_hotpixel_correction_module.hpp.
|
inline |
Retrieves the current list of known hot pixels.
Definition at line 364 of file peak_icv_hotpixel_correction_module.hpp.
|
inline |
Returns the valid range of sensitivities.
Definition at line 433 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 256 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Gets whether this module is currently enabled.
true if enabled; otherwise false.Implements IModule.
Definition at line 305 of file peak_icv_hotpixel_correction_module.hpp.
|
delete |
Copy assignment for class HotpixelCorrectionModule is deleted.
|
inlinenoexcept |
Definition at line 282 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Applies hot pixel correction to the input image in place and returns a reference to the modified image.
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.
| input | The input image to be processed and corrected. |
| peak::common::InvalidCastException | If the input cast to peak::icv::Image failed. |
| NotSupportedException | If image has any other than the supported pixel formats. |
Implements IModule.
Definition at line 408 of file peak_icv_hotpixel_correction_module.hpp.
|
inline |
Applies hot pixel correction to the input image in place and returns a reference to the modified image.
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.
| input | The input image to be processed and corrected. |
| NotSupportedException | If image has any other than the supported pixel formats. |
Definition at line 403 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Clears the hot pixel list.
Implements IModule.
Definition at line 398 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
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.
| archive | The target archive that will store the serialized parameters. |
Implements ISerializable.
Definition at line 310 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Enables or disables the module.
| enabled | Set to true to enable, or false to disable. |
Implements IModule.
Definition at line 300 of file peak_icv_hotpixel_correction_module.hpp.
|
inline |
Sets the list of known hot pixels.
| hotpixels | A vector of hot pixel positions to use. |
Definition at line 345 of file peak_icv_hotpixel_correction_module.hpp.