Convert L*a*b* data to uint8 precision.
lab must be a L*a*b* image or colormap, i.e., its dimensions must be MxNx3xK or Mx3. Its type must be double, single, uint16, or uint8.
When converted from double or single, L* values must range from 0 to 100, while a* and b* range from -128 to 127. Values outside this range will be capped.
See also: lab2double, lab2rgb, lab2single, lab2uint8, lab2uin16, lab2xyz.
Package: image