public class DicomBufferedImage
extends java.awt.image.BufferedImage
DicomImageReader
.
Callers of the ImageReader's read() method may safely cast to this class. This class contains some extra methods
to derive BufferedImages from the originaly returned buffered image with other lookup tables,window/center parameters,...TYPE_3BYTE_BGR, TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE, TYPE_BYTE_BINARY, TYPE_BYTE_GRAY, TYPE_BYTE_INDEXED, TYPE_CUSTOM, TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_INT_RGB, TYPE_USHORT_555_RGB, TYPE_USHORT_565_RGB, TYPE_USHORT_GRAY
Modifier and Type | Method and Description |
---|---|
void |
applyOverlays(int overlayGrayscaleValue)
Applies the overlays to the raster of this image.
|
java.awt.image.BufferedImage |
createDefaultImage(boolean autoWindowLevel)
For grayscale images this method returns a BufferedImage with VOI LUT/window center
and Modality LUT/rescale slope-intercept applied.
|
java.awt.image.BufferedImage |
createImage(double windowCenter,
double windowWidth)
creates a new BufferedImage based on the original BufferedImage returned from the ImageReader with
specified window/center.
|
int |
getMaximumPixelValue() |
int |
getMinimumPixelValue() |
void |
setMaximumPixelValue(int maximumPixelValue) |
void |
setMinimumPixelValue(int minimumPixelValue) |
addTileObserver, coerceData, copyData, createGraphics, getAlphaRaster, getColorModel, getData, getData, getGraphics, getHeight, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getProperty, getPropertyNames, getRaster, getRGB, getRGB, getSampleModel, getSource, getSources, getSubimage, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getTransparency, getType, getWidth, getWidth, getWritableTile, getWritableTileIndices, hasTileWriters, isAlphaPremultiplied, isTileWritable, releaseWritableTile, removeTileObserver, setData, setRGB, setRGB, toString
public java.awt.image.BufferedImage createDefaultImage(boolean autoWindowLevel)
autoWindowLevel
- if true, a full window operation will be performed if the DICOM image does not have a VOI LUT or window/centerpublic java.awt.image.BufferedImage createImage(double windowCenter, double windowWidth) throws java.lang.UnsupportedOperationException
windowCenter
- the window centerwindowWidth
- the window widthjava.lang.UnsupportedOperationException
public void applyOverlays(int overlayGrayscaleValue)
overlayGrayscaleValue
- public int getMaximumPixelValue()
public void setMaximumPixelValue(int maximumPixelValue)
public int getMinimumPixelValue()
public void setMinimumPixelValue(int minimumPixelValue)