PANDORE Version 6 GREYC-IMAGE

pxyz2luv



Converts XYZ color image to L*u*v color image.



Synopsis

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

Description

pxyz2luv converts color image from the color space XYZ to the color space L*u*v (L: Luminancy, u,v : chrominancy).

Luv is very used in calculation of small colors or color differences, especially with additive colors.

    L* = 116*((Y/Yn)^(1/3)) whether Y/Yn>0.008856
    L* = 903.3*Y/Yn whether Y/Yn<=0.008856
    u* = 13*(L*)*(u'-u'n)
    v* = 13*(L*)*(v'-v'n)

where u'=4*X/(X+15*Y*+3*Z) and v'=9*Y/(X+15*Y+3*Z)
and u'n and v'n have the same definitions for u' and v' but applied to the white point reference given par the parameter primaries. So, you have:
u'n=4*Xn/(Xn+15*Yn*+3*Zn) and v'n=9*Yn/(Xn+15*Yn+3*Zn).

The output image is of float type.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

   pxyz2luv 4 a.pan b.pan

See also

Color

C++ prototype

Errc PXYZ2LUV( const Imc2dsf &im_in, Imc2dsf &im_out, int primaries );

Version française

Changement d'espace couleur de XYZ vers Luv.


Author: Olivier Lezoray