#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.
|
inline |
Creates an instance of class ToneCurveCorrectionModule with default values for gamma and black.
|
inlineoverride |
|
delete |
Copy constructor for class ToneCurveCorrectionModule is deleted.
|
inlinenoexcept |
|
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.
|
inline |
Gets the current digital black used for correction.
|
inline |
Returns the valid range for the digital black correction value.
|
inline |
Gets the current gamma correction exponent.
|
inline |
Returns the valid range for the gamma correction exponent.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
|
inlineoverridevirtual |
Gets whether this module is currently enabled.
true if enabled; otherwise false.Implements IModule.
|
delete |
Copy assignment for class ToneCurveCorrectionModule is deleted.
|
inlinenoexcept |
|
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.
|
inline |
Processes the input image and returns a tone curve corrected output image.
| input | The input image to be processed. |
|
inlineoverridevirtual |
Resets all settings to the default values for gamma and black.
Implements IModule.
|
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.
|
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. |
|
inlineoverridevirtual |
Enables or disables the module.
| enabled | Set to true to enable, or false to disable. |
Implements IModule.
|
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. |