Use this class to iterate a virtual rectangular {@link Interval} whose
min coordinates are at 0
n 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 LocalizingZeroMinIntervalIterator} to a {@link Positionable}.
... LocalizingZeroMinIntervalIterator i = new LocalizingZeroMinIntervalIterator(image); RandomAccess s = image.randomAccess(); while (i.hasNext()) { i.fwd(); s.setPosition(i); s.type().performOperation(...); ... } ...
Note that {@link LocalizingZeroMinIntervalIterator} is the right choice insituations where, for
each pixel, you want to localize and/or set the {@link Positionable} [{@link Sampler}], that is in a dense sampling situation. For localizing sparsely (e.g. under an external condition), use {@link ZeroMinIntervalIterator} instead.
@author Stephan Preibisch
@author Stephan Saalfeld
@author Stephan Saalfeld