Hi
The easiest way to do that is to create a color transform going RGB to
RGB, just
what you want to be in tje LUT. Then, iterate across all nodes and
compute value
of each node by calling the transform. You need to accommodate ranges,
but that is all.
i.e.,
for (r=0; r < nodes; r++)
for(g=0; g < nodes; g++)
for (b=0; b < nodes; b++) {
goto node (r, g, b);
input = (rgb * 1.0) / (nodes - 1);
cmsDoTransform(xform, input, output);
store node (rgb, output);
}
Use TYPE_RGB_DBL as format specifier, this will give all values in
floating point, which is way easier to deal with. To change the range
just change the factors.
Regards
Marti
Quoting ST <[email protected]>:
> Hi all,
>
> I'm very interested in using LittleCMS to calculate coefficients for a
> colour space conversion lookup table (LUT).
>
> The hardware LUT can accept either:
>
> - RGB input and output as a double in the range 0.0 - 1.0
> - RGB input and output as an int in the range 0 - 1023
>
> I'm hoping to use two ICC files and take an input RGB triplet and create an
> output RGB triplet in the new colour space. Is there a method for setting
> the input and output range when using LittleCMS?
>
>
> Best Regards
>
>
> Simon
------------------------------------------------------------------------------
_______________________________________________
Lcms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lcms-user