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, setLocale
private 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 ImageReader
private void readHeader() throws IIOException
IIOException
private int locateImage(int imageIndex) throws IIOException
IIOException
public int getNumImages(boolean allowSearch) throws IOException
getNumImages
in class ImageReader
IOException
public IIOMetadata getStreamMetadata() throws IIOException
getStreamMetadata
in class ImageReader
IIOException
private void checkIndex(int imageIndex)
private void seekToImage(int imageIndex) throws IIOException
IIOException
private void readMetadata() throws IIOException
IIOException
private int getWidth()
private int getHeight()
private int getNumBands()
private int getTileOrStripWidth()
private int getTileOrStripHeight()
private int getPlanarConfiguration()
private long getTileOrStripOffset(int tileIndex) throws IIOException
IIOException
private long getTileOrStripByteCount(int tileIndex) throws IOException
IOException
private int getCompression()
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
private void initializeFromMetadata()
compression width height samplesPerPixel numBands colorMap photometricInterpretation sampleFormat bitsPerSample extraSamples tileOrStripWidth tileOrStripHeight
public Iterator getImageTypes(int imageIndex) throws IIOException
getImageTypes
in class ImageReader
IIOException
public IIOMetadata getImageMetadata(int imageIndex) throws IIOException
getImageMetadata
in class ImageReader
IIOException
public IIOMetadata getStreamMetadata(int imageIndex) throws IIOException
IIOException
public boolean isRandomAccessEasy(int imageIndex) throws IOException
isRandomAccessEasy
in class ImageReader
IOException
public boolean readSupportsThumbnails()
public boolean hasThumbnails(int imageIndex)
hasThumbnails
in class ImageReader
public int getNumThumbnails(int imageIndex) throws IOException
getNumThumbnails
in class ImageReader
IOException
public ImageReadParam getDefaultReadParam()
getDefaultReadParam
in class ImageReader
public boolean isImageTiled(int imageIndex) throws IOException
isImageTiled
in class ImageReader
IOException
public int getTileWidth(int imageIndex) throws IOException
getTileWidth
in class ImageReader
IOException
public int getTileHeight(int imageIndex) throws IOException
getTileHeight
in class ImageReader
IOException
public BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException
readTile
in class ImageReader
IOException
public boolean canReadRaster()
canReadRaster
in class ImageReader
public Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
readRaster
in class ImageReader
IOException
private static int ifloor(int num, int den)
private static int iceil(int num, int den)
private void prepareRead(int imageIndex, ImageReadParam param) throws IOException
IOException
public RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException
readAsRenderedImage
in class ImageReader
IOException
private void decodeTile(int ti, int tj, int band) throws IOException
IOException
private void reportProgress()
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read
in class ImageReader
IOException
public void reset()
reset
in class ImageReader
protected void resetLocal()
void forwardWarningMessage(String warning)
protected static BufferedImage getDestination(ImageReadParam param, Iterator imageTypes, int width, int height) throws IIOException
IIOException
Copyright © 2015 Open Microscopy Environment