public class Overlay extends Object
A set of bitmap overlays constructed from a DICOM attribute list.
Note that multiple overlays may be present, they may be multi-frame, and they may be in the OverlayData element or the PixelData element.
| Constructor and Description |
|---|
Overlay(AttributeList list) |
Overlay(SingleOverlay[] arrayOfOverlays) |
| Modifier and Type | Method and Description |
|---|---|
AttributeList |
getAttributeList() |
int |
getColumnOrigin(int frame,
int overlay)
Get the column orgin of the overlay.
|
int |
getNumberOfOverlays(int frame)
Get the number of overlays available for a particular frame.
|
BufferedImage |
getOverlayAsBinaryBufferedImage(int frame,
int overlay)
Get a binary image constructed from the overlay bitmap.
|
int |
getRowOrigin(int frame,
int overlay)
Get the row orgin of the overlay.
|
static void |
main(String[] arg)
Read the DICOM input file as a list of attributes and extract the information related to overlays.
|
String |
toString() |
public Overlay(AttributeList list)
list - public Overlay(SingleOverlay[] arrayOfOverlays)
arrayOfOverlays - public AttributeList getAttributeList() throws DicomException
DicomExceptionpublic int getColumnOrigin(int frame,
int overlay)
frame - numbered from zero; needed to select which overlay if frame-specificoverlay - numbered from zeropublic int getNumberOfOverlays(int frame)
frame - numbered from zero; needed to select which overlay if frame-specificpublic BufferedImage getOverlayAsBinaryBufferedImage(int frame, int overlay)
frame - numbered from zero; needed to select which overlay if frame-specificoverlay - numbered from zeropublic int getRowOrigin(int frame,
int overlay)
frame - numbered from zero; needed to select which overlay if frame-specificoverlay - numbered from zeropublic static void main(String[] arg)
Read the DICOM input file as a list of attributes and extract the information related to overlays.
arg - array of one string (the filename to read and dump)