Hi,
Thanks for so quickly answering.

Am 05.02.03, 11:21 +0100 schrieb Mart� Maria:

>
> Hi,
>
> > I wanna convert from RGB to Lab and back.
> > What goes wrong with my data?
>
> If you declare buffer as being WORD:
>
> > unsigned short InputBuffer[3];
> > unsigned short OutputBuffer[3];
>
> Then you should use TYPE_RGB_16, TYPE_Lab_16 instead.

Ok I just restart from ground. The types of the buffers should be:
  unsigned char InputBuffer[3];
  unsigned char OutputBuffer[3];
That works with TYPE_RGB_8 and TYPE_Lab_8.
But the results are strange.

I get following:
L 126   a 126   b 126   ->      R 114   G 119   B 120
L 253   a 0     b 0     ->      R 0     G 255   B 255
L 255   a 127   b 255   ->      R 255   G 253   B 0
... could be ok with Lab 128,128,128 defined as neutral grey.

Now I have Tiffs from PS6 and they are lock strange:
L 213   a 255   b 247 -> R 255   G 0     B 0    light Clouds (red)
L 183   a 26    b 58  -> R 0     G 220   B 255  sand with sun (light blue)
L 112   a 44    b 49  -> R 0     G 136   B 238  sand in the shadow (blue)

Is Lab allways Lab or sometimes different?
I obtain the same with unsigned short's.
I only could imagine something like this: L = unsigned
                                          a = signed (+/-)
                                          b = signed (+/-)

??
Kai-Uwe



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to