public class FileStitcher extends AbstractReaderFilter
| Constructor and Description |
|---|
FileStitcher()
Constructs a FileStitcher around a new image reader.
|
FileStitcher(boolean patternIds)
Constructs a FileStitcher with the given reader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canChangePattern() |
protected void |
cleanUp()
Helper method that is always called by the
AbstractReaderFilter.close(boolean) method, if the
fileOnly flag is false. |
FilePattern |
findPattern(org.scijava.io.location.BrowsableLocation id)
Constructs a new FilePattern around the pattern extracted from the given
id.
|
String[] |
findPatterns(org.scijava.io.location.BrowsableLocation id)
Finds the file pattern for the given ID, based on the state of the file
stitcher.
|
FilePattern |
getFilePattern()
Gets the file pattern object used to build the list of files.
|
long |
getPlaneCount(int imageIndex)
Determines the number of planes in the current file.
|
double |
getPriority() |
boolean |
isCompatible(Class<?> c)
FileStitcher is only compatible with ByteArray formats.
|
boolean |
isUsingPatternIds()
Gets whether the reader is using file patterns for IDs.
|
Plane |
openPlane(int imageIndex,
long planeIndex,
net.imglib2.Interval bounds,
SCIFIOConfig config)
As
Reader.openPlane(int, long, Interval) with configuration options. |
Plane |
openPlane(int imageIndex,
long planeIndex,
Plane plane,
net.imglib2.Interval bounds,
SCIFIOConfig config)
Allows a single
Plane object to be reused by reference when opening
sub-regions of planes. |
void |
setCanChangePattern(boolean doChange) |
void |
setSource(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> source,
SCIFIOConfig config)
As
Reader.setSource(DataHandle) with configuration options. |
void |
setSource(org.scijava.io.location.Location source,
SCIFIOConfig config)
As
Reader.setSource(Location) with configuration options. |
protected void |
setSourceHelper(org.scijava.io.location.Location source,
SCIFIOConfig config)
Allows code to be executed regardless of which
AbstractReaderFilter.setSource(org.scijava.io.location.Location) signature
is called. |
void |
setUsingPatternIds(boolean patternIds)
Sets whether the reader is using file patterns for IDs.
|
castToTypedPlane, close, close, createPlane, createPlane, fileGroupOption, getContext, getCurrentLocation, getDomains, getFormat, getFormatName, getHandle, getImageCount, getMetadata, getOptimalTileHeight, getOptimalTileWidth, getParentMeta, hasCompanionFiles, isNormalized, isSingleFile, metaCheck, openPlane, openPlane, openPlane, openPlane, openPlane, openPlane, openPlaneHelper, planarBounds, readPlane, readPlane, readPlaneHelper, setContext, setMetadata, setNormalized, setParent, setSource, setSource, targetenabledDefault, getParent, resetgetVersion, loggetInfo, setInfo, setPriority, toStringcontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, loggetIdentifiercontextcompareTo, setPrioritygetInfo, setInfogetLocationpublic FileStitcher()
public FileStitcher(boolean patternIds)
patternIds - Whether string ids given should be treated as file
patterns rather than single file paths.public void setUsingPatternIds(boolean patternIds)
public boolean isUsingPatternIds()
public void setCanChangePattern(boolean doChange)
public boolean canChangePattern()
public FilePattern getFilePattern()
public FilePattern findPattern(org.scijava.io.location.BrowsableLocation id) throws IOException
IOExceptionpublic String[] findPatterns(org.scijava.io.location.BrowsableLocation id) throws IOException
IOExceptionpublic void setSource(org.scijava.io.location.Location source, SCIFIOConfig config) throws IOException
ReaderReader.setSource(Location) with configuration options.setSource in interface ReadersetSource in class AbstractReaderFiltersource - the Locationconfig - Configuration information to use for this read.IOExceptionpublic void setSource(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> source, SCIFIOConfig config) throws IOException
ReaderReader.setSource(DataHandle) with configuration options.setSource in interface ReadersetSource in class AbstractReaderFiltersource - - The handle to read fromconfig - Configuration information to use for this read.IOExceptionprotected void setSourceHelper(org.scijava.io.location.Location source, SCIFIOConfig config)
AbstractReaderFilterAbstractReaderFilter.setSource(org.scijava.io.location.Location) signature
is called.setSourceHelper in class AbstractReaderFiltersource - - Lowest common denominator of arguments in the
setSource series.public boolean isCompatible(Class<?> c)
isCompatible in interface FilterisCompatible in class AbstractReaderFilterc - - Class to check compatibilitypublic long getPlaneCount(int imageIndex)
ReadergetPlaneCount in interface ReadergetPlaneCount in class AbstractReaderFilterpublic Plane openPlane(int imageIndex, long planeIndex, net.imglib2.Interval bounds, SCIFIOConfig config) throws FormatException, IOException
ReaderReader.openPlane(int, long, Interval) with configuration options.openPlane in interface ReaderopenPlane in class AbstractReaderFilterimageIndex - the image index within the dataset.planeIndex - the plane index within the image.bounds - bounds of the planar axes.config - Configuration information to use for this read.FormatExceptionIOExceptionpublic Plane openPlane(int imageIndex, long planeIndex, Plane plane, net.imglib2.Interval bounds, SCIFIOConfig config) throws FormatException, IOException
ReaderPlane object to be reused by reference when opening
sub-regions of planes.openPlane in interface ReaderopenPlane in class AbstractReaderFilterFormatExceptionIOExceptionReader.openPlane(int, long, Interval, SCIFIOConfig)public double getPriority()
getPriority in interface org.scijava.PrioritizedgetPriority in class org.scijava.plugin.AbstractRichPluginprotected void cleanUp()
throws IOException
AbstractReaderFilterAbstractReaderFilter.close(boolean) method, if the
fileOnly flag is false.cleanUp in class AbstractReaderFilterIOExceptionCopyright © 2011–2026 SCIFIO. All rights reserved.