Package loci.formats.in
Class BaseZeissReader
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.in.BaseZeissReader
- All Implemented Interfaces:
Closeable,AutoCloseable,ICompressedTileReader,IFormatHandler,IFormatReader,IMetadataConfigurable,IPyramidHandler
- Direct Known Subclasses:
ZeissTIFFReader,ZeissZVIReader
BaseZeissReader contains common functionality required by
readers for Zeiss AxioVision formats.
- Author:
- Melissa Linkert melissa at glencoesoftware.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumstatic enum(package private) static enumLine drawing styles.(package private) static enumFeature types.(package private) static enumFill styles.(package private) classLayer class representing an AxioVision layer; used to contain a collection of shapes.(package private) static enum(package private) static enumLine ending styles.(package private) static enumPoint styles.(package private) classShape class representing the metadata within an AxioVision Shape ROIclassContent of a single tag from a Tags block.(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ome.xml.model.primitives.Timestampprotected intNumber of bytes per pixel.protected int[]protected intprotected intprotected int[][]protected Stringprotected String[]protected booleanprotected booleanprotected intprotected intprotected intprotected intprotected int[]protected Doubleprotected Doubleprotected Doubleprotected intprotected intprotected intprotected intprotected intFields inherited from class loci.formats.FormatReader
core, 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, LOGGER, metadataOptions, suffixesFields inherited from interface loci.formats.IFormatReader
CAN_GROUP, CANNOT_GROUP, MUST_GROUP -
Constructor Summary
ConstructorsConstructorDescriptionBaseZeissReader(String name, String suffix) Constructs a new ZeissZVI reader.BaseZeissReader(String name, String[] suffixes) Constructs a new ZeissZVI reader. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean fileOnly) Closes the currently open file.protected voidprotected voidfillMetadataPass1(MetadataStore store) Read and store basic dimensions in modelprotected voidfillMetadataPass2(MetadataStore store) Read and store basic dimensions in modelprotected voidfillMetadataPass3(MetadataStore store) Read and store basic dimensions in modelprotected voidfillMetadataPass4(MetadataStore store) Read and store basic dimensions in modelprotected voidfillMetadataPass5(MetadataStore store) Read and store basic dimensions in modelprotected voidfillMetadataPass6(MetadataStore store) Read and store basic dimensions in modelprotected voidfillMetadataPass7(MetadataStore store) Store basic dimensions in modelshort[][]Gets the 16-bit color lookup table associated with the most recently opened image.byte[][]Gets the 8-bit color lookup table associated with the most recently opened image.intReturns the optimal sub-image height for use with openBytes.protected voidinitFileMain(String id) protected voidprotected static intparseColor(byte r, byte g, byte b) protected static intParse an Integer from a String.protected static intParse an Integer from a String.(package private) voidparseMainTags(int image, MetadataStore store, ArrayList<BaseZeissReader.Tag> tags) private longParse timestamp from string.protected voidstoreROIs(MetadataStore store) Store basic dimensions in modelMethods 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, coreIndexToSeries, fileGroupOption, flattenHashtables, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCoreIndex, getCoreMetadataList, getCorrection, getCurrentCore, 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, getOptimalTileWidth, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getResolution, getResolutionCount, getRGBChannelCount, getRotationTransform, getSeries, getSeriesCount, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getThumbSizeX, getThumbSizeY, getTileColumns, getTileRows, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, initFile, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThisType, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openBytes, openPlane, openThumbBytes, readPlane, readPlane, readPlane, reopenFile, seriesToCoreIndex, setCoreIndex, setFillColor, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries, 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
-
bpp
protected int bppNumber of bytes per pixel. -
imageFiles
-
offsets
protected int[] offsets -
coordinates
protected int[][] coordinates -
acquisitionDate
protected transient ome.xml.model.primitives.Timestamp acquisitionDate -
timestamps
-
exposureTime
-
cIndex
protected int cIndex -
isJPEG
protected boolean isJPEG -
isZlib
protected boolean isZlib -
realWidth
protected int realWidth -
realHeight
protected int realHeight -
tagsToParse
-
nextEmWave
protected int nextEmWave -
nextExWave
protected int nextExWave -
nextChName
protected int nextChName -
stageX
-
stageY
-
timepoint
protected int timepoint -
channelColors
protected int[] channelColors -
lastPlane
protected int lastPlane -
tiles
-
detectorGain
-
detectorOffset
-
emWavelength
-
exWavelength
-
channelName
-
physicalSizeX
-
physicalSizeY
-
physicalSizeZ
-
rowCount
protected int rowCount -
colCount
protected int colCount -
rawCount
protected int rawCount -
imageDescription
-
channelIndices
-
zIndices
-
timepointIndices
-
tileIndices
-
roiIDs
-
layers
-
-
Constructor Details
-
BaseZeissReader
Constructs a new ZeissZVI reader. -
BaseZeissReader
Constructs a new ZeissZVI reader.
-
-
Method Details
-
initFileMain
- Throws:
FormatExceptionIOException
-
initVars
- Throws:
FormatExceptionIOException
-
countImages
protected void countImages() -
fillMetadataPass1
Read and store basic dimensions in model- Parameters:
store-- Throws:
FormatExceptionIOException
-
fillMetadataPass2
Read and store basic dimensions in model- Parameters:
store-- Throws:
FormatExceptionIOException
-
fillMetadataPass3
Read and store basic dimensions in model- Parameters:
store-- Throws:
FormatExceptionIOException
-
fillMetadataPass4
Read and store basic dimensions in model- Parameters:
store-- Throws:
FormatExceptionIOException
-
fillMetadataPass5
Read and store basic dimensions in model- Parameters:
store-- Throws:
FormatExceptionIOException
-
fillMetadataPass6
Read and store basic dimensions in model- Parameters:
store-- Throws:
FormatExceptionIOException
-
fillMetadataPass7
Store basic dimensions in model- Parameters:
store-- Throws:
FormatExceptionIOException
-
getOptimalTileHeight
public int getOptimalTileHeight()Description copied from interface:IFormatReaderReturns the optimal sub-image height for use with openBytes.- Specified by:
getOptimalTileHeightin interfaceIFormatReader- Overrides:
getOptimalTileHeightin classFormatReader
-
storeROIs
Store basic dimensions in model- Parameters:
store-- Throws:
FormatExceptionIOException
-
get8BitLookupTable
Description copied from interface:IFormatReaderGets the 8-bit color lookup table associated with the most recently opened image. If no image planes have been opened, or ifIFormatReader.isIndexed()returns false, then this may return null. Also, ifIFormatReader.getPixelType()returns anything other thanFormatTools.INT8orFormatTools.UINT8, this method will return null.- Specified by:
get8BitLookupTablein interfaceIFormatReader- Overrides:
get8BitLookupTablein classFormatReader- Throws:
FormatExceptionIOException
-
get16BitLookupTable
Description copied from interface:IFormatReaderGets the 16-bit color lookup table associated with the most recently opened image. If no image planes have been opened, or ifIFormatReader.isIndexed()returns false, then this may return null. Also, ifIFormatReader.getPixelType()returns anything other thanFormatTools.INT16orFormatTools.UINT16, this method will return null.- Specified by:
get16BitLookupTablein interfaceIFormatReader- Overrides:
get16BitLookupTablein classFormatReader- Throws:
FormatExceptionIOException
-
close
Description copied from interface:IFormatReaderCloses the currently open file. If the flag is set, this is all that happens; if unset, it is equivalent to callingCloseable.close().- Specified by:
closein interfaceIFormatReader- Overrides:
closein classFormatReader- Throws:
IOException
-
parseMainTags
void parseMainTags(int image, MetadataStore store, ArrayList<BaseZeissReader.Tag> tags) throws FormatException, IOException - Throws:
FormatExceptionIOException
-
parseInt
Parse an Integer from a String.- Parameters:
number- the number to parse- Returns:
- an Integer. 0 if number was null.
-
parseInt
Parse an Integer from a String.- Parameters:
number- the number to parsedefaultnum- the number to return if number is null or empty- Returns:
- an Integer. 0 if number was null.
-
parseTimestamp
Parse timestamp from string. Note this may be ZVI-specific due to the use of locale-specific date formats in the TIFF XML.- Parameters:
s-- Returns:
- a timestamp
-
parseColor
protected static int parseColor(byte r, byte g, byte b)
-