mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 03:55:28 -04:00
#184 Re-read the spec, that says ICC and ITU lab uses D50 by default.
This commit is contained in:
parent
302035443d
commit
e62922eb95
@ -1585,8 +1585,9 @@ public class TIFFImageReader extends ImageReaderBase {
|
||||
case TIFFExtension.PHOTOMETRIC_CIELAB:
|
||||
case TIFFExtension.PHOTOMETRIC_ICCLAB:
|
||||
case TIFFExtension.PHOTOMETRIC_ITULAB:
|
||||
// TODO: Whitepoint may be encoded in separate tag
|
||||
CIELabColorConverter converter = new CIELabColorConverter(
|
||||
photometricInterpretation != TIFFExtension.PHOTOMETRIC_ITULAB
|
||||
photometricInterpretation == TIFFExtension.PHOTOMETRIC_CIELAB
|
||||
? Illuminant.D65
|
||||
: Illuminant.D50
|
||||
);
|
||||
@ -1653,8 +1654,9 @@ public class TIFFImageReader extends ImageReaderBase {
|
||||
case TIFFExtension.PHOTOMETRIC_CIELAB:
|
||||
case TIFFExtension.PHOTOMETRIC_ICCLAB:
|
||||
case TIFFExtension.PHOTOMETRIC_ITULAB:
|
||||
// TODO: Whitepoint may be encoded in separate tag
|
||||
CIELabColorConverter converter = new CIELabColorConverter(
|
||||
photometricInterpretation != TIFFExtension.PHOTOMETRIC_ITULAB
|
||||
photometricInterpretation == TIFFExtension.PHOTOMETRIC_ITULAB
|
||||
? Illuminant.D65
|
||||
: Illuminant.D50
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user