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

Inputs

Outputs

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