public class TIFFImageReader extends ImageReader
| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
bitsPerSample |
(package private) char[] |
colorMap |
(package private) int |
compression |
(package private) int |
currIndex |
private static boolean |
DEBUG |
private TIFFDecompressor |
decompressor |
private int[] |
destinationBands |
(package private) int |
dstHeight |
(package private) int |
dstMinX |
(package private) int |
dstMinY |
(package private) int |
dstWidth |
(package private) int |
dstXOffset |
(package private) int |
dstYOffset |
(package private) int[] |
extraSamples |
(package private) boolean |
gotHeader |
(package private) int |
height |
(package private) TIFFImageMetadata |
imageMetadata |
(package private) ImageReadParam |
imageReadParam |
(package private) List |
imageStartPosition |
(package private) HashMap |
imageTypeMap |
(package private) int |
numBands |
(package private) int |
numImages |
(package private) int |
photometricInterpretation |
(package private) int |
pixelsRead |
(package private) int |
pixelsToRead |
(package private) int |
planarConfiguration |
(package private) int |
rowsDone |
(package private) int[] |
sampleFormat |
(package private) int |
samplesPerPixel |
private int[] |
sourceBands |
(package private) int |
sourceXOffset |
(package private) int |
sourceYOffset |
(package private) int |
srcXSubsampling |
(package private) int |
srcYSubsampling |
(package private) ImageInputStream |
stream |
(package private) TIFFStreamMetadata |
streamMetadata |
(package private) BufferedImage |
theImage |
(package private) int |
tileOrStripHeight |
(package private) int |
tileOrStripWidth |
(package private) int |
tilesAcross |
(package private) int |
tilesDown |
(package private) int |
width |
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales| Constructor and Description |
|---|
TIFFImageReader(ImageReaderSpi originatingProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadRaster() |
private void |
checkIndex(int imageIndex) |
private void |
decodeTile(int ti,
int tj,
int band) |
(package private) void |
forwardWarningMessage(String warning)
Package scope method to allow decompressors, for example, to
emit warning messages.
|
private int |
getCompression() |
ImageReadParam |
getDefaultReadParam() |
protected static BufferedImage |
getDestination(ImageReadParam param,
Iterator imageTypes,
int width,
int height) |
private int |
getHeight() |
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator |
getImageTypes(int imageIndex) |
private int |
getNumBands() |
int |
getNumImages(boolean allowSearch) |
int |
getNumThumbnails(int imageIndex) |
private int |
getPlanarConfiguration() |
IIOMetadata |
getStreamMetadata() |
IIOMetadata |
getStreamMetadata(int imageIndex) |
int |
getTileHeight(int imageIndex) |
private long |
getTileOrStripByteCount(int tileIndex) |
private int |
getTileOrStripHeight() |
private long |
getTileOrStripOffset(int tileIndex) |
private int |
getTileOrStripWidth() |
int |
getTileWidth(int imageIndex) |
private int |
getWidth() |
int |
getWidth(int imageIndex) |
boolean |
hasThumbnails(int imageIndex) |
private static int |
iceil(int num,
int den) |
private static int |
ifloor(int num,
int den) |
private void |
initializeFromMetadata()
Initializes these instance variables from the image metadata:
|
boolean |
isImageTiled(int imageIndex) |
boolean |
isRandomAccessEasy(int imageIndex) |
private int |
locateImage(int imageIndex) |
private void |
prepareRead(int imageIndex,
ImageReadParam param) |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
RenderedImage |
readAsRenderedImage(int imageIndex,
ImageReadParam param) |
private void |
readHeader() |
private void |
readMetadata() |
Raster |
readRaster(int imageIndex,
ImageReadParam param) |
boolean |
readSupportsThumbnails() |
BufferedImage |
readTile(int imageIndex,
int tileX,
int tileY) |
private void |
reportProgress() |
void |
reset() |
protected void |
resetLocal() |
private void |
seekToImage(int imageIndex) |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata) |
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, isIgnoringMetadata, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readerSupportsThumbnails, readThumbnail, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocaleprivate static final boolean DEBUG
ImageInputStream stream
boolean gotHeader
ImageReadParam imageReadParam
TIFFStreamMetadata streamMetadata
int currIndex
TIFFImageMetadata imageMetadata
List imageStartPosition
int numImages
HashMap imageTypeMap
BufferedImage theImage
int width
int height
int numBands
int tileOrStripWidth
int tileOrStripHeight
int planarConfiguration
int rowsDone
int compression
int photometricInterpretation
int samplesPerPixel
int[] sampleFormat
int[] bitsPerSample
int[] extraSamples
char[] colorMap
int sourceXOffset
int sourceYOffset
int srcXSubsampling
int srcYSubsampling
int dstWidth
int dstHeight
int dstMinX
int dstMinY
int dstXOffset
int dstYOffset
int tilesAcross
int tilesDown
int pixelsRead
int pixelsToRead
private int[] sourceBands
private int[] destinationBands
private TIFFDecompressor decompressor
public TIFFImageReader(ImageReaderSpi originatingProvider)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput in class ImageReaderprivate void readHeader()
throws IIOException
IIOExceptionprivate int locateImage(int imageIndex)
throws IIOException
IIOExceptionpublic int getNumImages(boolean allowSearch)
throws IOException
getNumImages in class ImageReaderIOExceptionpublic IIOMetadata getStreamMetadata() throws IIOException
getStreamMetadata in class ImageReaderIIOExceptionprivate void checkIndex(int imageIndex)
private void seekToImage(int imageIndex)
throws IIOException
IIOExceptionprivate void readMetadata()
throws IIOException
IIOExceptionprivate int getWidth()
private int getHeight()
private int getNumBands()
private int getTileOrStripWidth()
private int getTileOrStripHeight()
private int getPlanarConfiguration()
private long getTileOrStripOffset(int tileIndex)
throws IIOException
IIOExceptionprivate long getTileOrStripByteCount(int tileIndex)
throws IOException
IOExceptionprivate int getCompression()
public int getWidth(int imageIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic int getHeight(int imageIndex)
throws IOException
getHeight in class ImageReaderIOExceptionprivate void initializeFromMetadata()
compression width height samplesPerPixel numBands colorMap photometricInterpretation sampleFormat bitsPerSample extraSamples tileOrStripWidth tileOrStripHeight
public Iterator getImageTypes(int imageIndex) throws IIOException
getImageTypes in class ImageReaderIIOExceptionpublic IIOMetadata getImageMetadata(int imageIndex) throws IIOException
getImageMetadata in class ImageReaderIIOExceptionpublic IIOMetadata getStreamMetadata(int imageIndex) throws IIOException
IIOExceptionpublic boolean isRandomAccessEasy(int imageIndex)
throws IOException
isRandomAccessEasy in class ImageReaderIOExceptionpublic boolean readSupportsThumbnails()
public boolean hasThumbnails(int imageIndex)
hasThumbnails in class ImageReaderpublic int getNumThumbnails(int imageIndex)
throws IOException
getNumThumbnails in class ImageReaderIOExceptionpublic ImageReadParam getDefaultReadParam()
getDefaultReadParam in class ImageReaderpublic boolean isImageTiled(int imageIndex)
throws IOException
isImageTiled in class ImageReaderIOExceptionpublic int getTileWidth(int imageIndex)
throws IOException
getTileWidth in class ImageReaderIOExceptionpublic int getTileHeight(int imageIndex)
throws IOException
getTileHeight in class ImageReaderIOExceptionpublic BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException
readTile in class ImageReaderIOExceptionpublic boolean canReadRaster()
canReadRaster in class ImageReaderpublic Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
readRaster in class ImageReaderIOExceptionprivate static int ifloor(int num,
int den)
private static int iceil(int num,
int den)
private void prepareRead(int imageIndex,
ImageReadParam param)
throws IOException
IOExceptionpublic RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException
readAsRenderedImage in class ImageReaderIOExceptionprivate void decodeTile(int ti,
int tj,
int band)
throws IOException
IOExceptionprivate void reportProgress()
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read in class ImageReaderIOExceptionpublic void reset()
reset in class ImageReaderprotected void resetLocal()
void forwardWarningMessage(String warning)
protected static BufferedImage getDestination(ImageReadParam param, Iterator imageTypes, int width, int height) throws IIOException
IIOExceptionCopyright © 2017 Open Microscopy Environment