public class DicomImageReadParam
extends javax.imageio.ImageReadParam
DicomImageReader
Constructor and Description |
---|
DicomImageReadParam()
constructs a
ImageReadParam object for the DicomImageReader with the default settings |
DicomImageReadParam(boolean autoWindowLevel,
boolean applyPresentationStates,
boolean copyPixelData)
constructs a
ImageReadParam object for the DicomImageReader |
Modifier and Type | Method and Description |
---|---|
int |
getOverlayMask()
returns the overlay bitmask.
|
boolean |
isApplyPresentationStates()
if true, presentation states are applied to the dicom image after it is read (default)
|
boolean |
isAutoWindowLevel()
if true, an automatic window/level operation is applied when no specific
window/level settings can be determined (default)
|
boolean |
isConvertRGBtoColorByPixel()
if true, pixel data of images with photometric interpretation RGB and planar configuration COLOR_BY_PLANE will be converted
to pixel-interleaved sample model.
|
boolean |
isConvertSampleModelToRGB()
When true, the data buffer of images with photometric interpretation RGB are converted if necessary to represent pixels
as RGBRGBRGB...
|
boolean |
isCopyPixelData()
if true, the pixel data is copied into the resulting BufferedImage (default);
if false, the read pixel data is reused when possible
|
boolean |
isCreateDicomBufferedImage()
if true, the BufferedImage returned by DicomImageReader.read() will be of
type
DicomBufferedImage . |
boolean |
isOverlaysOnDicomBufferedImage() |
boolean |
isPaletteColorAsRGB()
if true, DICOM palette color images will be returned as a buffered image with a DirectColorModel (RGB).
|
boolean |
isYBRAsRGB()
if true, native images with photometric interpretation YUV_FULL and photometric interpretation YBR_FULL_422 are converted to RGB.
|
void |
setApplyPresentationStates(boolean applyPresentationStates)
if true, presentation states are applied to the dicom image after it is read (default)
|
void |
setAutoWindowLevel(boolean autoWindowLevel)
if true, an automatic window/level operation is applied when no specific
window/level settings can be determined (default)
|
void |
setConvertRGBtoColorByPixel(boolean convertRGBtoColorByPixel) |
void |
setConvertSampleModelToRGB(boolean convertSampleModelToRGB) |
void |
setCopyPixelData(boolean copyPixelData)
if true, the pixel data is copied into the resulting BufferedImage (default);
if false, the read pixel data is reused when possible
|
void |
setCreateDicomBufferedImage(boolean createDicomBufferedImage)
if true, the BufferedImage returned by DicomImageReader.read() will be of
type
DicomBufferedImage . |
void |
setOverlayMask(int overlayMask)
bitmask that specifies which overlays contained in the repeating groups (0x6000) of the image should be rendered on top of the image.
|
void |
setOverlaysOnDicomBufferedImage(boolean overlaysOnDicomBufferedImage) |
void |
setPaletteColorAsRGB(boolean paletteColorAsRGB) |
void |
setYBRAsRGB(boolean YBRAsRGB) |
canSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setDestinationType, setSourceProgressivePasses, setSourceRenderSize
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setSourceBands, setSourceRegion, setSourceSubsampling
public DicomImageReadParam()
ImageReadParam
object for the DicomImageReader with the default settingspublic DicomImageReadParam(boolean autoWindowLevel, boolean applyPresentationStates, boolean copyPixelData)
ImageReadParam
object for the DicomImageReaderautoWindowLevel
- if true, an automatic window/level operation is applied when no specific
window/level settings can be determinedapplyPresentationStates
- if true, presentation states are applied to the dicom image after it is readcopyPixelData
- if true, the pixel data is copied into the resulting BufferedImage;
if false, the read pixel data is reused when possiblepublic void setAutoWindowLevel(boolean autoWindowLevel)
autoWindowLevel
- the 'automatic window/level' settingpublic boolean isAutoWindowLevel()
public void setApplyPresentationStates(boolean applyPresentationStates)
applyPresentationStates
- the 'presentation states' settingpublic boolean isApplyPresentationStates()
public boolean isCopyPixelData()
public void setCopyPixelData(boolean copyPixelData)
copyPixelData
- the 'copy pixel data' settingpublic boolean isCreateDicomBufferedImage()
DicomBufferedImage
. Default false.public void setCreateDicomBufferedImage(boolean createDicomBufferedImage)
DicomBufferedImage
. Default false.public int getOverlayMask()
public void setOverlayMask(int overlayMask)
overlayMask
- bitMaskpublic boolean isPaletteColorAsRGB()
public void setPaletteColorAsRGB(boolean paletteColorAsRGB)
public boolean isOverlaysOnDicomBufferedImage()
public void setOverlaysOnDicomBufferedImage(boolean overlaysOnDicomBufferedImage)
public boolean isConvertRGBtoColorByPixel()
public void setConvertRGBtoColorByPixel(boolean convertRGBtoColorByPixel)
public boolean isYBRAsRGB()
public void setYBRAsRGB(boolean YBRAsRGB)
public boolean isConvertSampleModelToRGB()
public void setConvertSampleModelToRGB(boolean convertSampleModelToRGB)