|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.archimed.dicom.image.ImageIO
public class ImageIO
This is a class providing methods to convert image data stored in a DicomImage
to an ImageProducer and back.
Supported DICOM Images:
| Photometric Interpretation | Pixel Depth | ColorModel used |
| MONOCHROME? | 8 | IndexColorModel |
| MONOCHROME? | >8 | GrayColorModel
|
| PALETTE COLOR | 8 | IndexColorModel |
| RGB | 8 | DirectColorModel |
| Field Summary | |
|---|---|
protected JdtLogger |
log
|
| Constructor Summary | |
|---|---|
ImageIO(DicomImage d)
Constructs a new ImageIO object for in- / output of ImageProducers. |
|
| Method Summary | |
|---|---|
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.Vector |
getImageProducers()
Builds an ImageProducer for all the frames in the image and returns them in a Vector. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JdtLogger log
| Constructor Detail |
|---|
public ImageIO(DicomImage d)
throws DicomException
d - - the source/target for Image IO
DicomException| Method Detail |
|---|
public java.awt.image.ImageProducer getImageProducer()
throws DicomException
DicomExceptiongetImageProducer
public java.awt.image.ImageProducer getImageProducer(int i)
throws DicomException
com.archimed.dicom.codec package.
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.Vector 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()
|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||