switch (photometricInterpretation) {
case 0:
case 1:
final boolean invert = photometricInterpretation == 0;
return new PhotometricInterpreterBiLevel(samplesPerPixel,
bitsPerSample, predictor, width, height, invert);
case 3: // Palette
{
final int[] colorMap = directory.findField(
TiffTagConstants.TIFF_TAG_COLOR_MAP, true)