PANDORE Version 6 GREYC-IMAGE

pxyz2lab



Converts XYZ color image to Lab color image.



Synopsis

pxyz2lab primaries [-m mask] [im_in|-] [im_out|-]

Description

pxyz2lab converts color image from the color space XYZ to the color space Lab.

LAB defines 3 components:

The conversion uses the matrix:

   L=116*((Y/Yn)^(1/3)) if Y/Yn>0.008856
   L=903.3*Y/Yn if Y/Yn<=0.008856
   a=500*(f(X/Xn)-f(Y/Yn))
   b=200*(f(Y/Yn)-f(Z/Zn))

where
   if Y/Yn>0.008856 f(t)=t^(1/3) 
   else f(t)=7.787*t+16/116

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

   pxyz2lab a.pan b.pan

See also

Color

C++ prototype

Errc PXYZ2LAB( const Imc2dsf &im_in, Imc2dsf &im_out );

Version française

Changement d'espace couleur de XYZ vers Lab.


Author: Olivier Lezoray