Am 25.08.11, 11:13 -0700 schrieb Tim Ruddick:
> I'm trying to figure out how to apply a 3D color lookup table to a source 
> image in 8-bit sRGB space to result in a new image also in 8-bit sRGB space.

> With the identity curves in place, it saves a file, but the file doesn't 
> appear to be useable as an ICC profile from, say, Photoshop. Saving the ICC 
> file isn't crucial for my current needs, but generating a transform is.

Without looking at your code in depth, you find a examples on how to 
create a lcms transform from a non ICC transformation (thats what I 
understand you mean with 3D LUT). The code is in the Oyranos' lcm2 module:
http://www.oyranos.org/scm?p=oyranos.git;a=blob;f=modules/oyranos_cmm_lcm2.c;h=b5f3e6ba1a33de457460213a8bca58c2a982e2c1;hb=HEAD#l1071

The lcm2GamutCheckAbstract works in 16bit and float precissions.
In gamutCheckSampler16 and gamutCheckSamplerFloat is a ICC colour 
transform used, which can be replaces with a 3D LUT code.

I think there is documentation for the according lcms APIs in the source 
code package:
https://github.com/mm2/Little-CMS/tree/master/doc


hope that helps
Kai-Uwe Behrmann
-- 
developing for colour management 
www.behrmann.name + www.oyranos.org


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to