You are here : matlabImage Processinglab2double

lab2double() - Image Processing

labd = lab2double(lab) converts
an M-by-3 or M-by-N-by-3 array of  L*a*b* color
values to class double. The output array labd has
the same size as lab.The Image Processing Toolbox™ software follows the convention
that double-precision L*a*b* arrays contain 1976
CIE L*a*b* values. L*a*b* arrays
that are uint8 or uint16 follow
the convention in the ICC profile specification (ICC.1:2001-4, www.color.org)
for representing L*a*b* values as unsigned 8-bit
or 16-bit integers. The ICC encoding convention is illustrated by
these tables.Value (L*)uint8
Valueuint16 Value
0.000
100.025565280
100.0 + (25500/65280)None65535
Value (a* or b*)uint8
Valueuint16 Value
-128.000
0.012832768
127.0 25565280
127.0 + (255/256)None65535


Syntax

labd = lab2double(lab)


Example

lab2double(uint8([255 128 128]))
ans =

   100     0     0


Output / Return Value


Limitations


Alternatives / See Also


Reference