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

NameDescriptionTypeDefault
classThe class name for the module; must be "ColorTransform".string
nameThe name of this instance of the module.string
transformThe type of transformchoices:
RGB->Lab
RGB->XYZ
Lab->RGB
XYZ->RGB
RGB->rgI
RGB->Lab
scaleScaling of final valuesfloat1.0

Module Connections

Inputs

NameDescription
INPUT0The first input channel
INPUT1The second input channel
INPUT2The third input channel

Outputs

NameDescription
OUTPUT0The first output.
OUTPUT1The second output.
OUTPUT2The 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

blog comments powered by Disqus