public class DicomImageDecoderGDCM extends java.lang.Object implements DicomImageDecoder
Constructor and Description |
---|
DicomImageDecoderGDCM()
Creates a GDCM decoder
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDecode(DicomHeader header) |
boolean |
decodeFrames(DicomHeader header,
BinaryFileInputStream bin,
java.util.List<DicomPixelBuffer> frames)
Tries to decodes DICOM pixel data into a usable buffer, based on information
contained in the DICOM header.
|
static byte[] |
GetAsByte(gdcm.Image input) |
static short[] |
GetAsShort(gdcm.Image input) |
boolean |
isValid() |
public boolean isValid()
public boolean canDecode(DicomHeader header)
public static byte[] GetAsByte(gdcm.Image input)
public static short[] GetAsShort(gdcm.Image input)
public boolean decodeFrames(DicomHeader header, BinaryFileInputStream bin, java.util.List<DicomPixelBuffer> frames)
DicomImageDecoder
decodeFrames
in interface DicomImageDecoder
header
- informs the decoder of the transfer syntax, and any
intensity transformsbin
- binary input stream of current file, at start of pixel dataframes
- decoded pixel buffers (raw format) for frames