public class LiFlimReader extends FormatReader
Modifier and Type | Class and Description |
---|---|
private class |
LiFlimReader.ROI |
Modifier and Type | Field and Description |
---|---|
static String |
BACKGROUND_TABLE |
private String |
backgroundC |
private String |
backgroundDatatype |
private String |
backgroundF |
private String |
backgroundP |
private String |
backgroundT |
private String |
backgroundX |
private String |
backgroundY |
private String |
backgroundZ |
static String |
C_KEY |
private String |
channels |
private String |
compression |
static String |
COMPRESSION_GZIP |
static String |
COMPRESSION_KEY |
static String |
COMPRESSION_NONE |
private long |
dataOffset
Offset to start of pixel data.
|
private String |
datatype |
static String |
DATATYPE_INT16 |
static String |
DATATYPE_INT32 |
static String |
DATATYPE_INT8 |
static String |
DATATYPE_KEY |
static String |
DATATYPE_REAL32 |
static String |
DATATYPE_REAL64 |
static String |
DATATYPE_UINT16 |
static String |
DATATYPE_UINT32 |
static String |
DATATYPE_UINT8 |
private Double |
exposureTime |
private ome.units.unit.Unit<ome.units.quantity.Time> |
exposureTimeUnit |
static String |
F_KEY |
private String |
frequencies |
private DataInputStream |
gz
Stream to use for reading gzip-compressed pixel data.
|
private boolean |
gzip
True if gzip compression was used to deflate the pixels.
|
private int |
gzPos
Image number indicating position in gzip stream.
|
private int |
gzSeries
Series number indicating position in gzip stream.
|
static String |
INFO_TABLE |
private loci.common.IniList |
ini
Parsed configuration data.
|
static String[] |
KNOWN_VERSIONS |
static String |
LAYOUT_TABLE |
private int |
numRegions |
static String |
P_KEY |
private String |
phases |
private Map<Integer,LiFlimReader.ROI> |
rois |
private Map<Integer,String> |
stampValues |
static String |
T_KEY |
static String |
TIMESTAMP_KEY |
private String |
timestamps |
private String |
version |
static String |
VERSION_KEY |
static String |
X_KEY |
private String |
xLen |
static String |
Y_KEY |
private String |
yLen |
static String |
Z_KEY |
private String |
zLen |
core, 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 |
---|
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, getMarker, getMedium, 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, 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, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries
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
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 loci.common.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 ome.units.unit.Unit<ome.units.quantity.Time> exposureTimeUnit
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 © 2017 Open Microscopy Environment