public class LiFlimReader extends FormatReader
Modifier and Type | Class and Description |
---|---|
private class |
LiFlimReader.ROI |
core, coreIndex, datasetDescription, domains, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataOptions, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSION
COMPRESSION_SUFFIXES, currentId, format, LOGGER, suffixes
CAN_GROUP, CANNOT_GROUP, MUST_GROUP
Constructor and Description |
---|
LiFlimReader()
Constructs a new LI-FLIM reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close(boolean fileOnly)
Closes the currently open file.
|
private int |
getPixelTypeFromString(String type) |
private void |
initCoreMetadata() |
protected void |
initFile(String id)
Initializes the given file (parsing header information, etc.).
|
private void |
initOMEMetadata() |
private void |
initOriginalMetadata() |
byte[] |
openBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
Obtains a sub-image of the specified image plane
into a pre-allocated byte array.
|
private void |
parseHeader() |
private void |
prepareGZipStream(int no) |
private void |
skip(InputStream is,
long num) |
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, get16BitLookupTable, get8BitLookupTable, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCoreIndex, getCoreMetadataList, getCorrection, getCurrentFile, getDatasetStructureDescription, getDetectorType, getDimensionOrder, getDimensionOrder, getDomains, getEffectiveSizeC, getExperimentType, getFilamentType, getFillRule, getFilterType, getFontFamily, getFontStyle, getGlobalMeta, getGlobalMetadata, getIlluminationType, getImageCount, getImmersion, getIndex, getIndex, getLaserMedium, getLaserType, getLineCap, getMarker, getMedium, getMetadataOptions, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getMicrobeamManipulationType, getMicroscopeType, getModuloC, getModuloT, getModuloZ, getNamingConvention, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getResolution, getResolutionCount, getRGBChannelCount, getRotationTransform, getSeries, getSeriesCount, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getSupportedMetadataLevels, 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, openPlane, openThumbBytes, readPlane, readPlane, reopenFile, seriesToCoreIndex, setCoreIndex, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataOptions, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries
checkSuffix, checkSuffix, getFormat, getNativeDataType, getSuffixes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat, getNativeDataType, getSuffixes
public static final String INFO_TABLE
public static final String LAYOUT_TABLE
public static final String BACKGROUND_TABLE
public static final String VERSION_KEY
public static final String COMPRESSION_KEY
public static final String DATATYPE_KEY
public static final String C_KEY
public static final String X_KEY
public static final String Y_KEY
public static final String Z_KEY
public static final String P_KEY
public static final String F_KEY
public static final String T_KEY
public static final String TIMESTAMP_KEY
public static final String[] KNOWN_VERSIONS
public static final String COMPRESSION_NONE
public static final String COMPRESSION_GZIP
public static final String DATATYPE_UINT8
public static final String DATATYPE_INT8
public static final String DATATYPE_UINT16
public static final String DATATYPE_INT16
public static final String DATATYPE_UINT32
public static final String DATATYPE_INT32
public static final String DATATYPE_REAL32
public static final String DATATYPE_REAL64
private long dataOffset
private IniList ini
private String version
private String compression
private String datatype
private String channels
private String xLen
private String yLen
private String zLen
private String phases
private String frequencies
private String timestamps
private String backgroundDatatype
private String backgroundX
private String backgroundY
private String backgroundC
private String backgroundZ
private String backgroundT
private String backgroundP
private String backgroundF
private int numRegions
private Map<Integer,LiFlimReader.ROI> rois
private Double exposureTime
private boolean gzip
private DataInputStream gz
private int gzPos
private int gzSeries
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException
IFormatReader
openBytes
in interface IFormatReader
openBytes
in class FormatReader
no
- the image index within the file.buf
- a pre-allocated buffer.x
- X coordinate of the upper-left corner of the sub-imagey
- Y coordinate of the upper-left corner of the sub-imagew
- width of the sub-imageh
- height of the sub-imagebuf
for convenience.FormatException
- if there was a problem parsing the metadata of the
file.IOException
- if there was a problem reading the file.IFormatReader.openBytes(int, byte[], int, int, int, int)
public void close(boolean fileOnly) throws IOException
IFormatReader
Closeable.close()
.close
in interface IFormatReader
close
in class FormatReader
IOException
protected void initFile(String id) throws FormatException, IOException
FormatReader
initFile
in class FormatReader
FormatException
- if a parsing error occurs processing the file.IOException
- if an I/O error occurs processing the fileprivate void parseHeader() throws IOException
IOException
private void initOriginalMetadata()
private void initCoreMetadata() throws FormatException
FormatException
private void initOMEMetadata()
private int getPixelTypeFromString(String type) throws FormatException
FormatException
private void prepareGZipStream(int no) throws IOException
IOException
private void skip(InputStream is, long num) throws IOException
IOException
Copyright © 2015 Open Microscopy Environment