
Public Member Functions | |
| GammaFeature (ToneCurveCorrectionModule module) | |
| Creates a GammaFeature for an existing tone curve correction module. | |
| void | ResetToDefault () |
| Resets the gamma value to the default. | |
Properties | |
| float | Value [get, set] |
| Sets the gamma correction exponent. | |
| IntervalF | Range [get] |
| Retrieves the valid range for the gamma correction exponent. | |
| bool | IsEnabled [get, set] |
| Enables or disables the feature. | |
Gamma applies an inverse gamma transformation to an image.
This module adjusts the image luminance by applying an inverse gamma correction. This prepares the image for a linear domain or further processing.
The correction is applied independently to each channel in the image. For RGB images, it is applied to each color channel (R, G, B), and for monochrome images, it is applied to the single intensity channel.
The correction is performed using the following formula:
where:
color_value_in is the input channel value, gamma is the gamma exponent, color_value_out is the resulting output value. Definition at line 52 of file GammaFeature.cs.
|
inline |
Creates a GammaFeature for an existing tone curve correction module.
| module | Reference to the underlying ToneCurveCorrectionModule. |
Definition at line 62 of file GammaFeature.cs.
|
inline |
Resets the gamma value to the default.
Implements IFeature.
Definition at line 108 of file GammaFeature.cs.
|
getset |
Enables or disables the feature.
Implements IFeature.
Definition at line 95 of file GammaFeature.cs.
Retrieves the valid range for the gamma correction exponent.
The returned interval specifies the minimum and maximum values that can be passed to Value.
Definition at line 92 of file GammaFeature.cs.
|
getset |
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. Valid values are within the range returned by Range.
| IcvOutOfRangeException | The gamma value is outside the valid range. |
Definition at line 80 of file GammaFeature.cs.