public class CompressedFrameDecoder
extends java.lang.Object
The CompressedFrameDecoder class implements decompression of selected frames
in various supported Transfer Syntaxes once already extracted from DICOM encapsulated images.
| Constructor and Description |
|---|
CompressedFrameDecoder(java.lang.String transferSyntaxUID,
byte[][] frames,
int bytesPerSample,
java.awt.color.ColorSpace colorSpace) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canDecompress(java.io.File file)
Returns a whether or not a DICOM file contains pixel data that can be decompressed using this class.
|
void |
dispose() |
boolean |
getColorSpaceConvertedToRGBDuringDecompression()
Returns a whether or not the color space will be converted to RGB during compression if it was YBR in the first place.
|
java.awt.image.BufferedImage |
getDecompressedFrameAsBufferedImage(int f) |
javax.imageio.metadata.IIOMetadata |
getIIOMetadata(int frame)
Returns a reference to the
IIOMetadata object for the selected frame, or null if none was available during reading. |
public CompressedFrameDecoder(java.lang.String transferSyntaxUID,
byte[][] frames,
int bytesPerSample,
java.awt.color.ColorSpace colorSpace)
throws DicomException
DicomExceptionpublic static boolean canDecompress(java.io.File file)
Returns a whether or not a DICOM file contains pixel data that can be decompressed using this class.
file - the filepublic javax.imageio.metadata.IIOMetadata getIIOMetadata(int frame)
Returns a reference to the IIOMetadata object for the selected frame, or null if none was available during reading.
frame - the frame number, from 0IIOMetadata object, or null.public boolean getColorSpaceConvertedToRGBDuringDecompression()
Returns a whether or not the color space will be converted to RGB during compression if it was YBR in the first place.
public java.awt.image.BufferedImage getDecompressedFrameAsBufferedImage(int f)
throws DicomException,
java.io.IOException
DicomExceptionjava.io.IOExceptionpublic void dispose()
throws java.lang.Throwable
java.lang.Throwable