How Lab values are stored? I read that in the last version ImageMagick-6.8.8-Q16, the a* value and b* value are unsigned, but I don't find a correct correlation!
For example: in a tiff image with lab colorspace I have L=50 a=-10 b =-10, and pixel->red =34504 pixel->green =28257pixel->blue =30184.
What I do wrong?!
David
PixelPacket Lab values
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: PixelPacket Lab values
The values are biased so that they can be represented as non-negative integers (for non-hdri compile). I believe that in HDRI compile, they are not biased. You will need to look at the code to see how that is done.