next up previous contents
Next: YIQ Conversion Up: 12.2.4 The Color Matrix Previous: Hue Rotation

CMY Conversion

The CMY color space describes colors in terms of the subtractive primaries: cyan, magenta, and yellow. CMY is used mainly for hardcopy devices such as color printers. Generally, the conversion from RGB to CMY follows the equation:[14]
displaymath8031
CMY conversion may be performed using the color matrix or a scale and bias operation. The conversion is equivalent to a scale by -1 and a bias by +1. Using the 4x4 color matrix, the equation may be restated as:
displaymath8032
Here, we require that the incoming alpha channel be equal to 1. If the source is RGB, the 1 will be added automatically in the format conversion stage of the pipeline.

A related color space, CMYK, uses a fourth channel (K) to represent black. Since conversion to CMYK requires a min() operation, it cannot be performed using the color matrix.

An extension, CMYKA, also supports conversion to and from CMYK and CMYKA. This extension is currently supported by Evans & Sutherland.



David Blythe
Thu Jul 17 21:24:28 PDT 1997