![]() |
IDS peak ICV v1.1.0
|

Public Member Functions | |
| None | __init__ (self, ColorMatrixTransformationModule module) |
| Creates a SaturationFeature for an existing color matrix transformation module. | |
| bool | enabled (self) |
| Indicates whether the feature is currently enabled. | |
| None | enabled (self, bool value) |
| Enables or disables the feature. | |
| None | reset_to_default (self) |
| Resets the saturation value to 1.0. | |
| float | value (self) |
| Gets the current saturation value. | |
| None | value (self, float saturation) |
| Sets the saturation value. | |
| Interval | range (self) |
| Retrieves the valid range for the saturation. | |
Protected Attributes | |
| _module = module | |
Adjusts the saturation of an image by modifying a 3x3 color correction matrix.
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
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.
The default value for saturation is 1.0.
Definition at line 8 of file saturation_feature.py.
| None __init__ | ( | self, | |
| ColorMatrixTransformationModule | module ) |
Creates a SaturationFeature for an existing color matrix transformation module.
| module | Reference to the underlying module |
Definition at line 25 of file saturation_feature.py.
| bool enabled | ( | self | ) |
Indicates whether the feature is currently enabled.
Reimplemented from IFeature.
Definition at line 36 of file saturation_feature.py.
| None enabled | ( | self, | |
| bool | value ) |
Enables or disables the feature.
| value | Set to True to enable the feature, or False to disable it. |
Reimplemented from IFeature.
Definition at line 47 of file saturation_feature.py.
| Interval range | ( | self | ) |
Retrieves the valid range for the saturation.
The returned interval specifies the minimum and maximum values that can be passed to value property.
Definition at line 95 of file saturation_feature.py.
| None reset_to_default | ( | self | ) |
Resets the saturation value to 1.0.
Reimplemented from IFeature.
Definition at line 57 of file saturation_feature.py.
| float value | ( | self | ) |
Gets the current saturation value.
Definition at line 69 of file saturation_feature.py.
| None value | ( | self, | |
| float | saturation ) |
Sets the saturation value.
| saturation | A floating-point value representing the saturation value. Valid values are within the range returned by range property. |
:raise OutOfRangeException: If saturation is outside the valid range.
Definition at line 80 of file saturation_feature.py.
|
protected |
Definition at line 33 of file saturation_feature.py.