public class ZeissZVIReader extends BaseZeissReader
BaseZeissReader.Charset, BaseZeissReader.Context, BaseZeissReader.DrawStyle, BaseZeissReader.FeatureType, BaseZeissReader.FillStyle, BaseZeissReader.Layer, BaseZeissReader.LineEndPositions, BaseZeissReader.LineEndStyle, BaseZeissReader.PointStyle, BaseZeissReader.Shape, BaseZeissReader.Tag, BaseZeissReader.TextAlignment
Modifier and Type | Field and Description |
---|---|
protected loci.common.RandomAccessInputStream |
currentPlane |
protected int |
currentPlaneIndex |
protected java.lang.String[] |
files |
protected POIService |
poi |
private static long |
ROI_SIGNATURE |
static int |
ZVI_MAGIC_BYTES |
acquisitionDate, bpp, channelColors, channelIndices, channelName, cIndex, colCount, coordinates, detectorGain, detectorOffset, emWavelength, exposureTime, exWavelength, imageDescription, imageFiles, isJPEG, isZlib, lastPlane, layers, nextChName, nextEmWave, nextExWave, offsets, physicalSizeX, physicalSizeY, physicalSizeZ, rawCount, realHeight, realWidth, roiIDs, rowCount, stageX, stageY, tagsToParse, tileIndices, tiles, timepoint, timepointIndices, timestamps, zIndices
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 |
---|
ZeissZVIReader()
Constructs a new ZeissZVI reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close(boolean fileOnly)
Closes the currently open file.
|
protected void |
countImages() |
protected void |
fillMetadataPass1(MetadataStore store)
Read and store basic dimensions in model
|
protected void |
fillMetadataPass3(MetadataStore store)
Read and store basic dimensions in model
|
protected void |
fillMetadataPass5(MetadataStore store)
Read and store basic dimensions in model
|
private int |
getImageNumber(java.lang.String dirName,
int defaultNumber) |
private java.lang.String |
getNextTag(loci.common.RandomAccessInputStream s) |
protected void |
initFile(java.lang.String id)
Initializes the given file (parsing header information, etc.).
|
private void |
initPOIService() |
protected void |
initVars(java.lang.String id) |
boolean |
isThisType(loci.common.RandomAccessInputStream stream)
Checks if the given stream is a valid stream for this file format.
|
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 |
parseROIs(loci.common.RandomAccessInputStream s,
int imageNum,
java.lang.String name,
MetadataStore store)
Parse ROI data from the given RandomAccessInputStream and store it in the
given MetadataStore.
|
protected java.lang.String |
parseROIString(loci.common.RandomAccessInputStream s) |
private void |
parseTags(int image,
java.lang.String file,
MetadataStore store)
Parse all of the tags in a stream.
|
fillMetadataPass2, fillMetadataPass4, fillMetadataPass6, fillMetadataPass7, get16BitLookupTable, get8BitLookupTable, getOptimalTileHeight, initFileMain, parseColor, parseInt, parseInt, parseMainTags, storeROIs
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, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCoreIndex, getCoreMetadataList, getCorrection, getCurrentCore, 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, 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, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openPlane, openThumbBytes, readPlane, readPlane, readPlane, reopenFile, seriesToCoreIndex, setCoreIndex, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries, 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
public static final int ZVI_MAGIC_BYTES
private static final long ROI_SIGNATURE
protected transient POIService poi
protected java.lang.String[] files
protected transient loci.common.RandomAccessInputStream currentPlane
protected transient int currentPlaneIndex
public boolean isThisType(loci.common.RandomAccessInputStream stream) throws java.io.IOException
IFormatReader
isThisType
in interface IFormatReader
isThisType
in class FormatReader
stream
- A RandomAccessInputStream representing the file to check.
The first byte in the stream is assumed to be the first byte
in the file.java.io.IOException
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, java.io.IOException
IFormatReader
openBytes
in interface IFormatReader
openBytes
in class FormatReader
no
- the plane index within the current series.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.java.io.IOException
- if there was a problem reading the file.IFormatReader.openBytes(int, byte[], int, int, int, int)
public void close(boolean fileOnly) throws java.io.IOException
IFormatReader
Closeable.close()
.close
in interface IFormatReader
close
in class BaseZeissReader
java.io.IOException
protected void initFile(java.lang.String id) throws FormatException, java.io.IOException
FormatReader
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 initVars(java.lang.String id) throws FormatException, java.io.IOException
initVars
in class BaseZeissReader
FormatException
java.io.IOException
private void initPOIService() throws FormatException, java.io.IOException
FormatException
java.io.IOException
protected void fillMetadataPass1(MetadataStore store) throws FormatException, java.io.IOException
BaseZeissReader
fillMetadataPass1
in class BaseZeissReader
FormatException
java.io.IOException
protected void fillMetadataPass3(MetadataStore store) throws FormatException, java.io.IOException
BaseZeissReader
fillMetadataPass3
in class BaseZeissReader
FormatException
java.io.IOException
protected void fillMetadataPass5(MetadataStore store) throws FormatException, java.io.IOException
BaseZeissReader
fillMetadataPass5
in class BaseZeissReader
FormatException
java.io.IOException
protected void countImages()
countImages
in class BaseZeissReader
private int getImageNumber(java.lang.String dirName, int defaultNumber)
private java.lang.String getNextTag(loci.common.RandomAccessInputStream s) throws java.io.IOException
java.io.IOException
private void parseTags(int image, java.lang.String file, MetadataStore store) throws FormatException, java.io.IOException
FormatException
java.io.IOException
private void parseROIs(loci.common.RandomAccessInputStream s, int imageNum, java.lang.String name, MetadataStore store) throws java.io.IOException
java.io.IOException
protected java.lang.String parseROIString(loci.common.RandomAccessInputStream s) throws java.io.IOException
java.io.IOException
Copyright © 2021 Open Microscopy Environment