directory, photometricInterpretation, bitsPerPixel,
bitsPerSample, predictor, samplesPerPixel, width, height);
TiffImageData imageData = directory.getTiffImageData();
DataReader dataReader = imageData.getDataReader(entries,
photometricInterpreter, bitsPerPixel, bitsPerSample, predictor,
samplesPerPixel, width, height, compression);
dataReader.readImageData(result);
photometricInterpreter.dumpstats();
return result;
}