Hi, Lcms does use ICC encoding for Lab, which is a weird format. You may want to write a used-defined encoder to deal with your particular Lab representation. Take a look on tifficc for a sample on how to do this.
The ICC Lab encoding is documented in the ICC spec, and also on cmspcs.c CIELAB (16 bit) L* 0 -> 100.0 0x0000 -> 0xff00 CIELAB (16 bit) a* -128.0 -> +127.996 0x0000 -> 0x8000 -> 0xffff CIELAB (16 bit) b* -128.0 -> +127.996 0x0000 -> 0x8000 -> 0xffff Regards Marti, Quoting Paul Cezanne <p...@fineeyecolor.com>: > I think I've missed this in the docs and the sample code, but my > application is working fine for 8 bit colors and now I need to make it > work for 16 bit values. > > Just exactly does lcms expect for 16 bit Lab? > > In particular, I have a pixel with L = 100 = 0x8000 a=b= 0 = 0x4000, > how do I setup lcms to color convert that? TYPE_Lab_16 didn't work > and TYPE_Lab_DBL is clearly wrong. > > I'm trying various encodings but I thought I'd ask the experts. Thanks! > > Paul > > (Sorry if you get this twice, I sent it before I was a member and it > got sent to moderation, but that was 2 days ago and I'd love to be > coding again soon on this. Thanks!) > > > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Lcms-user mailing list > Lcms-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lcms-user > ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user