Package net.imglib2

Interface IterableInterval<T>

All Superinterfaces:
Dimensions, EuclideanSpace, Interval, Iterable<T>, IterableRealInterval<T>, RealInterval
All Known Subinterfaces:
Img<T>, NativeImg<T,A>
All Known Implementing Classes:
AbstractCellImg, AbstractConvertedIterableInterval, AbstractConvertedIterableRandomAccessibleInterval, AbstractImg, AbstractListImg, AbstractLongListImg, AbstractNativeImg, ARGBScreenImage, ArrayImg, ArrayImgAWTScreenImage, ByteAWTScreenImage, CellImg, ConvertedIterableInterval, DiscreteFrequencyDistribution, DoubleAWTScreenImage, FloatAWTScreenImage, Histogram1d, HistogramNd, ImgView, IntAWTScreenImage, IntervalView, IterableRandomAccessibleInterval, LazyCellImg, LazyCellImg.LazyCells, ListImg, NtreeImg, PlanarImg, PointSampleList, ShortAWTScreenImage, UnsignedByteAWTScreenImage, UnsignedIntAWTScreenImage, UnsignedShortAWTScreenImage, WriteConvertedIterableInterval, WriteConvertedIterableRandomAccessibleInterval

public interface IterableInterval<T> extends IterableRealInterval<T>, Interval
An IterableRealInterval whose elements are located at integer coordinates.
Author:
Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld
  • Method Details

    • cursor

      Cursor<T> cursor()
      Description copied from interface: IterableRealInterval

      Returns a RealCursor that 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:
      cursor in interface IterableRealInterval<T>
      Returns:
      fast iterating iterator
    • localizingCursor

      Cursor<T> localizingCursor()
      Description copied from interface: IterableRealInterval

      Returns a RealLocalizable Iterator that 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:
      localizingCursor in interface IterableRealInterval<T>
      Returns:
      fast localizing iterator