RGB to CIE L*a*b Conversion

Updated Nov 7, 2019

Reported In

Software

  • Vision Development Module
  • LabVIEW

Issue Details

I use IMAQ RGBToColor 2.vi to convert RGB to CIE L*a*b, but the result is different with the result I obtained from the conversion I found from other websites. 

Solution

This is because the VI does not perform linearization to remove the non-linearity introduced by gamma correction which other algorithm might be doing.
 

Additional Information


If you wish to convert sRGB to CIE L*a*b in LabVIEW, you can obtain the LabVIEW code from La*b* color conversion . There are different ways to do the conversion. The conversion in the LabVIEW code attached in the link converts from sRGB >> linear RGB >> XYZ >> CIE L*a*b.