#include <peak_icv/pipeline/detail/peak_icv_tone_curve_correction_module.hpp>

Public Member Functions | |
| ToneCurveCorrectionModule () | |
| Creates an instance of class ToneCurveCorrectionModule with default values for gamma and black. | |
| ~ToneCurveCorrectionModule () override | |
| ToneCurveCorrectionModule (const ToneCurveCorrectionModule &other)=delete | |
| Copy constructor for class ToneCurveCorrectionModule is deleted. | |
| ToneCurveCorrectionModule (ToneCurveCorrectionModule &&other) noexcept | |
| ToneCurveCorrectionModule & | operator= (const ToneCurveCorrectionModule &other)=delete |
| Copy assignment for class ToneCurveCorrectionModule is deleted. | |
| ToneCurveCorrectionModule & | operator= (ToneCurveCorrectionModule &&other) noexcept |
| 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 | 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. | |
| void | ResetToDefault () override |
| Resets all settings to the default values for gamma and black. | |
| void | SetGamma (float gamma) |
| Sets the gamma correction exponent. | |
| float | GetGamma () const |
| Gets the current gamma correction exponent. | |
| peak::common::IntervalF | GetGammaRange () const |
| Returns the valid range for the gamma correction exponent. | |
| void | SetDigitalBlack (float digitalBlack) |
| Sets the digital black used for digital black correction. | |
| float | GetDigitalBlack () const |
| Gets the current digital black used for correction. | |
| peak::common::IntervalF | GetDigitalBlackRange () const |
| Returns the valid range for the digital black correction value. | |
| peak::icv::Image | Process (const peak::icv::Image &input) const |
| Processes the input image and returns a tone curve corrected output image. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Processes the input image and returns a tone curve corrected output image. | |
Tone curve correction is an image pipeline module that applies digital black correction and inverse gamma transformation to an image.
Definition at line 43 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Creates an instance of class ToneCurveCorrectionModule with default values for gamma and black.
Definition at line 292 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverride |
Definition at line 299 of file peak_icv_tone_curve_correction_module.hpp.
|
delete |
Copy constructor for class ToneCurveCorrectionModule is deleted.
|
inlinenoexcept |
Definition at line 307 of file peak_icv_tone_curve_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 354 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Gets the current digital black used for correction.
Definition at line 437 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Returns the valid range for the digital black correction value.
Definition at line 417 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Gets the current gamma correction exponent.
Definition at line 397 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Returns the valid range for the gamma correction exponent.
Definition at line 407 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 384 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverridevirtual |
Gets whether this module is currently enabled.
true if enabled; otherwise false.Implements IModule.
Definition at line 379 of file peak_icv_tone_curve_correction_module.hpp.
|
delete |
Copy assignment for class ToneCurveCorrectionModule is deleted.
|
inlinenoexcept |
Definition at line 316 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverridevirtual |
Processes the input image and returns a tone curve corrected output image.
| input | The input image to be processed. |
| peak::common::InvalidCastException | If the input cast to peak::icv::Image failed. |
Implements IModule.
Definition at line 461 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Processes the input image and returns a tone curve corrected output image.
| input | The input image to be processed. |
Definition at line 456 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverridevirtual |
Resets all settings to the default values for gamma and black.
Implements IModule.
Definition at line 389 of file peak_icv_tone_curve_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 337 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Sets the digital black used for digital black correction.
This value is subtracted from the input image channel values before gamma correction. It typically represents sensor black offset.
| digitalBlack | The digital black value in normalized units. |
Definition at line 446 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverridevirtual |
Enables or disables the module.
| enabled | Set to true to enable, or false to disable. |
Implements IModule.
Definition at line 373 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Sets the gamma correction exponent.
This value determines the degree of inverse gamma correction applied during processing, where output values are computed as pow(input, 1/gamma). Higher gamma values lighten the image, while values closer to zero darken it.
| gamma | The gamma exponent. |
Definition at line 427 of file peak_icv_tone_curve_correction_module.hpp.