
Thread
2003.11.27 19:10 "[Tiff] Re: Bug in LogLuv", by Greg Ward
Is there an option in libtiff to convert Your format to 32-bit floats or 16-bit ints other than the 8-bit output I optain currently with libtiffs fallback functionality?
This would help me supporting this format in cinepaint.
To talk to the library in 32-bit floats (CIE XYZ components or Y for grayscale), you need to set the tag:
TIFFSetField(tif, TIFFTAG_SGILOGDATAFMT, SGILOGDATAFMT_FLOAT);
This and other tips are available on my web pages at:
http://www.anyhere.com/gward/pixformat/tiffluv.html
If you need to convert to and from an RGB representation, you can follow the recommendations in my JGT paper:
http://www.anyhere.com/gward/papers/jgtpap1.pdf
-Greg