PANDORE Version 6 |
GREYC-IMAGE |
pxyz2rgb
Converts XYZ color image to RGB color image.
Synopsis
pxyz2rgb primaries [-m mask] [im_in|-] [im_out|-]
Description
pxyz2rgb converts color image from the
color space XYZ to the color space RGB.
The conversion uses the conversion matrix. For example,
for the case primaries = 4 (illuminant C primaries NTSC):
| 1.910 -0.532 -0.288 |
| -0.985 1.999 -0.028 |
| 0.058 -0.118 0.898 | * 255
Parameters
- primaries is an integer from [0..6]
which defines the type of conversion:
- 0: illuminant E
- 1: illuminant primaries CIE-DIN
- 2: illuminant A primaries macbeth colour chart
- 3: illuminant A primaries CIE
- 4: illuminant C primaries NTSC
- 5: illuminant C primaries CIE
- 6: illuminant D65.
Inputs
- im_in: a XYZ color image.
Outputs
- im_out: a RGB color image.
Result
Returns SUCCESS or FAILURE.
Examples
Converts parrot.pan from rgb to xyz and conversely:
prgb2xyz 4 parrot.pan a.pan
pxyz2rgb 4 a.pan b.pan
See also
Color,
prgb2xyz
C++ prototype
Errc PXYZ2RGB( const Imc2duc &im_in, Imc2dsf &im_out, int primaries );
Version française
Changement d'espace couleur de XYZ vers RGB.
Author: Régis Clouard