public class Overlay
extends java.lang.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.
|
java.awt.image.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(java.lang.String[] arg)
Read the DICOM input file as a list of attributes and extract the information related to overlays.
|
java.lang.String |
toString() |
public Overlay(AttributeList list)
list
- public Overlay(SingleOverlay[] arrayOfOverlays)
arrayOfOverlays
- public AttributeList getAttributeList() throws DicomException
DicomException
public 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 java.awt.image.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(java.lang.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)public final java.lang.String toString()
toString
in class java.lang.Object