Use this class to iterate a virtual {@link Interval} in flat order, that is:row by row, plane by plane, cube by cube, ... This is useful for iterating an arbitrary interval in a defined order. For that, connect a {@link LocalizingIntervalIterator} to a {@link Positionable}.
... LocalizingIntervalIterator i = new LocalizingIntervalIterator(image); RandomAccess s = image.randomAccess(); while (i.hasNext()) { i.fwd(); s.setPosition(i); s.type().performOperation(...); ... } ...
Note that {@link LocalizingIntervalIterator} is the right choice insituations where, for
each pixel, you want to localize and/or set the {@link RandomAccess}, that is, in a dense sampling situation. For localizing sparsely (e.g. under an external condition), use {@link IntervalIterator} instead.
@author Stephan Preibisch
@author Stephan Saalfeld
@author Stephan Saalfeld