#include <peak_icv/pipeline/features/peak_icv_saturation_feature.hpp>
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.
- Defaults
-
- See also
- features::ColorCorrectionFeature, ColorCorrectionMatrix
- Since
- ids_peak_icv 1.0
◆ SaturationFeature()
◆ GetRange()
Gets the valid range for the saturation value.
The returned interval specifies the minimum and maximum values that can be passed to SetValue.
- Returns
- An IntervalF representing the valid saturation range.
- Since
- ids_peak_icv 1.0
◆ GetValue()
Gets the current saturation value.
- Returns
- The current saturation value.
- Since
- ids_peak_icv 1.0
◆ IsEnabled()
Gets whether this feature is currently enabled.
- Returns
true if enabled; otherwise false.
- Since
- ids_peak_icv 1.0
Implements IFeature.
◆ ResetToDefault()
Resets the saturation value to its default.
- Note
- The enabled state does not change when calling this function.
- Since
- ids_peak_icv 1.0
Implements IFeature.
◆ SetEnabled()
| void SetEnabled |
( |
bool | enabled | ) |
|
|
inlineoverridevirtual |
Enables or disables the feature.
- Parameters
-
| enabled | Set to true to enable, or false to disable. |
- Since
- ids_peak_icv 1.0
Implements IFeature.
◆ SetValue()
| void SetValue |
( |
float | saturation | ) |
|
|
inline |
Sets the saturation value.
- Parameters
-
| saturation | A floating-point value representing the saturation value. 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. |
- Warning
- Extreme saturation values may cause color clipping or unnatural color appearance. Values significantly above 2.0 or below 0.0 should be used with caution.
- Exceptions
-
| OutOfRangeException | If saturation is outside the valid range. |
- See also
- features::ColorCorrectionFeature, GetRange()
- Since
- ids_peak_icv 1.0