mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-04 11:26:44 -04:00
#184 Re-read the spec, that says ICC and ITU lab uses D50 by default.
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user