Package loci.formats.in
Class MinimalTiffReader
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.SubResolutionFormatReader
loci.formats.in.MinimalTiffReader
- All Implemented Interfaces:
Closeable,AutoCloseable,loci.formats.ICompressedTileReader,loci.formats.IFormatHandler,loci.formats.IFormatReader,loci.formats.IMetadataConfigurable,loci.formats.IPyramidHandler
- Direct Known Subclasses:
BaseTiffReader
MinimalTiffReader is the superclass for file format readers compatible with
or derived from the TIFF 6.0 file format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether or not IFDs with different dimensions can be split into separate series.protected booleanprotected IFDListList of IFDs for the current TIFF.protected intprotected booleanMerge SubIFDs into the main IFD list.protected booleanprotected booleanList of sub-resolution IFDs for each IFD in the current TIFF with the same order asifds.protected IFDListList of thumbnail IFDs for the current TIFF.protected TiffParserprotected booleanFields inherited from class loci.formats.SubResolutionFormatReader
coreFields inherited from class loci.formats.FormatReader
coreIndex, datasetDescription, domains, fillColor, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSIONFields inherited from class loci.formats.FormatHandler
COMPRESSION_SUFFIXES, currentId, format, metadataOptions, suffixesFields inherited from interface loci.formats.IFormatReader
CAN_GROUP, CANNOT_GROUP, MUST_GROUP -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new MinimalTiffReader.MinimalTiffReader(String name, String suffix) Constructs a new MinimalTiffReader.MinimalTiffReader(String name, String[] suffixes) Constructs a new MinimalTiffReader. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean fileOnly) protected byte[]short[][]byte[][]protected longgetCompressedByteCount(IFD ifd, int x, int y) getIFDs()Gets the list of IFDs associated with the current TIFF's image planes.intintGets the list of IFDs associated with the current TIFF's thumbnails.intintprotected intgetTileIndex(IFD ifd, int x, int y) Get the index of the tile corresponding to given IFD (plane) and tile XY indexes.protected voidprotected voidReinitialize the underlying TiffParser.booleanisThisType(RandomAccessInputStream stream) byte[]openBytes(int no, byte[] buf, int x, int y, int w, int h) byte[]openThumbBytes(int no) voidprotected voidsetResolutionLevel(IFD ifd) Sets the resolution level when we have JPEG 2000 compressed data.Methods inherited from class loci.formats.SubResolutionFormatReader
coreIndexToSeries, flattenHashtables, getCoreIndex, getCoreMetadataList, getCurrentCore, getResolution, getResolutionCount, getSeries, getSeriesCount, seriesToCoreIndex, setCoreIndex, setResolution, setSeriesMethods inherited from class loci.formats.FormatReader
addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMetaList, addMeta, addMetaList, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMetaList, close, fileGroupOption, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCorrection, getCurrentFile, getDatasetStructureDescription, getDetectorType, getDimensionOrder, getDimensionOrder, getDomains, getEffectiveSizeC, getExperimentType, getFilamentType, getFillColor, getFillRule, getFilterType, getFontFamily, getFontStyle, getGlobalMeta, getGlobalMetadata, getIlluminationType, getImageCount, getImmersion, getIndex, getIndex, getLaserMedium, getLaserType, getMarker, getMedium, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getMicrobeamManipulationType, getMicroscopeType, getModuloC, getModuloT, getModuloZ, getNamingConvention, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getRGBChannelCount, getRotationTransform, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getTileColumns, getTileRows, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openPlane, readPlane, readPlane, readPlane, setFillColor, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, updateMetadataListsMethods inherited from class loci.formats.FormatHandler
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, setMetadataOptionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface loci.formats.ICompressedTileReader
getTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytesMethods inherited from interface loci.formats.IFormatHandler
getFormat, getNativeDataType, getSuffixesMethods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
-
Field Details
-
ifds
List of IFDs for the current TIFF. -
thumbnailIFDs
List of thumbnail IFDs for the current TIFF. -
subResolutionIFDs
List of sub-resolution IFDs for each IFD in the current TIFF with the same order asifds. -
tiffParser
-
equalStrips
protected boolean equalStrips -
use64Bit
protected boolean use64Bit -
lastPlane
protected int lastPlane -
noSubresolutions
protected boolean noSubresolutions -
seriesToIFD
protected boolean seriesToIFD -
mergeSubIFDs
protected transient boolean mergeSubIFDsMerge SubIFDs into the main IFD list. -
canSeparateSeries
protected transient boolean canSeparateSeriesWhether or not IFDs with different dimensions can be split into separate series.
-
-
Constructor Details
-
MinimalTiffReader
public MinimalTiffReader()Constructs a new MinimalTiffReader. -
MinimalTiffReader
Constructs a new MinimalTiffReader. -
MinimalTiffReader
Constructs a new MinimalTiffReader.
-
-
Method Details
-
getIFDs
Gets the list of IFDs associated with the current TIFF's image planes. -
getThumbnailIFDs
Gets the list of IFDs associated with the current TIFF's thumbnails. -
isThisType
- Specified by:
isThisTypein interfaceloci.formats.IFormatReader- Overrides:
isThisTypein classloci.formats.FormatReader- Throws:
IOException
-
get8BitLookupTable
- Specified by:
get8BitLookupTablein interfaceloci.formats.IFormatReader- Overrides:
get8BitLookupTablein classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException
-
get16BitLookupTable
- Specified by:
get16BitLookupTablein interfaceloci.formats.IFormatReader- Overrides:
get16BitLookupTablein classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException
-
getThumbSizeX
public int getThumbSizeX()- Specified by:
getThumbSizeXin interfaceloci.formats.IFormatReader- Overrides:
getThumbSizeXin classloci.formats.FormatReader
-
getThumbSizeY
public int getThumbSizeY()- Specified by:
getThumbSizeYin interfaceloci.formats.IFormatReader- Overrides:
getThumbSizeYin classloci.formats.FormatReader
-
openThumbBytes
- Specified by:
openThumbBytesin interfaceloci.formats.IFormatReader- Overrides:
openThumbBytesin classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException
-
openBytes
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws loci.formats.FormatException, IOException - Specified by:
openBytesin interfaceloci.formats.IFormatReader- Specified by:
openBytesin classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException- See Also:
-
reopenFile
- Specified by:
reopenFilein interfaceloci.formats.IFormatReader- Overrides:
reopenFilein classloci.formats.FormatReader- Throws:
IOException
-
close
- Specified by:
closein interfaceloci.formats.IFormatReader- Overrides:
closein classloci.formats.SubResolutionFormatReader- Throws:
IOException
-
getOptimalTileWidth
public int getOptimalTileWidth()- Specified by:
getOptimalTileWidthin interfaceloci.formats.IFormatReader- Overrides:
getOptimalTileWidthin classloci.formats.FormatReader
-
getOptimalTileHeight
public int getOptimalTileHeight()- Specified by:
getOptimalTileHeightin interfaceloci.formats.IFormatReader- Overrides:
getOptimalTileHeightin classloci.formats.FormatReader
-
initFile
- Overrides:
initFilein classloci.formats.SubResolutionFormatReader- Throws:
loci.formats.FormatExceptionIOException
-
setResolutionLevel
Sets the resolution level when we have JPEG 2000 compressed data.- Parameters:
ifd- The active IFD that is being used in our currentopenBytes()calling context. It will be the sub-resolution IFD if currentSeries > 0.
-
initTiffParser
protected void initTiffParser()Reinitialize the underlying TiffParser. -
getTileIndex
Get the index of the tile corresponding to given IFD (plane) and tile XY indexes.- Parameters:
ifd- IFD for the requested tile's planex- tile X indexy- tile Y index- Returns:
- corresponding tile index
- Throws:
loci.formats.FormatException
-
getCompressedByteCount
protected long getCompressedByteCount(IFD ifd, int x, int y) throws loci.formats.FormatException, IOException -
copyTile
protected byte[] copyTile(IFD ifd, byte[] buf, int x, int y) throws loci.formats.FormatException, IOException
-