AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
July 1998

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

1998.07.08 15:09 "CIE L*a*b* color", by Joe Longo
1998.07.09 12:53 "Re: CIE L*a*b* color", by Martí María

1998.07.09 12:53 "Re: CIE L*a*b* color", by Martí María

   Hello,

> The library has a TIFFTAG_PHOTOMETRIC value for CIE  L*a*b* color,
> 
> #define	    PHOTOMETRIC_CIELAB		8	/* !1976 CIE L*a*b* */
> 
> but no code for color conversion (to RGB in particular)
> Has anyone used this?
> I'm wishing for a simple conversion of the 3 bytes of  L*a*b* to RGB?
> 
	
	I'm sorry to say that there is no "simple" way to covert from/to Lab <->
RGB.
	CIE L*a*b is a device independent way to describe colors, due that, the
conversion process
	involves knowing some info about the target device RGB. White point, gamma
response,
	primary chromacities... etc.

	You can find a very useful discussion about this stuff on:

	http://home.inforamp.net/~poynton/GammaFAQ.html
	
	and

	http://home.inforamp.net/~poynton/ColorFAQ.html
	
	I'm currently doing this using output ICC profiles. Check if your target
platform has Color Management System,
	(Windows and Mac both have CMS at system level). The CMS can handle
transparently this conversion for you.

	Regards.
	Martí Maria
	ICR