PANDORE Version 6 GREYC-IMAGE

pcmyk2rgb



Converts Cyan-Magenta-Yellow-Key color image to RGB color image.



Synopsis

pcmyk2rgb [-m mask] [im_in|-] [im_out|-]

Description

pcmyk2rgb converts color image from the color space CMYK (Cyan, Magenta, Yellow, Key) to the color space RGB (Red, Green, Blue).

The CMYK to RGB conversion formula is:
The red (R) color is calculated from the cyan (C) and black (K) colors:

R = 255 * (1-C/255) * (1-K/255)

The green color (G) is calculated from the magenta (M) and black (K) colors:

G = 255 * (1-M/255) * (1-K/255)

The blue color (B) is calculated from the yellow (Y) and black (K) colors:

B = 255 * (1-Y/255) * (1-K/255)

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Converts butterfly.pan from rgb to cmyk, and then from cmyk to rgb.

   prgb2cmyk butterfly.pan a.pan
   pcmyk2rgb a.pan b.pan

See also

Color, prgb2cmyk

C++ prototype

Errc PCmyk2Rgb( const Imx2duc &im_in, Imc2duc &im_out );

Version française

Changement d'espace couleur de Cyan-Magenta-Yellow-Key vers RVB.


Author: Régis Clouard