PANDORE Version 6 | GREYC-IMAGE |
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)
Returns SUCCESS or FAILURE.
Converts butterfly.pan from rgb to cmyk, and then from cmyk to rgb.
prgb2cmyk butterfly.pan a.pan pcmyk2rgb a.pan b.pan
Changement d'espace couleur de Cyan-Magenta-Yellow-Key vers RVB.
Author: Régis Clouard