- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractInterval
-
- org.scijava.ops.image.transform.slice.slice.SlicesII<T>
-
- All Implemented Interfaces:
Iterable<RandomAccessibleInterval<T>>,Dimensions,EuclideanSpace,Interval,IterableInterval<RandomAccessibleInterval<T>>,IterableRealInterval<RandomAccessibleInterval<T>>,RealInterval
public class SlicesII<T> extends AbstractInterval implements IterableInterval<RandomAccessibleInterval<T>>
Helper class to iterate through subsets ofRandomAccessibleIntervals (e.g.Imgs)- Author:
- Christian Dietz (University of Konstanz)
-
-
Field Summary
-
Fields inherited from class net.imglib2.AbstractInterval
max, min
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description SlicesII(RandomAccessibleInterval<T> source, int[] axesOfInterest)SlicesII(RandomAccessibleInterval<T> source, int[] axesOfInterest, boolean dropSingletonDimensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cursor<RandomAccessibleInterval<T>>cursor()RandomAccessibleInterval<T>firstElement()ObjectiterationOrder()Iterator<RandomAccessibleInterval<T>>iterator()Cursor<RandomAccessibleInterval<T>>localizingCursor()longsize()-
Methods inherited from class net.imglib2.AbstractInterval
dimension, dimensions, max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin, toString
-
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Dimensions
dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Interval
dimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMin
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
-
-
-
-
Constructor Detail
-
SlicesII
public SlicesII(RandomAccessibleInterval<T> source, int[] axesOfInterest, boolean dropSingletonDimensions)
- Parameters:
source-RandomAccessibleIntervalwhich will be virtually croppedaxesOfInterest- axes which define a plane, cube, hypercube, ...! All other axes will be iterated.dropSingletonDimensions- if true, dimensions of size one will be discarded in the sliced images
-
SlicesII
public SlicesII(RandomAccessibleInterval<T> source, int[] axesOfInterest)
- Parameters:
source-RandomAccessibleIntervalwhich will be virtually croppedaxesOfInterest- axes which define a plane, cube, hypercube, ...! All other axes will be iterated.
-
-
Method Detail
-
cursor
public Cursor<RandomAccessibleInterval<T>> cursor()
- Specified by:
cursorin interfaceIterableInterval<T>- Specified by:
cursorin interfaceIterableRealInterval<T>
-
localizingCursor
public Cursor<RandomAccessibleInterval<T>> localizingCursor()
- Specified by:
localizingCursorin interfaceIterableInterval<T>- Specified by:
localizingCursorin interfaceIterableRealInterval<T>
-
size
public long size()
- Specified by:
sizein interfaceIterableRealInterval<T>
-
firstElement
public RandomAccessibleInterval<T> firstElement()
- Specified by:
firstElementin interfaceIterableRealInterval<T>
-
iterationOrder
public Object iterationOrder()
- Specified by:
iterationOrderin interfaceIterableRealInterval<T>
-
iterator
public Iterator<RandomAccessibleInterval<T>> iterator()
-
-