public class ImageLoader extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
loadDICOMImage(java.io.InputStream inputStream)
Obtain a DICOM image from an orginary input stream.
|
static java.awt.image.BufferedImage |
loadDICOMImage(StorageInputStream imageFromStorage)
Obtain a DICOM from a Dicoogle storage input stream.
|
static java.awt.image.BufferedImage |
loadImage(java.io.InputStream inputStream)
Obtain an image from an ordinary input stream.
|
static java.awt.image.BufferedImage |
loadImage(StorageInputStream imageFromStorage)
Obtain an image from a Dicoogle storage input stream.
|
public static java.awt.image.BufferedImage loadImage(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the input stream to retrieve the image fromjava.io.IOException
- if the image format is not supported or another IO issue occurredpublic static java.awt.image.BufferedImage loadImage(StorageInputStream imageFromStorage) throws java.io.IOException
imageFromStorage
- the storage input stream to retrieve the image fromjava.io.IOException
- if the image format is not supported or another IO issue occurredpublic static java.awt.image.BufferedImage loadDICOMImage(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the input stream to retrieve the DICOM image fromjava.io.IOException
- if the image format is not DICOM or another IO issue occurredpublic static java.awt.image.BufferedImage loadDICOMImage(StorageInputStream imageFromStorage) throws java.io.IOException
imageFromStorage
- the storage input stream to retrieve the DICOM image fromjava.io.IOException
- if the image format is not DICOM or another IO issue occurred