ColorTransform
Module used for transformation of color coordinates. The RGB to CIE L*a*b* transformation is based on ITU-R Recommendation BT.709 using the D65 white point reference. The RGB to rgI transform maps black points on gray.
Example XML definition
Example
<module class = "ColorTransform" name = "ColorTransform" transform = "RGB->Lab" />
Parameters
Name | Description | Type | Default |
---|---|---|---|
class | The class name for the module; must be "ColorTransform". | string | |
name | The name of this instance of the module. | string | |
transform | The type of transform | choices: RGB->Lab RGB->XYZ Lab->RGB XYZ->RGB RGB->rgI | RGB->Lab |
scale | Scaling of final values | float | 1.0 |
Module Connections
Inputs
Name | Description |
---|---|
INPUT0 | The first input channel |
INPUT1 | The second input channel |
INPUT2 | The third input channel |
Outputs
Name | Description |
---|---|
OUTPUT0 | The first output. |
OUTPUT1 | The second output. |
OUTPUT2 | The third output. |
Limitations
The "XYZ->RGB" and "Lab->RGB" transformations have not been tested.
References
Commission Internationale de l'Eclairage (CIE) (1978). Official recommendation on color spaces, color difference and metric color terms, Supplement No. 2 for CIE-Publication No. 15, Colorimetry (E-1.3.1), 1971.
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
ColorTransform.h
ColorTransform.cc
ColorTransform.ikc