public class DicomImageDecoderImageMagick extends java.lang.Object implements DicomImageDecoder
Constructor and Description |
---|
DicomImageDecoderImageMagick() |
DicomImageDecoderImageMagick(java.lang.String identifyCmd,
java.lang.String convertCmd)
Creates a decoder provided the supplied conversion command
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDecode(DicomHeader header,
DicomPixelData data)
Determines whether the current decoder can interpret and decode the supplied
pixel data
|
static boolean |
checkForImageMagick()
Checks for availability of ImageMagick on the system path
|
DicomPixelBuffer |
decode(DicomHeader header,
DicomPixelData data)
Decodes DICOM pixel data into a usable buffer, based on information
contained in the DICOM header
|
void |
finalize() |
boolean |
isValid() |
void |
setCommands(java.lang.String identify,
java.lang.String convert)
Set the command-line command to call ImageMagick's "identify" and
"convert" utilities.
|
public DicomImageDecoderImageMagick()
public DicomImageDecoderImageMagick(java.lang.String identifyCmd, java.lang.String convertCmd)
public boolean isValid()
public void setCommands(java.lang.String identify, java.lang.String convert)
identify
- the base command for the identify utility (simply "identify" if it exists
in your $PATH, otherwise the full path to the executable)public static boolean checkForImageMagick()
public DicomPixelBuffer decode(DicomHeader header, DicomPixelData data)
DicomImageDecoder
decode
in interface DicomImageDecoder
header
- informs the decoder of the transfer syntax, and any
intensity transformsdata
- raw data extracted from the DICOM slicepublic boolean canDecode(DicomHeader header, DicomPixelData data)
DicomImageDecoder
canDecode
in interface DicomImageDecoder
header
- informs the deocer of the transfer syntax and any intensity
transformsdata
- raw data extracted from the DICOM slicepublic void finalize()
finalize
in class java.lang.Object