![]() |
IDS peak ICV v1.0.0
|
#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 |
| 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. | |
| 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 290 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverride |
Definition at line 297 of file peak_icv_tone_curve_correction_module.hpp.
|
delete |
Copy constructor for class ToneCurveCorrectionModule is deleted.
|
inlinenoexcept |
Definition at line 305 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 the 'Version' entry in archive is missing, malformed, or indicates an unsupported version. |
Implements ISerializable.
Definition at line 352 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Gets the current digital black used for correction.
Definition at line 433 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Returns the valid range for the digital black correction value.
Definition at line 413 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Gets the current gamma correction exponent.
Definition at line 393 of file peak_icv_tone_curve_correction_module.hpp.
|
inline |
Returns the valid range for the gamma correction exponent.
Definition at line 403 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 382 of file peak_icv_tone_curve_correction_module.hpp.
|
inlineoverridevirtual |
Checks if the module is currently enabled.
Implements IModule.
Definition at line 377 of file peak_icv_tone_curve_correction_module.hpp.
|
delete |
Copy assignment for class ToneCurveCorrectionModule is deleted.
|
inlinenoexcept |
Definition at line 314 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 457 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 452 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 387 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 335 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 442 of file peak_icv_tone_curve_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 371 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 423 of file peak_icv_tone_curve_correction_module.hpp.