public class Decompressor extends Object
Modifier and Type | Field and Description |
---|---|
private Attributes |
dataset |
private BufferedImage |
decompressedImage |
private ImageParams |
imageParams |
private ImageReader |
imageReader |
private static Logger |
LOG |
private PatchJPEGLS |
patchJPEGLS |
private Object |
pixels |
private ImageReadParam |
readParam |
private TransferSyntaxType |
tsType |
private String |
tsuid |
Constructor and Description |
---|
Decompressor(Attributes dataset,
String tsuid) |
Modifier and Type | Method and Description |
---|---|
private void |
close(ImageInputStream iis) |
ImageInputStream |
createImageInputStream() |
ImageInputStream |
createImageInputStream(int frameIndex) |
boolean |
decompress() |
static boolean |
decompress(Attributes dataset,
String tsuid) |
protected BufferedImage |
decompressFrame(ImageInputStream iis,
int index) |
void |
dispose() |
long |
getEstimatedNeededMemory() |
void |
writeFrameTo(ImageInputStream iis,
int frameIndex,
OutputStream out) |
void |
writeTo(OutputStream out) |
private final Attributes dataset
private final TransferSyntaxType tsType
private ImageParams imageParams
private BufferedImage decompressedImage
private ImageReader imageReader
private ImageReadParam readParam
private PatchJPEGLS patchJPEGLS
public Decompressor(Attributes dataset, String tsuid)
public void dispose()
public boolean decompress()
public static boolean decompress(Attributes dataset, String tsuid)
public void writeTo(OutputStream out) throws IOException
IOException
private void close(ImageInputStream iis)
public void writeFrameTo(ImageInputStream iis, int frameIndex, OutputStream out) throws IOException
IOException
protected BufferedImage decompressFrame(ImageInputStream iis, int index) throws IOException
IOException
public ImageInputStream createImageInputStream() throws IOException
IOException
public ImageInputStream createImageInputStream(int frameIndex) throws IOException
IOException
public long getEstimatedNeededMemory()
Copyright © 2017 dcm4che.org. All rights reserved.