IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
GammaFeature.cs
Go to the documentation of this file.
3
5
52public class GammaFeature : IFeature
53{
54 private readonly ToneCurveCorrectionModule _module;
55
63 {
64 _module = module;
65 }
66
79
80 public float Value
81 {
82 get => _module.Gamma;
83 set => _module.Gamma = value;
84 }
85
92 public IntervalF Range => _module.GammaRange;
93
95 public bool IsEnabled
96 {
97 get => _module.IsGammaEnabled;
98 set => _module.IsGammaEnabled = value;
99 }
100
108 public void ResetToDefault()
109 {
110 _module.Gamma = ToneCurveCorrectionModule.DefaultGamma;
111 }
112}
Represents an interval with floating-point boundaries.
Definition Interval.cs:157
Represents a range with signed integer boundaries.
Definition Range.cs:139
Gamma applies an inverse gamma transformation to an image.
float Value
Sets the gamma correction exponent.
bool IsEnabled
Enables or disables the feature.
void ResetToDefault()
Resets the gamma value to the default.
GammaFeature(ToneCurveCorrectionModule module)
Creates a GammaFeature for an existing tone curve correction module.
Tone curve correction is an image pipeline module that applies digital black correction and inverse g...
Abstract base class for all image processing pipeline features.
Definition IFeature.cs:64