
Public Member Functions | |
| ColorCorrectionFeature (ColorMatrixTransformationModule module) | |
| Creates a ColorCorrectionFeature for an existing color matrix transformation module. | |
| void | ResetToDefault () |
| Resets the color correction matrix to the default. | |
Properties | |
| ColorCorrectionMatrix | Matrix [get, set] |
| The current Types.ColorCorrectionMatrix. | |
| bool | IsEnabled [get, set] |
| Enables or disables the feature. | |
Color correction applies a 3x3 Types.ColorCorrectionMatrix to the image.
Color correction is typically used to convert colors from a camera sensor's native RGB space to a standard color space, or to perform color balancing and correction.
When performing color correction, a 3x3 color correction matrix is applied to the color values of the image.
The color correction matrix is represented as a 3x3 float array:
Each element m_ij defines how much of the input channel j contributes to the output channel i. For example, m_01 is the contribution of the green input to the red output.
The matrix is applied as follows:
where red_value_in, green_value_in, and blue_value_in are the input red, green, and blue channel values, respectively, and red_value_out, green_value_out, and blue_value_out are the corresponding corrected output values.
All RGB values are normalized to the range [0.0, 1.0].
Definition at line 65 of file ColorCorrectionFeature.cs.
|
inline |
Creates a ColorCorrectionFeature for an existing color matrix transformation module.
| module | Reference to the underlying ColorMatrixTransformationModule. |
Definition at line 75 of file ColorCorrectionFeature.cs.
|
inline |
Resets the color correction matrix to the default.
Implements IFeature.
Definition at line 103 of file ColorCorrectionFeature.cs.
|
getset |
Enables or disables the feature.
Implements IFeature.
Definition at line 90 of file ColorCorrectionFeature.cs.
|
getset |
The current Types.ColorCorrectionMatrix.
Definition at line 83 of file ColorCorrectionFeature.cs.