siox and lab
Boudewijn Rempt
boud at valdyas.org
Wed Mar 29 14:11:51 CEST 2006
On Wednesday 29 March 2006 12:04, Michael Thaler wrote:
> On Wednesday 29 March 2006 11:08, Boudewijn Rempt wrote:
> > Better convert to Lab using Krita, and then convert the shorts to floats
> > -- that way you have got cs-independence from the outset. I really don't
> > look forward to more rgb8-only code in Krita
>
> I will have a look at it. The problem could be that the floats in
>
> typedef struct
> {
> gfloat l;
> gfloat a;
> gfloat b;
> gint cardinality;
> } lab;
>
> could be between zero and one. I will have a look at the RGB->LAB code in
> gimp.
Well, that's no problem is it? Take a look at the code in kis_wet_colorspace:
that contains routines to convert from short to double and back, where the
double is between 0 and 1, iirc.
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20060329/283b790f/attachment.pgp
More information about the kimageshop
mailing list