public class Decompressor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
banded |
protected BufferedImage |
bi |
protected int |
bitsAllocated |
protected int |
bitsStored |
protected int |
cols |
protected Attributes |
dataset |
protected ImageReader |
decompressor |
protected File |
file |
protected int |
frameLength |
protected int |
frames |
protected ImageDescriptor |
imageDescriptor |
protected int |
length |
protected PatchJPEGLS |
patchJpegLS |
protected Fragments |
pixeldataFragments |
protected Photometric |
pmi |
protected Photometric |
pmiAfterDecompression |
protected ImageReadParam |
readParam |
protected int |
rows |
protected int |
samples |
protected boolean |
signed |
protected TransferSyntaxType |
tstype |
protected String |
tsuid |
| Constructor and Description |
|---|
Decompressor(Attributes dataset,
String tsuid) |
| Modifier and Type | Method and Description |
|---|---|
protected BufferedImage |
createBufferedImage(int bitsStored,
boolean banded,
boolean signed) |
FileImageInputStream |
createImageInputStream() |
boolean |
decompress() |
static boolean |
decompress(Attributes dataset,
String tsuid) |
protected BufferedImage |
decompressFrame(ImageInputStream iis,
int index) |
void |
dispose() |
void |
writeFrameTo(ImageInputStream iis,
int frameIndex,
OutputStream out) |
void |
writeTo(OutputStream out) |
protected final Attributes dataset
protected final String tsuid
protected final TransferSyntaxType tstype
protected Fragments pixeldataFragments
protected File file
protected int rows
protected int cols
protected int samples
protected Photometric pmi
protected Photometric pmiAfterDecompression
protected int bitsAllocated
protected int bitsStored
protected boolean banded
protected boolean signed
protected int frames
protected int frameLength
protected int length
protected BufferedImage bi
protected ImageReader decompressor
protected ImageReadParam readParam
protected PatchJPEGLS patchJpegLS
protected ImageDescriptor imageDescriptor
public Decompressor(Attributes dataset, String tsuid)
public static boolean decompress(Attributes dataset, String tsuid)
public void dispose()
public boolean decompress()
protected BufferedImage createBufferedImage(int bitsStored, boolean banded, boolean signed)
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic FileImageInputStream createImageInputStream() throws IOException
IOExceptionpublic void writeFrameTo(ImageInputStream iis, int frameIndex, OutputStream out) throws IOException
IOExceptionprotected BufferedImage decompressFrame(ImageInputStream iis, int index) throws IOException
IOExceptionCopyright © 2020. All rights reserved.