|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.imageio.ImageReader org.dcm4che2.imageioimpl.plugins.dcm.DicomImageReader
public class DicomImageReader
Field Summary | |
---|---|
protected boolean |
compressed
|
protected javax.imageio.ImageReader |
reader
|
protected java.lang.String |
tsuid
Store the transfer syntax locally in case it gets modified to re-write the image |
Fields inherited from class javax.imageio.ImageReader |
---|
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales |
Constructor Summary | |
---|---|
protected |
DicomImageReader(javax.imageio.spi.ImageReaderSpi originatingProvider)
|
Method Summary | |
---|---|
boolean |
canReadRaster()
|
protected void |
copyReadParam(javax.imageio.ImageReadParam src,
javax.imageio.ImageReadParam dst)
|
protected javax.imageio.ImageTypeSpecifier |
createImageTypeSpecifier()
Create an image type specifier for the entire image |
static java.awt.image.BufferedImage |
createRGBBufferedImage(int destWidth,
int destHeight)
Creates a BufferedImage with a custom color model that can be used to store 3 channel RGB data in a byte array data buffer |
void |
dispose()
|
java.lang.Float |
getAutoWindowCenter()
Exposes the window center value that was determined during the last read(int, ImageReadParam) call. |
java.lang.Float |
getAutoWindowWidth()
Exposes the window width value that was determined during the last read(int, ImageReadParam) call. |
javax.imageio.ImageReadParam |
getDefaultReadParam()
|
int |
getHeight(int imageIndex)
|
javax.imageio.metadata.IIOMetadata |
getImageMetadata(int imageIndex)
Gets any image specific meta data. |
java.util.Iterator<javax.imageio.ImageTypeSpecifier> |
getImageTypes(int imageIndex)
|
int |
getNumImages(boolean allowSearch)
Returns the number of regular images in the study. |
javax.imageio.metadata.IIOMetadata |
getStreamMetadata()
Return a DicomStreamMetaData object that includes the DICOM header. |
int |
getWidth(int imageIndex)
|
protected void |
initImageReader(int imageIndex)
Sets the input for the image reader. |
protected void |
postDecompress()
|
java.awt.image.BufferedImage |
read(int imageIndex,
javax.imageio.ImageReadParam param)
Reads the provided image as a buffered image. |
byte[] |
readBytes(int imageIndex,
javax.imageio.ImageReadParam param)
Reads the bytes for the given image as raw data. |
java.awt.image.Raster |
readRaster(int imageIndex,
javax.imageio.ImageReadParam param)
Read the raw raster data from the image, without any LUTs being applied. |
void |
reset()
|
void |
setInput(java.lang.Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
|
static java.awt.image.BufferedImage |
subsampleRGB(java.awt.image.BufferedImage src,
java.awt.Rectangle sourceRegion,
int subSampleX,
int subSampleY)
Sub-samples RGB buffered images when the reader doesn't support it. |
Methods inherited from class javax.imageio.ImageReader |
---|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean compressed
protected javax.imageio.ImageReader reader
protected java.lang.String tsuid
Constructor Detail |
---|
protected DicomImageReader(javax.imageio.spi.ImageReaderSpi originatingProvider)
Method Detail |
---|
public void setInput(java.lang.Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class javax.imageio.ImageReader
public void dispose()
dispose
in class javax.imageio.ImageReader
public void reset()
reset
in class javax.imageio.ImageReader
public javax.imageio.ImageReadParam getDefaultReadParam()
getDefaultReadParam
in class javax.imageio.ImageReader
public javax.imageio.metadata.IIOMetadata getStreamMetadata() throws java.io.IOException
getStreamMetadata
in class javax.imageio.ImageReader
java.io.IOException
public javax.imageio.metadata.IIOMetadata getImageMetadata(int imageIndex) throws java.io.IOException
getImageMetadata
in class javax.imageio.ImageReader
java.io.IOException
public int getNumImages(boolean allowSearch) throws java.io.IOException
getNumImages
in class javax.imageio.ImageReader
java.io.IOException
protected void initImageReader(int imageIndex) throws java.io.IOException
imageIndex
- The Dicom frame index, or overlay number
java.io.IOException
protected javax.imageio.ImageTypeSpecifier createImageTypeSpecifier()
public int getHeight(int imageIndex) throws java.io.IOException
getHeight
in class javax.imageio.ImageReader
java.io.IOException
public int getWidth(int imageIndex) throws java.io.IOException
getWidth
in class javax.imageio.ImageReader
java.io.IOException
public java.lang.Float getAutoWindowCenter()
read(int, ImageReadParam)
call.
null
if auto windowing was not applied.public java.lang.Float getAutoWindowWidth()
read(int, ImageReadParam)
call.
null
if auto windowing was not applied.public java.util.Iterator<javax.imageio.ImageTypeSpecifier> getImageTypes(int imageIndex) throws java.io.IOException
getImageTypes
in class javax.imageio.ImageReader
java.io.IOException
public boolean canReadRaster()
canReadRaster
in class javax.imageio.ImageReader
public java.awt.image.Raster readRaster(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
readRaster
in class javax.imageio.ImageReader
java.io.IOException
public java.awt.image.BufferedImage read(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
read
in class javax.imageio.ImageReader
java.io.IOException
public static java.awt.image.BufferedImage subsampleRGB(java.awt.image.BufferedImage src, java.awt.Rectangle sourceRegion, int subSampleX, int subSampleY)
public static java.awt.image.BufferedImage createRGBBufferedImage(int destWidth, int destHeight)
public byte[] readBytes(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
java.io.IOException
protected void copyReadParam(javax.imageio.ImageReadParam src, javax.imageio.ImageReadParam dst)
protected void postDecompress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |