Class FloorInterpolator<T>
- Type Parameters:
T-
- All Implemented Interfaces:
EuclideanSpace, Positionable, RealLocalizable, RealPositionable, RealRandomAccess<T>, Sampler<T>, Typed<T>
RealRandomAccess to a RandomAccess by nearest floor
interpolation (i.e., the value is sampled at floor(x)).
In ImgLib2, the coordinate of a sample corresponds to the 'center' point
of the sample, i.e. the location at which the sample was acquired. This
scheme is intuitive in both rasters and irregularly samples data but can
trigger confusion when displaying images on a screen with a pixel raster
which, in this scheme, spans the range [-0.5,width-0.5]. In the
screen-friendly alternative scheme, where sample coordinates reference the
top left corner of the pixel rectangle representing a sample the range
covered by an image is [0,width], however, coordinate transfer
functions other than translation and homogeneous scaling generate different
results than in the center-scheme. Rendering an image using
FloorInterpolator means using the top-left-scheme, rendering it
using NearestNeighborInterpolator, NLinearInterpolator, or
LanczosInterpolator means using the center-scheme.
-
Field Summary
Fields inherited from class AbstractPositionableTransform
discrete, position, targetFields inherited from class AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFloorInterpolator(FloorInterpolator<T> floorInterpolator) protectedFloorInterpolator(RandomAccessible<T> randomAccessible) -
Method Summary
Methods inherited from class Floor
floor, floor, floor, floor, floor, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionMethods inherited from class AbstractPositionableTransform
bck, fwd, getDoublePosition, getFloatPosition, localize, localize, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toStringMethods inherited from class AbstractEuclideanSpace
numDimensionsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Positionable
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionMethods inherited from interface RealLocalizable
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPointMethods inherited from interface RealPositionable
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionMethods inherited from interface RealRandomAccess
copyRealRandomAccess, setPositionAndGet, setPositionAndGet, setPositionAndGet
-
Constructor Details
-
FloorInterpolator
-
FloorInterpolator
-
-
Method Details
-
get
-
getType
Description copied from interface:TypedGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance. -
copy
- Specified by:
copyin interfaceRealRandomAccess<T>- Specified by:
copyin interfaceSampler<T>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for anArrayCursorfor example)
-