dataType = bitsAllocated <= 8 ? DataBuffer.TYPE_BYTE
: DataBuffer.TYPE_USHORT;
pmi = PhotometricInterpretation.fromString(
ds.getString(Tag.PhotometricInterpretation, "MONOCHROME2"));
if (pixeldata instanceof BulkData) {
iis.setByteOrder(ds.bigEndian()
? ByteOrder.BIG_ENDIAN
: ByteOrder.LITTLE_ENDIAN);
this.frameLength = pmi.frameLength(width, height, samples, bitsAllocated);
this.pixeldata = (BulkData) pixeldata;
} else {