#184 Re-read the spec, that says ICC and ITU lab uses D50 by default.

This commit is contained in:
Harald Kuhr 2015-10-22 22:14:48 +02:00
parent 302035443d
commit e62922eb95

View File

@ -1585,8 +1585,9 @@ public class TIFFImageReader extends ImageReaderBase {
case TIFFExtension.PHOTOMETRIC_CIELAB: case TIFFExtension.PHOTOMETRIC_CIELAB:
case TIFFExtension.PHOTOMETRIC_ICCLAB: case TIFFExtension.PHOTOMETRIC_ICCLAB:
case TIFFExtension.PHOTOMETRIC_ITULAB: case TIFFExtension.PHOTOMETRIC_ITULAB:
// TODO: Whitepoint may be encoded in separate tag
CIELabColorConverter converter = new CIELabColorConverter( CIELabColorConverter converter = new CIELabColorConverter(
photometricInterpretation != TIFFExtension.PHOTOMETRIC_ITULAB photometricInterpretation == TIFFExtension.PHOTOMETRIC_CIELAB
? Illuminant.D65 ? Illuminant.D65
: Illuminant.D50 : Illuminant.D50
); );
@ -1653,8 +1654,9 @@ public class TIFFImageReader extends ImageReaderBase {
case TIFFExtension.PHOTOMETRIC_CIELAB: case TIFFExtension.PHOTOMETRIC_CIELAB:
case TIFFExtension.PHOTOMETRIC_ICCLAB: case TIFFExtension.PHOTOMETRIC_ICCLAB:
case TIFFExtension.PHOTOMETRIC_ITULAB: case TIFFExtension.PHOTOMETRIC_ITULAB:
// TODO: Whitepoint may be encoded in separate tag
CIELabColorConverter converter = new CIELabColorConverter( CIELabColorConverter converter = new CIELabColorConverter(
photometricInterpretation != TIFFExtension.PHOTOMETRIC_ITULAB photometricInterpretation == TIFFExtension.PHOTOMETRIC_ITULAB
? Illuminant.D65 ? Illuminant.D65
: Illuminant.D50 : Illuminant.D50
); );