Package com.pixelmed.dicom
Class SingleOverlay
java.lang.Object
com.pixelmed.dicom.SingleOverlay
A single bitmap overlay plane
-
Constructor Summary
ConstructorsConstructorDescriptionSingleOverlay
(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) SingleOverlay
(AttributeList list, short overlayGroup) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getColumnOrigin
(int frame) int
short[]
getData()
int
int
short
getGroup()
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.final String
toString()
-
Constructor Details
-
SingleOverlay
public 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) - Parameters:
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 none
-
SingleOverlay
- Throws:
DicomException
-
-
Method Details
-
setOverlayFromBinaryBufferedImage
Set the overlay bitmap from a binary image.- Parameters:
image
- the image for this frameframe
- numbered from zero; needed to select which overlay if frame-specific
-
getOverlayAsBinaryBufferedImage
Get a binary image constructed from the overlay bitmap.- Parameters:
frame
- numbered from zero; needed to select which overlay if frame-specific- Returns:
- a java.awt.image.BufferedImage of type TYPE_BYTE_BINARY, or null if there is no such overlay for that frame
-
getRowOrigin
public int getRowOrigin(int frame) -
getColumnOrigin
public int getColumnOrigin(int frame) -
getFrameOrigin
public int getFrameOrigin() -
getFrames
public int getFrames() -
getRows
public int getRows() -
getColumns
public int getColumns() -
getBitPosition
public int getBitPosition() -
getGroup
public short getGroup() -
getData
public short[] getData() -
toString
-