Class NearestNeighborRealRandomAccessibleStackInterpolator<T>

java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.interpolation.stack.NearestNeighborRealRandomAccessibleStackInterpolator<T>
Type Parameters:
T - the pixel type
All Implemented Interfaces:
EuclideanSpace, Positionable, RealLocalizable, RealPositionable, RealRandomAccess<T>, Sampler<T>, Typed<T>
Direct Known Subclasses:
LinearRealRandomAccessibleStackInterpolator

public class NearestNeighborRealRandomAccessibleStackInterpolator<T> extends AbstractEuclideanSpace implements RealRandomAccess<T>
A nearest neighbor interpolator for stacks of RealRandomAccessibles.

When changing any dimension of the position, except the (n+1)th, this position change is applied to the active slice RealRandomAccess. When changing the (n+1)th dimension of the position, a new slice RealRandomAccess becomes active, is set to the position of the previously active slice RealRandomAccess. Initially, only a RealRandomAccess for the first slice is created, other slice RealRandomAccesses are created on demand but stored for later re-use.