![]() |
IDS peak ICV v1.0.0
|
#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 |
| Sets the enabled state of this module. | |
| bool | IsEnabled () const override |
| Checks if the 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 258 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverride |
Definition at line 265 of file peak_icv_hotpixel_correction_module.hpp.
|
delete |
Copy constructor for class HotpixelCorrectionModule is deleted.
|
inlinenoexcept |
Definition at line 273 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 the 'Version' entry in archive is missing, malformed, or indicates an unsupported version. |
Implements ISerializable.
Definition at line 325 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 386 of file peak_icv_hotpixel_correction_module.hpp.
|
inline |
Retrieves the current list of known hot pixels.
Definition at line 361 of file peak_icv_hotpixel_correction_module.hpp.
|
inline |
Returns the valid range of sensitivities.
Definition at line 430 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 253 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Checks if the module is currently enabled.
Implements IModule.
Definition at line 302 of file peak_icv_hotpixel_correction_module.hpp.
|
delete |
Copy assignment for class HotpixelCorrectionModule is deleted.
|
inlinenoexcept |
Definition at line 279 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 405 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 400 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Clears the hot pixel list.
Implements IModule.
Definition at line 395 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 307 of file peak_icv_hotpixel_correction_module.hpp.
|
inlineoverridevirtual |
Sets the enabled state of this module.
| enabled | If true, the module is enabled; otherwise, it is disabled. |
Implements IModule.
Definition at line 297 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 342 of file peak_icv_hotpixel_correction_module.hpp.