Compressor
for non-stream compression.@Deprecated public class StreamCompressor extends StreamDecompressor
Modifier and Type | Field and Description |
---|---|
private int |
avgPixelValueBlockSize
Deprecated.
|
private BufferedImage |
bi2
Deprecated.
|
private ImageWriter |
compressor
Deprecated.
|
private ImageWriteParam |
compressParam
Deprecated.
|
private PatchJPEGLS |
compressPatchJPEGLS
Deprecated.
|
private TransferSyntaxType |
compressTsType
Deprecated.
|
private int |
frameIndex
Deprecated.
|
private ImageParams |
imageParams
Deprecated.
|
private static Logger |
LOG
Deprecated.
|
private int |
maxPixelValueError
Deprecated.
|
private ImageReader |
verifier
Deprecated.
|
private ImageReadParam |
verifyParam
Deprecated.
|
coerceAttributes, dataset, decompressor, in, out, patchJPEGLS, pixeldataProcessed, tsType, tsuid
Constructor and Description |
---|
StreamCompressor(DicomInputStream in,
String inTransferSyntaxUID,
DicomOutputStream out)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private Property[] |
cat(Property[] a,
Property[] b)
Deprecated.
|
boolean |
compress(String compressTsuid,
Property... params)
Deprecated.
|
void |
dispose()
Deprecated.
|
protected void |
onPixelData(DicomInputStream dis,
Attributes attrs)
Deprecated.
|
private void |
readFrame(DicomInputStream dis,
DataBuffer db,
byte[] buf)
Deprecated.
|
private void |
verify(ImageInputStream iis,
BufferedImage bi)
Deprecated.
|
protected void |
writeFrame(BufferedImage bi)
Deprecated.
|
coerce, decompress, decompressFrames, getCoerceAttributes, setCoerceAttributes
private TransferSyntaxType compressTsType
private ImageWriter compressor
private PatchJPEGLS compressPatchJPEGLS
private ImageWriteParam compressParam
private int maxPixelValueError
private int avgPixelValueBlockSize
private ImageReader verifier
private ImageReadParam verifyParam
private ImageParams imageParams
private BufferedImage bi2
private int frameIndex
public StreamCompressor(DicomInputStream in, String inTransferSyntaxUID, DicomOutputStream out)
public boolean compress(String compressTsuid, Property... params) throws IOException
IOException
public void dispose()
dispose
in class StreamDecompressor
protected void onPixelData(DicomInputStream dis, Attributes attrs) throws IOException
onPixelData
in class StreamDecompressor
IOException
private void readFrame(DicomInputStream dis, DataBuffer db, byte[] buf) throws IOException
IOException
protected void writeFrame(BufferedImage bi) throws IOException
writeFrame
in class StreamDecompressor
IOException
private void verify(ImageInputStream iis, BufferedImage bi) throws IOException
IOException
Copyright © 2017 dcm4che.org. All rights reserved.