Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

rgb to CIE LAB and reverse

In Imaq there is a Vi  called rgbtocolor2.vi that is useful to convert an RGB into Cie lab color code. Is there another vi in order to convert a color in the CIE lab color space into RGB ?

0 Kudos
Message 1 of 3
(6,178 Views)

I'm pretty sure there isn't a VI to do the reverse conversion, so you'll need to code it yourself.  The NI implementation of La*b* seems to be a little non-standard - see http://forums.ni.com/t5/LabVIEW/La-b-colour-conversion/td-p/1646458 - I think the issue is that LabVIEW doesn't do a gamma correction, whereas most other software does.

 

0 Kudos
Message 2 of 3
(6,174 Views)

Hello Jacqmax,

 

GregS is right, there is no this function. You will have to program by your own. On the next link you'll find the exact formula:

 

http://www.easyrgb.com/index.php?X=MATH

 

Regards,

0 Kudos
Message 3 of 3
(6,154 Views)