Package loci.formats
Class SubResolutionFormatReader
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.SubResolutionFormatReader
- All Implemented Interfaces:
Closeable,AutoCloseable,ICompressedTileReader,IFormatHandler,IFormatReader,IMetadataConfigurable,IPyramidHandler
- Direct Known Subclasses:
DicomReader,ImarisHDFReader,MinimalTiffReader,ND2Reader,OMETiffReader
Abstract superclass of all biological file format readers
that can handle image pyramids.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CoreMetadataListList ofCoreMetadataobjects for each series and resolution.Fields 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, LOGGER, metadataOptions, suffixesFields inherited from interface loci.formats.IFormatReader
CAN_GROUP, CANNOT_GROUP, MUST_GROUP -
Constructor Summary
ConstructorsConstructorDescriptionSubResolutionFormatReader(String format, String suffix) Constructs a format reader with the given name and default suffix.SubResolutionFormatReader(String format, String[] suffixes) Constructs a format reader with the given name and default suffixes. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean fileOnly) Closes the currently open file.intcoreIndexToSeries(int index) Returns the series corresponding to the specified core index.protected voidCallFormatReader.updateMetadataLists(Hashtable)on all metadata hashtables.intReturn the index into CoreMetadata of the current resolution/series.Obtains the core metadata values for the current file.protected CoreMetadataGet the CoreMetadata corresponding to the current series and resolutionintGet the current resolution level.intReturn the number of resolutions for the current series.intGets the currently active series.intGets the number of series in this file.protected voidInitializes the given file (parsing header information, etc.).intseriesToCoreIndex(int s) Returns the first core index corresponding to the specified series.voidsetCoreIndex(int no) Set the current resolution/series (ignores subresolutions).voidsetResolution(int no) Set the resolution level.voidsetSeries(int no) Activates the specified series.Methods 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, get16BitLookupTable, get8BitLookupTable, 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, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getRGBChannelCount, getRotationTransform, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getThumbSizeX, getThumbSizeY, 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, isThisType, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openBytes, openPlane, openThumbBytes, readPlane, readPlane, readPlane, reopenFile, 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
-
core
List ofCoreMetadataobjects for each series and resolution.
-
-
Constructor Details
-
SubResolutionFormatReader
Constructs a format reader with the given name and default suffix. -
SubResolutionFormatReader
Constructs a format reader with the given name and default suffixes.
-
-
Method Details
-
initFile
Initializes the given file (parsing header information, etc.). Most subclasses should override this method to perform initialization operations such as parsing metadata.- Overrides:
initFilein classFormatReader- Throws:
FormatException- if a parsing error occurs processing the file.IOException- if an I/O error occurs processing the file
-
flattenHashtables
protected void flattenHashtables()CallFormatReader.updateMetadataLists(Hashtable)on all metadata hashtables.- Overrides:
flattenHashtablesin classFormatReader
-
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
-
getSeriesCount
public int getSeriesCount()Description copied from interface:IFormatReaderGets the number of series in this file.- Specified by:
getSeriesCountin interfaceIFormatReader- Overrides:
getSeriesCountin classFormatReader- See Also:
-
setSeries
public void setSeries(int no) Description copied from interface:IFormatReaderActivates the specified series. This also resets the resolution to 0.- Specified by:
setSeriesin interfaceIFormatReader- Overrides:
setSeriesin classFormatReader- See Also:
-
getSeries
public int getSeries()Description copied from interface:IFormatReaderGets the currently active series.- Specified by:
getSeriesin interfaceIFormatReader- Overrides:
getSeriesin classFormatReader
-
getCoreMetadataList
Description copied from interface:IFormatReaderObtains the core metadata values for the current file.- Specified by:
getCoreMetadataListin interfaceIFormatReader- Overrides:
getCoreMetadataListin classFormatReader
-
seriesToCoreIndex
public int seriesToCoreIndex(int s) Description copied from interface:IFormatReaderReturns the first core index corresponding to the specified series.- Specified by:
seriesToCoreIndexin interfaceIFormatReader- Overrides:
seriesToCoreIndexin classFormatReader
-
coreIndexToSeries
public int coreIndexToSeries(int index) Description copied from interface:IFormatReaderReturns the series corresponding to the specified core index.- Specified by:
coreIndexToSeriesin interfaceIFormatReader- Overrides:
coreIndexToSeriesin classFormatReader
-
getResolutionCount
public int getResolutionCount()Description copied from interface:IPyramidHandlerReturn the number of resolutions for the current series. Resolutions are stored in descending order, so the largest resolution is first and the smallest resolution is last.- Specified by:
getResolutionCountin interfaceIPyramidHandler- Overrides:
getResolutionCountin classFormatReader
-
setResolution
public void setResolution(int no) Description copied from interface:IPyramidHandlerSet the resolution level.- Specified by:
setResolutionin interfaceIPyramidHandler- Overrides:
setResolutionin classFormatReader- See Also:
-
getResolution
public int getResolution()Description copied from interface:IPyramidHandlerGet the current resolution level.- Specified by:
getResolutionin interfaceIPyramidHandler- Overrides:
getResolutionin classFormatReader- See Also:
-
getCoreIndex
public int getCoreIndex()Description copied from interface:IFormatReaderReturn the index into CoreMetadata of the current resolution/series.- Specified by:
getCoreIndexin interfaceIFormatReader- Overrides:
getCoreIndexin classFormatReader
-
setCoreIndex
public void setCoreIndex(int no) Description copied from interface:IFormatReaderSet the current resolution/series (ignores subresolutions). Equivalent to setSeries, but with flattened resolutions always set to false.- Specified by:
setCoreIndexin interfaceIFormatReader- Overrides:
setCoreIndexin classFormatReader
-
getCurrentCore
Get the CoreMetadata corresponding to the current series and resolution- Overrides:
getCurrentCorein classFormatReader- Returns:
- the CoreMetadata
-