Package loci.formats.in
Class MetamorphReader
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.SubResolutionFormatReader
loci.formats.in.MinimalTiffReader
loci.formats.in.BaseTiffReader
loci.formats.in.MetamorphReader
- All Implemented Interfaces:
Closeable,AutoCloseable,loci.formats.ICompressedTileReader,loci.formats.IFormatHandler,loci.formats.IFormatReader,loci.formats.IMetadataConfigurable,loci.formats.IPyramidHandler
public class MetamorphReader
extends loci.formats.in.BaseTiffReader
Reader is the file format reader for Metamorph STK files.
- Author:
- Eric Kjellman egkjellman at wisc.edu, Melissa Linkert melissa at glencoesoftware.com, Curtis Rueden ctrueden at wisc.edu, Sebastien Huart Sebastien dot Huart at curie.fr
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final String[]static final Stringstatic final String[]static final PatternFields inherited from class loci.formats.in.BaseTiffReader
DATE_FORMATS, physicalSizeX, physicalSizeYFields inherited from class loci.formats.in.MinimalTiffReader
canSeparateSeries, equalStrips, ifds, lastPlane, mergeSubIFDs, noSubresolutions, seriesToIFD, subResolutionIFDs, thumbnailIFDs, tiffParser, use64BitFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean fileOnly) static StringdecodeDate(int julian) Converts a Julian date value into a human-readable string.static StringdecodeTime(int millis) Converts a time value in milliseconds into a human-readable string.intString[]String[]getSeriesUsedFiles(boolean noPixels) protected ome.units.quantity.Length[]protected ome.units.quantity.Length[]protected voidprotected voidstatic StringintFormat(int myint, int digits) Formats an integer value with leading 0s if needed.static StringintFormatMax(int myint, int maxint) Formats an integer with leading 0 using maximum sequence number.booleanisSingleFile(String id) booleanisThisType(String name, boolean open) booleanisThisType(loci.common.RandomAccessInputStream stream) byte[]openBytes(int no, byte[] buf, int x, int y, int w, int h) voidMethods inherited from class loci.formats.in.BaseTiffReader
getExifTagName, getImageCreationDate, initMetadata, initMetadataStore, put, put, put, put, put, put, put, put, put, put, putDouble, putInt, putStringMethods inherited from class loci.formats.in.MinimalTiffReader
copyTile, get16BitLookupTable, get8BitLookupTable, getCompressedByteCount, getIFDs, getOptimalTileHeight, getOptimalTileWidth, getThumbnailIFDs, getThumbSizeX, getThumbSizeY, getTileIndex, initTiffParser, openThumbBytes, setResolutionLevelMethods 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, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCorrection, getCurrentFile, getDatasetStructureDescription, getDetectorType, getDimensionOrder, getDimensionOrder, 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, 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, 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
getTileBoundingBox, getTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytesMethods inherited from interface loci.formats.IFormatHandler
getFormat, getNativeDataType, getSuffixesMethods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
-
Field Details
-
SHORT_DATE_FORMAT
- See Also:
-
LONG_DATE_FORMAT
- See Also:
-
ND_SUFFIX
-
STK_SUFFIX
-
WELL_COORDS
-
-
Constructor Details
-
MetamorphReader
public MetamorphReader()Constructs a new Metamorph reader.
-
-
Method Details
-
getDomains
- Specified by:
getDomainsin interfaceloci.formats.IFormatReader- Overrides:
getDomainsin classloci.formats.FormatReader
-
isThisType
- Specified by:
isThisTypein interfaceloci.formats.IFormatReader- Overrides:
isThisTypein classloci.formats.FormatReader
-
isThisType
- Specified by:
isThisTypein interfaceloci.formats.IFormatReader- Overrides:
isThisTypein classloci.formats.in.MinimalTiffReader- Throws:
IOException
-
isSingleFile
- Specified by:
isSingleFilein interfaceloci.formats.IFormatReader- Overrides:
isSingleFilein classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException
-
fileGroupOption
- Specified by:
fileGroupOptionin interfaceloci.formats.IFormatReader- Overrides:
fileGroupOptionin classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException
-
getSeriesUsedFiles
- Specified by:
getSeriesUsedFilesin interfaceloci.formats.IFormatReader- Overrides:
getSeriesUsedFilesin classloci.formats.FormatReader
-
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- Overrides:
openBytesin classloci.formats.in.MinimalTiffReader- Throws:
loci.formats.FormatExceptionIOException- See Also:
-
IFormatReader.openBytes(int, byte[], int, int, int, int)
-
reopenFile
- Specified by:
reopenFilein interfaceloci.formats.IFormatReader- Overrides:
reopenFilein classloci.formats.in.MinimalTiffReader- Throws:
IOException
-
close
- Specified by:
closein interfaceloci.formats.IFormatReader- Overrides:
closein classloci.formats.in.BaseTiffReader- Throws:
IOException
-
initFile
- Overrides:
initFilein classloci.formats.in.BaseTiffReader- Throws:
loci.formats.FormatExceptionIOException
-
initStandardMetadata
- Overrides:
initStandardMetadatain classloci.formats.in.BaseTiffReader- Throws:
loci.formats.FormatExceptionIOException
-
getStageX
protected ome.units.quantity.Length[] getStageX() -
getStageY
protected ome.units.quantity.Length[] getStageY() -
decodeDate
Converts a Julian date value into a human-readable string. -
decodeTime
Converts a time value in milliseconds into a human-readable string. Note that the date and time are handled separately, so this method is only concerned with the time of day. The time of day in milliseconds is stored as a 32-bit int in Metamorph files, but is expected to be a positive integer less than the number of milliseconds in one day.- Parameters:
millis- milliseconds elapsed in the relevant day- See Also:
-
intFormat
Formats an integer value with leading 0s if needed. -
intFormatMax
Formats an integer with leading 0 using maximum sequence number.- Parameters:
myint- integer to formatmaxint- max of "myint"- Returns:
- String
-