PANDORE Version 6 GREYC-IMAGE

pcmyk2rgb



Changement d'espace couleur de l'espace CMYK (Cyan-Magenta-Yellow-Key) à l'espace RVB.



Synopsis

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

Description

L'opérateur pcmyk2rgb permet de changer d'espace couleur de l'espace Cyan, Magenta, Yellow, Key, vers l'espace Rouge-Vert-Bleu

La conversion procède selon l'algorithme suivant:
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)

Entrées

Sorties

Résultat

Retourne SUCCESS ou FAILURE.

Exemples

Convertit butterfly.pan de rgb en cmyk, puis de cmyk en rgb:

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

Voir aussi

Color, prgb2cmyk

Prototype C++

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

Auteur: Régis Clouard