public abstract class SubResolutionFormatReader extends FormatReader
Modifier and Type | Field and Description |
---|---|
protected CoreMetadataList |
core
List of
CoreMetadata objects for each series and resolution. |
coreIndex, datasetDescription, domains, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSION
COMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes
CAN_GROUP, CANNOT_GROUP, MUST_GROUP
Constructor and Description |
---|
SubResolutionFormatReader(java.lang.String format,
java.lang.String suffix)
Constructs a format reader with the given name and default suffix.
|
SubResolutionFormatReader(java.lang.String format,
java.lang.String[] suffixes)
Constructs a format reader with the given name and default suffixes.
|
Modifier and Type | Method and Description |
---|---|
void |
close(boolean fileOnly)
Closes the currently open file.
|
int |
coreIndexToSeries(int index)
Returns the series corresponding to the specified core index.
|
protected void |
flattenHashtables()
Call
FormatReader.updateMetadataLists(Hashtable) on
all metadata hashtables. |
int |
getCoreIndex()
Return the index into CoreMetadata of the current resolution/series.
|
java.util.List<CoreMetadata> |
getCoreMetadataList()
Obtains the core metadata values for the current file.
|
protected CoreMetadata |
getCurrentCore()
Get the CoreMetadata corresponding to the current series and resolution
|
int |
getResolution()
Get the current resolution level.
|
int |
getResolutionCount()
Return the number of resolutions for the current series.
|
int |
getSeries()
Gets the currently active series.
|
int |
getSeriesCount()
Gets the number of series in this file.
|
protected void |
initFile(java.lang.String id)
Initializes the given file (parsing header information, etc.).
|
int |
seriesToCoreIndex(int s)
Returns the first core index corresponding to the specified series.
|
void |
setCoreIndex(int no)
Set the current resolution/series (ignores subresolutions).
|
void |
setResolution(int no)
Set the resolution level.
|
void |
setSeries(int no)
Activates the specified series.
|
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, 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, 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, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, updateMetadataLists
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, setMetadataOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat, getNativeDataType, getSuffixes
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
protected CoreMetadataList core
CoreMetadata
objects for each series and resolution.public SubResolutionFormatReader(java.lang.String format, java.lang.String suffix)
public SubResolutionFormatReader(java.lang.String format, java.lang.String[] suffixes)
protected void initFile(java.lang.String id) throws FormatException, java.io.IOException
initFile
in class FormatReader
FormatException
- if a parsing error occurs processing the file.java.io.IOException
- if an I/O error occurs processing the fileprotected void flattenHashtables()
FormatReader.updateMetadataLists(Hashtable)
on
all metadata hashtables.flattenHashtables
in class FormatReader
public void close(boolean fileOnly) throws java.io.IOException
IFormatReader
Closeable.close()
.close
in interface IFormatReader
close
in class FormatReader
java.io.IOException
public int getSeriesCount()
IFormatReader
getSeriesCount
in interface IFormatReader
getSeriesCount
in class FormatReader
Note that the value can change depending upon whether resolutions are flattened,
and so reader implementations should use the series and resolutions fields internally.
public void setSeries(int no)
IFormatReader
setSeries
in interface IFormatReader
setSeries
in class FormatReader
Note that the value can change depending upon whether resolutions are flattened,
and so reader implementations should use the series and resolutions fields internally.
public int getSeries()
IFormatReader
getSeries
in interface IFormatReader
getSeries
in class FormatReader
public java.util.List<CoreMetadata> getCoreMetadataList()
IFormatReader
getCoreMetadataList
in interface IFormatReader
getCoreMetadataList
in class FormatReader
public int seriesToCoreIndex(int s)
IFormatReader
seriesToCoreIndex
in interface IFormatReader
seriesToCoreIndex
in class FormatReader
public int coreIndexToSeries(int index)
IFormatReader
coreIndexToSeries
in interface IFormatReader
coreIndexToSeries
in class FormatReader
public int getResolutionCount()
IPyramidHandler
getResolutionCount
in interface IPyramidHandler
getResolutionCount
in class FormatReader
public void setResolution(int no)
IPyramidHandler
setResolution
in interface IPyramidHandler
setResolution
in class FormatReader
IPyramidHandler.getResolutionCount()
public int getResolution()
IPyramidHandler
getResolution
in interface IPyramidHandler
getResolution
in class FormatReader
IPyramidHandler.getResolutionCount()
public int getCoreIndex()
IFormatReader
getCoreIndex
in interface IFormatReader
getCoreIndex
in class FormatReader
public void setCoreIndex(int no)
IFormatReader
setCoreIndex
in interface IFormatReader
setCoreIndex
in class FormatReader
protected CoreMetadata getCurrentCore()
getCurrentCore
in class FormatReader
Copyright © 2022 Open Microscopy Environment