public class ImageIO
extends java.lang.Object
| Photometric Interpretation | Pixel Depth | ColorModel used |
| MONOCHROME? | 8 | IndexColorModel |
| MONOCHROME? | > 8 | GrayColorModel
|
| PALETTE COLOR | 8 | IndexColorModel |
| RGB | 8 | DirectColorModel |
| Constructor and Description |
|---|
ImageIO(DicomImage d)
Constructs a new ImageIO object for in- / output of ImageProducers.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.ImageProducer |
getImageProducer()
Constructs an ImageProducer based on the pixels of the first (or only)
frame.
|
java.awt.image.ImageProducer |
getImageProducer(int i)
This method constructs an ImageProducer based on the pixels of frame with index i.
|
java.util.List<java.awt.image.ImageProducer> |
getImageProducers()
Builds an ImageProducer for all the frames in the image and returns them in a List.
|
DicomImage |
getSource()
returns the specified DICOMObject.
|
void |
setImageProducer(java.awt.image.ImageProducer ip)
Reads an ImageProducer and converts the image data into the single-frame DicomImage.
|
int |
size()
returns the number of frames in the specified DICOMObject.
|
protected JdtLogger log
public ImageIO(DicomImage d) throws DicomException
d - - the source/target for Image IODicomExceptionpublic java.awt.image.ImageProducer getImageProducer()
throws DicomException
DicomExceptiongetImageProducerpublic java.awt.image.ImageProducer getImageProducer(int i)
throws DicomException
DicomException - is thrown when something is wrong with the image data,
when the index is out of bounds or when the image type is not supported.public java.util.List<java.awt.image.ImageProducer> getImageProducers()
throws DicomException
DicomExceptiongetImageProducerpublic void setImageProducer(java.awt.image.ImageProducer ip)
ip - the ImageProducer containing the imagedata to be storedpublic int size()
public DicomImage getSource()