![]() |
IDS peak ICV v1.2.0
|
#include <peak_icv/pipeline/features/peak_icv_saturation_feature.hpp>

Public Member Functions | |
| SaturationFeature (detail::ColorMatrixTransformationModule &module) | |
| Creates a SaturationFeature using an existing color matrix transformation module. | |
| void | SetEnabled (bool enabled) override |
| Enables or disables the feature. | |
| bool | IsEnabled () const override |
| Indicates whether the feature is currently enabled. | |
| void | ResetToDefault () override |
| Resets the saturation value to its default. | |
| void | SetValue (float saturation) |
| Sets the saturation level. | |
| float | GetValue () const |
| Retrieves the current saturation level. | |
| peak::common::IntervalF | GetRange () const |
| Retrieves the valid range for the saturation value. | |
Adjusts the saturation of an image by modifying a 3x3 ColorCorrectionMatrix.
This feature modifies the image's color saturation by scaling the chrominance components of the color correction matrix. A higher saturation makes colors more vivid, while a lower value results in more muted tones.
Definition at line 40 of file peak_icv_saturation_feature.hpp.
|
inlineexplicit |
Creates a SaturationFeature using an existing color matrix transformation module.
| module | Reference to the underlying detail::ColorMatrixTransformationModule. |
Definition at line 113 of file peak_icv_saturation_feature.hpp.
|
inline |
Retrieves the valid range for the saturation value.
The returned interval specifies the minimum and maximum values that can be passed to SetValue.
Definition at line 142 of file peak_icv_saturation_feature.hpp.
|
inline |
Retrieves the current saturation level.
Definition at line 137 of file peak_icv_saturation_feature.hpp.
|
inlineoverridevirtual |
Indicates whether the feature is currently enabled.
true if enabled; otherwise, false.Implements IFeature.
Definition at line 122 of file peak_icv_saturation_feature.hpp.
|
inlineoverridevirtual |
Resets the saturation value to its default.
Implements IFeature.
Definition at line 127 of file peak_icv_saturation_feature.hpp.
|
inlineoverridevirtual |
Enables or disables the feature.
| enabled | Set to true to enable the feature, or false to disable it. |
Implements IFeature.
Definition at line 117 of file peak_icv_saturation_feature.hpp.
|
inline |
Sets the saturation level.
| saturation | A floating-point value representing the saturation level. A value of 1.0 means no change, values greater than 1.0 increase saturation, and values less than 1.0 decrease saturation. Valid values are within the range returned by GetRange. |
| OutOfRangeException | If saturation is outside the valid range. |
Definition at line 132 of file peak_icv_saturation_feature.hpp.