public class PlaneSeparator extends AbstractReaderFilter
| Constructor and Description |
|---|
PlaneSeparator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUp()
Helper method that is always called by the
AbstractReaderFilter.close(boolean) method, if the
fileOnly flag is false. |
long |
getOriginalIndex(int imageIndex,
long planeIndex)
Returns the image number in the original dataset that corresponds to the
given image number.
|
long |
getPlaneCount(int imageIndex)
Determines the number of planes in the current file.
|
double |
getPriority() |
Plane |
openPlane(int imageIndex,
long planeIndex)
Creates a
Plane representation of the pixels at the
specified indices. |
Plane |
openPlane(int imageIndex,
long planeIndex,
net.imglib2.Interval bounds)
Creates a
Plane representation of a desired sub-region from
the pixels at the specified indices. |
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)
Allows a single
Plane object to be reused by reference when opening
complete planes. |
Plane |
openPlane(int imageIndex,
long planeIndex,
Plane plane,
net.imglib2.Interval bounds)
Allows a single
Plane object to be reused by reference when opening
sub-regions of planes. |
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. |
Plane |
openPlane(int imageIndex,
long planeIndex,
Plane plane,
SCIFIOConfig config)
Allows a single
Plane object to be reused by reference when opening
complete planes. |
Plane |
openPlane(int imageIndex,
long planeIndex,
SCIFIOConfig config)
As
Reader.openPlane(int, long) with configuration options. |
void |
separate(net.imagej.axis.AxisType... types)
Specify which AxisTypes should be separated.
|
void |
setSource(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> source)
Sets the source for this reader to read from.
|
void |
setSource(org.scijava.io.location.Location source)
Sets the source for this reader to read from.
|
castToTypedPlane, close, close, createPlane, createPlane, fileGroupOption, getContext, getCurrentLocation, getDomains, getFormat, getFormatName, getHandle, getImageCount, getMetadata, getOptimalTileHeight, getOptimalTileWidth, getParentMeta, hasCompanionFiles, isCompatible, isNormalized, isSingleFile, metaCheck, openPlaneHelper, planarBounds, readPlane, readPlane, readPlaneHelper, setContext, setMetadata, setNormalized, setParent, setSource, setSource, setSourceHelper, targetenabledDefault, getParent, resetgetVersion, loggetInfo, setInfo, setPriority, toStringcontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, loggetIdentifiercontextcompareTo, setPrioritygetInfo, setInfogetLocationpublic void separate(net.imagej.axis.AxisType... types)
public long getOriginalIndex(int imageIndex,
long planeIndex)
planeIndex - is a plane number greater than or equal to 0 and less
than getPlaneCount()public void setSource(org.scijava.io.location.Location source) throws IOException
ReadersetSource in interface ReadersetSource in class AbstractReaderFiltersource - the locationIOExceptionpublic void setSource(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> source) throws IOException
ReadersetSource in interface ReadersetSource in class AbstractReaderFiltersource - - The stream to read fromIOExceptionpublic long getPlaneCount(int imageIndex)
ReadergetPlaneCount in interface ReadergetPlaneCount in class AbstractReaderFilterpublic Plane openPlane(int imageIndex, long planeIndex) throws FormatException, IOException
ReaderPlane representation of the pixels at the
specified indices.openPlane in interface ReaderopenPlane in class AbstractReaderFilterimageIndex - the image index within the dataset.planeIndex - the plane index within the image.Plane at the specified indices.FormatExceptionIOExceptionpublic Plane openPlane(int imageIndex, long planeIndex, Plane plane) throws FormatException, IOException
ReaderPlane object to be reused by reference when opening
complete planes.openPlane in interface ReaderopenPlane in class AbstractReaderFilterFormatExceptionIOExceptionReader.openPlane(int, long)public Plane openPlane(int imageIndex, long planeIndex, net.imglib2.Interval bounds) throws FormatException, IOException
ReaderPlane representation of a desired sub-region from
the pixels at the specified indices.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.FormatExceptionIOExceptionpublic Plane openPlane(int imageIndex, long planeIndex, Plane plane, net.imglib2.Interval bounds) 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)public Plane openPlane(int imageIndex, long planeIndex, SCIFIOConfig config) throws FormatException, IOException
ReaderReader.openPlane(int, long) with configuration options.openPlane in interface ReaderopenPlane in class AbstractReaderFilterimageIndex - the image index within the dataset.planeIndex - the plane index within the image.config - Configuration information to use for this read.Plane at the specified indices.FormatExceptionIOExceptionpublic Plane openPlane(int imageIndex, long planeIndex, Plane plane, SCIFIOConfig config) throws FormatException, IOException
ReaderPlane object to be reused by reference when opening
complete planes.openPlane in interface ReaderopenPlane in class AbstractReaderFilterFormatExceptionIOExceptionReader.openPlane(int, long, SCIFIOConfig)public 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.