Open freudi74 opened 8 years ago
Avtually, also read ICCLab TIFFs... For writing, always go for CIELab ? Or always for ICCLab?
NOT supporting ITULab (Photometric Representation=10, described in RFC2301) for now. Might add that later. That format is used for color fax, but might add the assumption, that all ColorFax options specifications in RFC2301 are supported (12 bits, for example), which will not be the case for now. Don't want to open the legacy support issue can of worms for now if any other features are required to correctly read ITULab actually. Need to understand the full specification first.
DONE READING. Testing is another beast. Where to get good images from? I only have one known good tiff: PHOTOMETRIC_CIELAB, 8 bitsPerSample, no alpha, contingous. Tested with that, works like a charme. Sidenote: obviously GIMP and some other linux tools have problems reading CIELab TIFFS, they show a strange color (bad white point ?). Writing doesn't work yet.
Read CIELAB TIFFs and store them internally in 32 bit (float) per channel (although image files might be 8, 16 bit). Always write as 16 bit ?