public class FileStitcher extends ReaderWrapper
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
FileStitcher.ExternalSeries |
| Modifier and Type | Field and Description |
|---|---|
private ClassList<IFormatReader> |
classList |
private java.util.ArrayList<CoreMetadata> |
core
Core metadata.
|
private int |
coreIndex
The number of the current series.
|
private boolean |
doNotChangePattern |
private FileStitcher.ExternalSeries[] |
externals |
private boolean |
group |
private int[][] |
lenC
Component lengths for each axis type.
|
private int[][] |
lenT
Component lengths for each axis type.
|
private int[][] |
lenZ
Component lengths for each axis type.
|
private static org.slf4j.Logger |
LOGGER |
private static int |
MAX_READERS |
private boolean |
noStitch |
private boolean |
patternIds
Whether string ids given should be treated
as file patterns rather than single file paths.
|
private int |
series
The number of the current series (non flat).
|
private int[] |
sizeC
Dimensional axis lengths per file.
|
private int[] |
sizeT
Dimensional axis lengths per file.
|
private int[] |
sizeZ
Dimensional axis lengths per file.
|
private MetadataStore |
store |
readerCAN_GROUP, CANNOT_GROUP, MUST_GROUP| Constructor and Description |
|---|
FileStitcher()
Constructs a FileStitcher around a new image reader.
|
FileStitcher(boolean patternIds)
Constructs a FileStitcher around a new image reader.
|
FileStitcher(IFormatReader r)
Constructs a FileStitcher with the given reader.
|
FileStitcher(IFormatReader r,
boolean patternIds)
Constructs a FileStitcher with the given reader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canChangePattern() |
void |
close() |
void |
close(boolean fileOnly)
Closes the currently open file.
|
protected void |
computeAxisLengths()
Computes axis length arrays, and total axis lengths.
|
protected int[] |
computeIndices(int no)
Gets the file index, and image index into that file,
corresponding to the given global image index.
|
int |
coreIndexToSeries(int index)
Returns the series corresponding to the specified core index.
|
FilePattern |
findPattern(java.lang.String id) |
java.lang.String[] |
findPatterns(java.lang.String id)
Finds the file pattern for the given ID, based on the state of the file
stitcher.
|
short[][] |
get16BitLookupTable()
Gets the 16-bit color lookup table associated with
the most recently opened image.
|
byte[][] |
get8BitLookupTable()
Gets the 8-bit color lookup table associated with
the most recently opened image.
|
int |
getAdjustedIndex(int no)
Gets the local reader index for use with the given image plane.
|
FileInfo[] |
getAdvancedSeriesUsedFiles(boolean noPixels)
Returns an array of FileInfo objects representing the files needed to
open the current series.
|
FileInfo[] |
getAdvancedUsedFiles(boolean noPixels)
Returns an array of FileInfo objects representing the files needed
to open this dataset.
|
AxisGuesser |
getAxisGuesser()
Gets the axis guesser object used to guess
which dimensional axes are which.
|
int[] |
getAxisTypes()
Gets the axis type for each dimensional block.
|
int |
getBitsPerPixel()
Gets the number of valid bits per pixel.
|
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.
|
java.lang.String |
getDimensionOrder()
Gets a five-character string representing the
dimension order in which planes will be returned.
|
private int |
getExternalSeries() |
private int |
getExternalSeries(int currentSeries) |
FilePattern |
getFilePattern()
Gets the file pattern object used to build the list of files.
|
int |
getImageCount()
Determines the number of image planes in the current file.
|
int |
getIndex(int z,
int c,
int t)
Gets the rasterized index corresponding
to the given Z, C and T coordinates (real sizes).
|
int |
getIndex(int z,
int c,
int t,
int moduloZ,
int moduloC,
int moduloT)
Gets the rasterized index corresponding to the given Z, C, T,
moduloZ, moduloC and moduloT coordinates (effective sizes).
|
MetadataStore |
getMetadataStore()
Retrieves the current metadata store for this reader.
|
java.lang.Object |
getMetadataStoreRoot()
Retrieves the current metadata store's root object.
|
int |
getPixelType()
Gets the pixel type.
|
IFormatReader |
getReader()
Gets the wrapped reader prototype.
|
IFormatReader |
getReader(int no)
Gets the reader appropriate for use with the given image plane.
|
DimensionSwapper |
getReader(int series,
int no)
Gets the reader that should be used with the given series and image plane.
|
int |
getRequiredDirectories(java.lang.String[] files)
Returns the number of parent directories that are important when
processing the given list of files.
|
int |
getResolution()
Get the current resolution level.
|
int |
getSeries()
Gets the currently active series.
|
int |
getSeriesCount()
Gets the number of series in this file.
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getSeriesMetadata()
Obtains the hashtable containing metadata field/value pairs from the
current series in the current file.
|
java.lang.String[] |
getSeriesUsedFiles()
Returns an array of filenames needed to open the current series.
|
java.lang.String[] |
getSeriesUsedFiles(boolean noPixels)
Returns an array of filenames needed to open the current series.
|
int |
getSizeC()
Gets the size of the C dimension.
|
int |
getSizeT()
Gets the size of the T dimension.
|
int |
getSizeX()
Gets the size of the X dimension.
|
int |
getSizeY()
Gets the size of the Y dimension.
|
int |
getSizeZ()
Gets the size of the Z dimension.
|
int |
getThumbSizeX()
Get the size of the X dimension for the thumbnail.
|
int |
getThumbSizeY()
Get the size of the Y dimension for the thumbnail.
|
Codec |
getTileCodec(int no)
Retrieve a codec that can be used to decompress compressed tiles.
|
CodecOptions |
getTileCodecOptions(int no,
int x,
int y)
Retrieve codec options that can be used to decompressed the specified tile.
|
IFormatReader[] |
getUnderlyingReaders()
Retrieves all underlying readers.
|
java.lang.String[] |
getUsedFiles()
Returns an array of filenames needed to open this dataset.
|
java.lang.String[] |
getUsedFiles(boolean noPixels)
Returns an array of filenames needed to open this dataset.
|
int[] |
getZCTCoords(int index)
Gets the Z, C and T coordinates (real sizes) corresponding to the
given rasterized index value.
|
int[] |
getZCTModuloCoords(int index)
Gets the Z, C, T, moduloZ, moduloC and moduloT coordinates
(effective sizes) corresponding to the given rasterized index
value.
|
protected void |
initFile(java.lang.String id)
Initializes the given file or file pattern.
|
protected void |
initReader(int sno,
int fno) |
boolean |
isFalseColor()
Returns false if
IFormatReader.isIndexed() is false, or if IFormatReader.isIndexed()
is true and the lookup table represents "real" color data. |
boolean |
isGroupFiles()
Returns true if we should group files in multi-file formats.
|
boolean |
isIndexed()
Gets whether the image planes are indexed color.
|
boolean |
isInterleaved()
Gets whether or not the channels are interleaved.
|
boolean |
isInterleaved(int subC)
Gets whether or not the given sub-channel is interleaved.
|
boolean |
isLittleEndian()
Gets whether the data is in little-endian format.
|
boolean |
isOrderCertain()
Gets whether the dimension order and sizes are known, or merely guesses.
|
boolean |
isRGB()
Checks if the image planes in the file have more than one channel per
IFormatReader.openBytes(int) call. |
boolean |
isThumbnailSeries()
Gets whether the current series is a lower resolution copy of a different
series.
|
boolean |
isUsingPatternIds()
Gets whether the reader is using file patterns for IDs.
|
byte[] |
openBytes(int no)
Obtains the specified image plane from the current file as a byte array.
|
byte[] |
openBytes(int no,
byte[] buf)
Obtains the specified image plane from the current file into a
pre-allocated byte array of
(sizeX * sizeY * bytesPerPixel * RGB channel count).
|
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.
|
byte[] |
openBytes(int no,
int x,
int y,
int w,
int h)
Obtains a sub-image of the specified image plane,
whose upper-left corner is given by (x, y).
|
byte[] |
openCompressedBytes(int no,
byte[] buf,
int x,
int y)
Retrieve the specified tile without performing any decompression.
|
byte[] |
openCompressedBytes(int no,
int x,
int y)
Retrieve the specified tile without performing any decompression.
|
java.lang.Object |
openPlane(int no,
int x,
int y,
int w,
int h)
Obtains the specified image plane (or sub-image thereof) in the reader's
native data structure.
|
byte[] |
openThumbBytes(int no)
Obtains a thumbnail for the specified image plane from the current file,
as a byte array.
|
void |
reopenFile()
Reopen any files that were closed, and which are expected to be open
while the reader is open.
|
int |
seriesToCoreIndex(int series)
Returns the first core index corresponding to the specified series.
|
void |
setAxisTypes(int[] axes)
Sets the axis type for each dimensional block.
|
void |
setCanChangePattern(boolean doChange) |
void |
setCoreIndex(int no)
Set the current resolution/series (ignores subresolutions).
|
void |
setFlattenedResolutions(boolean flatten)
Set whether or not to flatten resolutions into individual series.
|
void |
setGroupFiles(boolean group)
Specifies whether or not to force grouping in multi-file formats.
|
void |
setId(java.lang.String id)
Sets the current file name.
|
void |
setMetadataOptions(MetadataOptions options) |
void |
setMetadataStore(MetadataStore store)
Sets the default metadata store for this reader.
|
void |
setNormalized(boolean normalize)
Specifies whether or not to normalize float data.
|
void |
setOriginalMetadataPopulated(boolean populate)
Specifies whether or not to save proprietary metadata
in the MetadataStore.
|
void |
setReaderClassList(ClassList<IFormatReader> classList)
Set the ClassList object to use when constructing any helper readers.
|
void |
setResolution(int no)
Set the resolution level.
|
void |
setSeries(int no)
Activates the specified series.
|
void |
setUsingPatternIds(boolean patternIds)
Sets whether the reader is using file patterns for IDs.
|
duplicate, fileGroupOption, getCurrentFile, getDatasetStructureDescription, getDomains, getEffectiveSizeC, getFillColor, getFormat, getGlobalMetadata, getMetadataOptions, getMetadataValue, getModuloC, getModuloT, getModuloZ, getNativeDataType, getOptimalTileHeight, getOptimalTileWidth, getPossibleDomains, getResolutionCount, getRGBChannelCount, getSeriesMetadataValue, getSuffixes, getSupportedMetadataLevels, getTileColumns, getTileRows, hasCompanionFiles, hasFlattenedResolutions, isMetadataComplete, isMetadataFiltered, isNormalized, isOriginalMetadataPopulated, isSingleFile, isThisType, isThisType, isThisType, isThisType, setFillColor, setMetadataFiltered, unwrap, unwrap, unwrapprivate static final org.slf4j.Logger LOGGER
private static final int MAX_READERS
private boolean patternIds
private boolean doNotChangePattern
private int[] sizeZ
private int[] sizeC
private int[] sizeT
private int[][] lenZ
private int[][] lenC
private int[][] lenT
private java.util.ArrayList<CoreMetadata> core
private int coreIndex
private int series
private boolean noStitch
private boolean group
private MetadataStore store
private FileStitcher.ExternalSeries[] externals
private ClassList<IFormatReader> classList
public FileStitcher()
public FileStitcher(boolean patternIds)
patternIds - Whether string ids given should be treated as file
patterns rather than single file paths.public FileStitcher(IFormatReader r)
r - The reader to use for reading stitched files.public FileStitcher(IFormatReader r, boolean patternIds)
r - The reader to use for reading stitched files.patternIds - Whether string ids given should be treated as file
patterns rather than single file paths.public void setReaderClassList(ClassList<IFormatReader> classList)
public IFormatReader getReader()
getReader in class ReaderWrapperpublic void setUsingPatternIds(boolean patternIds)
public boolean isUsingPatternIds()
public void setCanChangePattern(boolean doChange)
public boolean canChangePattern()
public IFormatReader getReader(int no) throws FormatException, java.io.IOException
FormatExceptionjava.io.IOExceptionpublic DimensionSwapper getReader(int series, int no)
public int getAdjustedIndex(int no)
throws FormatException,
java.io.IOException
FormatExceptionjava.io.IOExceptionpublic int[] getAxisTypes()
public void setAxisTypes(int[] axes)
throws FormatException
axes - An array containing values from the enumeration:
FormatExceptionpublic FilePattern getFilePattern()
public AxisGuesser getAxisGuesser()
public FilePattern findPattern(java.lang.String id)
public java.lang.String[] findPatterns(java.lang.String id)
public int getRequiredDirectories(java.lang.String[] files)
throws FormatException,
java.io.IOException
IFormatReadergetRequiredDirectories in interface IFormatReadergetRequiredDirectories in class ReaderWrapperFormatExceptionjava.io.IOExceptionpublic int getImageCount()
IFormatReadergetImageCount in interface IFormatReadergetImageCount in class ReaderWrapperpublic boolean isRGB()
IFormatReaderIFormatReader.openBytes(int) call.
This method returns true if and only if IFormatReader.getRGBChannelCount()
returns a value greater than 1.isRGB in interface IFormatReaderisRGB in class ReaderWrapperpublic int getSizeX()
IFormatReadergetSizeX in interface IFormatReadergetSizeX in class ReaderWrapperpublic int getSizeY()
IFormatReadergetSizeY in interface IFormatReadergetSizeY in class ReaderWrapperpublic int getSizeZ()
IFormatReadergetSizeZ in interface IFormatReadergetSizeZ in class ReaderWrapperpublic int getSizeC()
IFormatReadergetSizeC in interface IFormatReadergetSizeC in class ReaderWrapperpublic int getSizeT()
IFormatReadergetSizeT in interface IFormatReadergetSizeT in class ReaderWrapperpublic int getPixelType()
IFormatReadergetPixelType in interface IFormatReadergetPixelType in class ReaderWrapperFormatTools
static pixel types such as FormatTools.INT8.public int getBitsPerPixel()
IFormatReaderIFormatReader.getPixelType().getBitsPerPixel in interface IFormatReadergetBitsPerPixel in class ReaderWrapperpublic boolean isIndexed()
IFormatReaderIFormatReader.getSizeC(),
IFormatReader.getEffectiveSizeC() or IFormatReader.getRGBChannelCount().isIndexed in interface IFormatReaderisIndexed in class ReaderWrapperpublic boolean isFalseColor()
IFormatReaderIFormatReader.isIndexed() is false, or if IFormatReader.isIndexed()
is true and the lookup table represents "real" color data. Returns true
if IFormatReader.isIndexed() is true and the lookup table is only present to aid
in visualization.isFalseColor in interface IFormatReaderisFalseColor in class ReaderWrapperpublic byte[][] get8BitLookupTable()
throws FormatException,
java.io.IOException
IFormatReaderIFormatReader.isIndexed() returns
false, then this may return null. Also, if IFormatReader.getPixelType() returns
anything other than FormatTools.INT8 or FormatTools.UINT8,
this method will return null.get8BitLookupTable in interface IFormatReaderget8BitLookupTable in class ReaderWrapperFormatExceptionjava.io.IOExceptionpublic short[][] get16BitLookupTable()
throws FormatException,
java.io.IOException
IFormatReaderIFormatReader.isIndexed() returns
false, then this may return null. Also, if IFormatReader.getPixelType() returns
anything other than FormatTools.INT16 or FormatTools.UINT16, this method will return null.get16BitLookupTable in interface IFormatReaderget16BitLookupTable in class ReaderWrapperFormatExceptionjava.io.IOExceptionpublic int getThumbSizeX()
IFormatReadergetThumbSizeX in interface IFormatReadergetThumbSizeX in class ReaderWrapperpublic int getThumbSizeY()
IFormatReadergetThumbSizeY in interface IFormatReadergetThumbSizeY in class ReaderWrapperpublic boolean isLittleEndian()
IFormatReaderisLittleEndian in interface IFormatReaderisLittleEndian in class ReaderWrapperpublic java.lang.String getDimensionOrder()
IFormatReaderIFormatReader.isInterleaved() method will return true.getDimensionOrder in interface IFormatReadergetDimensionOrder in class ReaderWrapperpublic boolean isOrderCertain()
IFormatReaderisOrderCertain in interface IFormatReaderisOrderCertain in class ReaderWrapperpublic boolean isThumbnailSeries()
IFormatReaderisThumbnailSeries in interface IFormatReaderisThumbnailSeries in class ReaderWrapperpublic boolean isInterleaved()
IFormatReaderIFormatReader.getDimensionOrder() returns XYCTZ or XYCZT,
and this method returns true.
Note that this flag returns whether or not the data returned by
IFormatReader.openBytes(int) is interleaved. In most cases, this will
match the interleaving in the original file, but for some formats (e.g.
TIFF) channel re-ordering is done internally and the return value of
this method will not match what is in the original file.isInterleaved in interface IFormatReaderisInterleaved in class ReaderWrapperpublic boolean isInterleaved(int subC)
IFormatReaderSDTReader handles spectral-lifetime data with
interleaved lifetime bins and non-interleaved spectral channels.isInterleaved in interface IFormatReaderisInterleaved in class ReaderWrapperpublic byte[] openBytes(int no)
throws FormatException,
java.io.IOException
IFormatReaderopenBytes in interface IFormatReaderopenBytes in class ReaderWrapperFormatExceptionjava.io.IOExceptionIFormatReader.openBytes(int, byte[])public byte[] openBytes(int no,
byte[] buf)
throws FormatException,
java.io.IOException
IFormatReaderopenBytes in interface IFormatReaderopenBytes in class ReaderWrapperno - the plane index within the current series.buf - a pre-allocated buffer.buf 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.public byte[] openBytes(int no,
int x,
int y,
int w,
int h)
throws FormatException,
java.io.IOException
IFormatReaderopenBytes in interface IFormatReaderopenBytes in class ReaderWrapperFormatExceptionjava.io.IOExceptionpublic byte[] openBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
throws FormatException,
java.io.IOException
IFormatReaderopenBytes in interface IFormatReaderopenBytes in class ReaderWrapperno - 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.public java.lang.Object openPlane(int no,
int x,
int y,
int w,
int h)
throws FormatException,
java.io.IOException
IFormatReaderBufferedImage. The openPlane method exists to
maintain generality and efficiency while avoiding pollution of the API
with AWT-specific logic.openPlane in interface IFormatReaderopenPlane in class ReaderWrapperFormatExceptionjava.io.IOExceptionFormatReader,
BufferedImageReaderpublic byte[] openThumbBytes(int no)
throws FormatException,
java.io.IOException
IFormatReaderopenThumbBytes in interface IFormatReaderopenThumbBytes in class ReaderWrapperFormatExceptionjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ReaderWrapperjava.io.IOExceptionpublic void close(boolean fileOnly)
throws java.io.IOException
IFormatReaderCloseable.close().close in interface IFormatReaderclose in class ReaderWrapperjava.io.IOExceptionpublic int getSeriesCount()
IFormatReadergetSeriesCount in interface IFormatReadergetSeriesCount in class ReaderWrapperpublic void setSeries(int no)
IFormatReadersetSeries in interface IFormatReadersetSeries in class ReaderWrapperpublic int getSeries()
IFormatReadergetSeries in interface IFormatReadergetSeries in class ReaderWrapperpublic void setResolution(int no)
IPyramidHandlersetResolution in interface IPyramidHandlersetResolution in class ReaderWrapperIPyramidHandler.getResolutionCount()public int getResolution()
IPyramidHandlergetResolution in interface IPyramidHandlergetResolution in class ReaderWrapperIPyramidHandler.getResolutionCount()public int seriesToCoreIndex(int series)
IFormatReaderseriesToCoreIndex in interface IFormatReaderseriesToCoreIndex in class ReaderWrapperpublic int coreIndexToSeries(int index)
IFormatReadercoreIndexToSeries in interface IFormatReadercoreIndexToSeries in class ReaderWrapperpublic void setCoreIndex(int no)
IFormatReadersetCoreIndex in interface IFormatReadersetCoreIndex in class ReaderWrapperpublic int getCoreIndex()
IFormatReadergetCoreIndex in interface IFormatReadergetCoreIndex in class ReaderWrapperpublic void setFlattenedResolutions(boolean flatten)
IFormatReadersetFlattenedResolutions in interface IFormatReadersetFlattenedResolutions in class ReaderWrapperpublic void setGroupFiles(boolean group)
IFormatReadersetGroupFiles in interface IFormatReadersetGroupFiles in class ReaderWrapperIFormatReader.fileGroupOption(String),
IFormatReader.isGroupFiles()public boolean isGroupFiles()
IFormatReaderisGroupFiles in interface IFormatReaderisGroupFiles in class ReaderWrapperIFormatReader.setGroupFiles(boolean),
IFormatReader.fileGroupOption(String)public void setMetadataOptions(MetadataOptions options)
setMetadataOptions in interface IMetadataConfigurablesetMetadataOptions in class ReaderWrapperpublic void setNormalized(boolean normalize)
IFormatReadersetNormalized in interface IFormatReadersetNormalized in class ReaderWrapperpublic void setOriginalMetadataPopulated(boolean populate)
IFormatReadersetOriginalMetadataPopulated in interface IFormatReadersetOriginalMetadataPopulated in class ReaderWrapperpublic java.lang.String[] getUsedFiles()
IFormatReaderIFormatHandler.setId(String). The remaining elements are expected to be in a
consistent order; if a directory listing is necessary to build the list
then it should be sorted first.getUsedFiles in interface IFormatReadergetUsedFiles in class ReaderWrapperpublic java.lang.String[] getUsedFiles(boolean noPixels)
IFormatReaderIFormatHandler.setId(String), if appropriate based upon 'noPixels'.
The remaining elements are expected to be in a consistent order;
if a directory listing is necessary to build the list then it should
be sorted first.getUsedFiles in interface IFormatReadergetUsedFiles in class ReaderWrapperpublic java.lang.String[] getSeriesUsedFiles()
IFormatReaderIFormatHandler.setId(String). The remaining elements are expected to be in a
consistent order; if a directory listing is necessary to build the list
then it should be sorted first.getSeriesUsedFiles in interface IFormatReadergetSeriesUsedFiles in class ReaderWrapperpublic java.lang.String[] getSeriesUsedFiles(boolean noPixels)
IFormatReaderIFormatHandler.setId(String), if appropriate based upon 'noPixels'.
The remaining elements are expected to be in a consistent order;
if a directory listing is necessary to build the list then it should
be sorted first.getSeriesUsedFiles in interface IFormatReadergetSeriesUsedFiles in class ReaderWrapperpublic FileInfo[] getAdvancedUsedFiles(boolean noPixels)
IFormatReadergetAdvancedUsedFiles in interface IFormatReadergetAdvancedUsedFiles in class ReaderWrapperpublic FileInfo[] getAdvancedSeriesUsedFiles(boolean noPixels)
IFormatReadergetAdvancedSeriesUsedFiles in interface IFormatReadergetAdvancedSeriesUsedFiles in class ReaderWrapperpublic int getIndex(int z,
int c,
int t)
IFormatReadergetIndex in interface IFormatReadergetIndex in class ReaderWrapperpublic int getIndex(int z,
int c,
int t,
int moduloZ,
int moduloC,
int moduloT)
IFormatReadergetIndex in interface IFormatReadergetIndex in class ReaderWrapperpublic int[] getZCTCoords(int index)
IFormatReadergetZCTCoords in interface IFormatReadergetZCTCoords in class ReaderWrapperpublic int[] getZCTModuloCoords(int index)
IFormatReadergetZCTModuloCoords in interface IFormatReadergetZCTModuloCoords in class ReaderWrapperpublic java.util.Hashtable<java.lang.String,java.lang.Object> getSeriesMetadata()
IFormatReadergetSeriesMetadata in interface IFormatReadergetSeriesMetadata in class ReaderWrapperpublic java.util.List<CoreMetadata> getCoreMetadataList()
IFormatReadergetCoreMetadataList in interface IFormatReadergetCoreMetadataList in class ReaderWrapperpublic void setMetadataStore(MetadataStore store)
IFormatReadersetMetadataStore in interface IFormatReadersetMetadataStore in class ReaderWrapperstore - a metadata store implementation.public MetadataStore getMetadataStore()
IFormatReadernull
metadata store.getMetadataStore in interface IFormatReadergetMetadataStore in class ReaderWrapperpublic java.lang.Object getMetadataStoreRoot()
IFormatReadergetMetadataStoreRoot in interface IFormatReadergetMetadataStoreRoot in class ReaderWrapperpublic IFormatReader[] getUnderlyingReaders()
IFormatReadergetUnderlyingReaders in interface IFormatReadergetUnderlyingReaders in class ReaderWrapperpublic void reopenFile()
throws java.io.IOException
IFormatReaderIFormatHandler.setId(java.lang.String) has been
called, but close(false) has not been called.reopenFile in interface IFormatReaderreopenFile in class ReaderWrapperjava.io.IOExceptionpublic void setId(java.lang.String id)
throws FormatException,
java.io.IOException
IFormatHandlersetId in interface IFormatHandlersetId in class ReaderWrapperFormatExceptionjava.io.IOExceptionpublic byte[] openCompressedBytes(int no,
int x,
int y)
throws FormatException,
java.io.IOException
ICompressedTileReaderopenCompressedBytes in interface ICompressedTileReaderopenCompressedBytes in class ReaderWrapperno - plane indexx - tile X index (indexed from 0, @see getTileColumns(int))y - tile Y index (indexed from 0, @see getTileRows(int))FormatExceptionjava.io.IOExceptionpublic byte[] openCompressedBytes(int no,
byte[] buf,
int x,
int y)
throws FormatException,
java.io.IOException
ICompressedTileReaderopenCompressedBytes in interface ICompressedTileReaderopenCompressedBytes in class ReaderWrapperno - plane indexbuf - pre-allocated buffer in which to store compressed bytesx - tile X index (indexed from 0, @see getTileColumns(int))y - tile Y index (indexed from 0, @see getTileRows(int))FormatExceptionjava.io.IOExceptionpublic Codec getTileCodec(int no) throws FormatException, java.io.IOException
ICompressedTileReadergetTileCodec in interface ICompressedTileReadergetTileCodec in class ReaderWrapperno - plane indexFormatExceptionjava.io.IOExceptionICompressedTileReader.openCompressedBytes(int, int, int)public CodecOptions getTileCodecOptions(int no, int x, int y) throws FormatException, java.io.IOException
ICompressedTileReadergetTileCodecOptions in interface ICompressedTileReadergetTileCodecOptions in class ReaderWrapperno - plane indexx - tile X index (indexed from 0, @see getTileColumns(int))y - tile Y index (indexed from 0, @see getTileRows(int))FormatExceptionjava.io.IOExceptionICompressedTileReader.getTileCodec(int)protected void initFile(java.lang.String id)
throws FormatException,
java.io.IOException
FormatExceptionjava.io.IOExceptionprivate int getExternalSeries()
private int getExternalSeries(int currentSeries)
protected void computeAxisLengths()
throws FormatException
FormatExceptionprotected int[] computeIndices(int no)
throws FormatException,
java.io.IOException
FormatExceptionjava.io.IOExceptionprotected void initReader(int sno,
int fno)
Copyright © 2024 Open Microscopy Environment