Interface IterableInterval<T>
- All Superinterfaces:
Dimensions, EuclideanSpace, Interval, Iterable<T>, IterableRealInterval<T>, RealInterval, Typed<T>
- All Known Subinterfaces:
Img<T>, NativeImg<T,A>, RandomAccessibleInterval<T>, SubIntervalIterable<T>
- All Known Implementing Classes:
AbstractCellImg, AbstractConvertedIterableInterval, AbstractConvertedIterableRandomAccessibleInterval, AbstractConvertedRandomAccessibleInterval, AbstractImg, AbstractListImg, AbstractLongListImg, AbstractNativeImg, ARGBScreenImage, ArrayImg, ArrayImgAWTScreenImage, BiConvertedIterableInterval, BiConvertedRandomAccessibleInterval, ByteAWTScreenImage, CellGrid.CellIntervals, CellImg, CompositeIntervalView, ConvertedIterableInterval, ConvertedRandomAccessibleInterval, DiscreteFrequencyDistribution, DoubleAWTScreenImage, FloatAWTScreenImage, Grid.CellIntervals, Histogram1d, HistogramNd, ImgView, IntAWTScreenImage, IntervalView, IterableRandomAccessibleInterval, IterableTransformBuilder.IterableIntervalView, IterableTransformBuilder.Slice, IterableTransformBuilder.SubInterval, LazyCellImg, LazyCellImg.LazyCells, ListImg, NtreeImg, PlanarImg, PointSampleList, ShortAWTScreenImage, StackView, SubsampleIntervalView, UnsignedByteAWTScreenImage, UnsignedIntAWTScreenImage, UnsignedShortAWTScreenImage, WriteConvertedIterableInterval, WriteConvertedIterableRandomAccessibleInterval, WriteConvertedRandomAccessibleInterval
IterableRealInterval whose elements are located at integer
coordinates.
An IterableInterval is not guaranteed to iterate over all
coordinates of its containing Interval. In the typical case of a
hyperrectangular image, it will do so; however, there are some
IterableIntervals which visit only a subset of the Interval
coordinates. For example, the imglib2-roi library provides means to
model regions of interest (ROIs), along with the ability to iterate over
coordinates within a particular ROI; see e.g.
net.imglib2.roi.labeling.LabelRegion.
-
Method Summary
Modifier and TypeMethodDescriptioncursor()Returns aRealCursorthat iterates with optimal speed without calculating the location at each iteration step.Returns aRealLocalizableIteratorthat calculates its location at each iteration step.default LocalizableSpliterator<T> Creates aLocalizableSpliteratorover the elements of thisIterableInterval.default LocalizableSpliterator<T> Creates aLocalizableSpliteratorover the elements of thisIterableInterval.Methods inherited from interface Dimensions
dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPointMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Interval
dimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMinMethods inherited from interface IterableRealInterval
firstElement, getType, iterationOrder, iterator, parallelStream, size, streamMethods inherited from interface RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
-
Method Details
-
cursor
Description copied from interface:IterableRealIntervalReturns a
RealCursorthat iterates with optimal speed without calculating the location at each iteration step. Localization is performed on demand.Use this where localization is required rarely/ not for each iteration.
- Specified by:
cursorin interfaceIterableRealInterval<T>- Returns:
- fast iterating iterator
-
localizingCursor
Description copied from interface:IterableRealIntervalReturns a
RealLocalizableIteratorthat calculates its location at each iteration step. That is, localization is performed with optimal speed.Use this where localization is required often/ for each iteration.
- Specified by:
localizingCursorin interfaceIterableRealInterval<T>- Returns:
- fast localizing iterator
-
spliterator
Creates aLocalizableSpliteratorover the elements of thisIterableInterval. The returnedSpliteratoriterates with optimal speed without calculating the location at each iteration step. Localization is performed on demand.The default implementation wraps a
Cursoron the interval. The createdSpliteratorreportsSpliterator.SIZED,Spliterator.SUBSIZED,Spliterator.ORDEREDandSpliterator.NONNULL.- Specified by:
spliteratorin interfaceIterable<T>- Specified by:
spliteratorin interfaceIterableRealInterval<T>
-
localizingSpliterator
Creates aLocalizableSpliteratorover the elements of thisIterableInterval. The returnedSpliteratorcalculates its location at each iteration step. That is, localization is performed with optimal speed.The default implementation wraps a
localizingCursoron the interval. The createdSpliteratorreportsSpliterator.SIZED,Spliterator.SUBSIZED,Spliterator.ORDEREDandSpliterator.NONNULL.- Specified by:
localizingSpliteratorin interfaceIterableRealInterval<T>
-