public class SingleOverlay extends Object
A single bitmap overlay plane
| Constructor and Description |
|---|
SingleOverlay(AttributeList list,
short overlayGroup) |
SingleOverlay(short group,
short[] data,
int rows,
int columns,
int frames,
int rowOrigin,
int columnOrigin,
int frameOrigin,
int bitPosition,
String type,
String subtype,
String label,
String description,
int area,
double mean,
double standardDeviation) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBitPosition() |
int |
getColumnOrigin(int frame) |
int |
getColumns() |
short[] |
getData() |
int |
getFrameOrigin() |
int |
getFrames() |
short |
getGroup() |
BufferedImage |
getOverlayAsBinaryBufferedImage(int frame)
Get a binary image constructed from the overlay bitmap.
|
int |
getRowOrigin(int frame) |
int |
getRows() |
void |
setOverlayFromBinaryBufferedImage(BufferedImage image,
int frame)
Set the overlay bitmap from a binary image.
|
String |
toString() |
public SingleOverlay(AttributeList list, short overlayGroup) throws DicomException
DicomExceptionpublic SingleOverlay(short group,
short[] data,
int rows,
int columns,
int frames,
int rowOrigin,
int columnOrigin,
int frameOrigin,
int bitPosition,
String type,
String subtype,
String label,
String description,
int area,
double mean,
double standardDeviation)
group - the group number (0x6000 through 0x600f)data - rows - columns - frames - rowOrigin - relative to center of top row of image, numbered from 0 (not 1 as in DICOM attribute)columnOrigin - relative to center of left column pixel of image, numbered from 0 (not 1 as in DICOM attribute)frameOrigin - relative to first frame of image, numbered from 0 (not 1 as in DICOM attribute)bitPosition - only used if data needs to be extracted from PixelData (not used in rendering overlay)type - subtype - label - description - area - 0 if nonemean - 0 if nonestandardDeviation - 0 if nonepublic int getBitPosition()
public int getColumnOrigin(int frame)
public int getColumns()
public short[] getData()
public int getFrameOrigin()
public int getFrames()
public short getGroup()
public BufferedImage getOverlayAsBinaryBufferedImage(int frame)
frame - numbered from zero; needed to select which overlay if frame-specificpublic int getRowOrigin(int frame)
public int getRows()
public void setOverlayFromBinaryBufferedImage(BufferedImage image, int frame)
image - the image for this frameframe - numbered from zero; needed to select which overlay if frame-specific