public class LanczosInterpolator<T extends RealType<T>> extends FloorOffset<RandomAccess<T>> implements RealRandomAccess<T>
Modifier and Type | Field and Description |
---|---|
protected int |
alpha |
protected boolean |
clip |
protected T |
interpolatedValue |
protected double[] |
lut |
protected static int |
lutScale |
protected long[] |
max |
protected double |
maxValue |
protected double |
minValue |
protected static double |
piSquare |
protected double[] |
products |
protected long[] |
size |
offset
discrete, position, target
n
Constructor and Description |
---|
LanczosInterpolator(LanczosInterpolator<T> interpolator) |
LanczosInterpolator(RandomAccessible<T> randomAccessible,
int alpha,
boolean clip,
double min,
double max)
Creates a new Lanczos-interpolation
|
Modifier and Type | Method and Description |
---|---|
protected void |
accumulate(int d) |
Sampler<T> |
copy() |
RealRandomAccess<T> |
copyRealRandomAccess() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
protected void |
resetKernel() |
f, f, f, f, f, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
bck, fwd, getDoublePosition, getFloatPosition, localize, localize, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toString
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setPositionAndGet, setPositionAndGet, setPositionAndGet
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
numDimensions
protected static final double piSquare
protected static final int lutScale
protected final int alpha
protected final long[] size
protected final long[] max
protected final double minValue
protected final double maxValue
protected final boolean clip
protected final double[] lut
protected final double[] products
public LanczosInterpolator(RandomAccessible<T> randomAccessible, int alpha, boolean clip, double min, double max)
randomAccessible
- - the RandomAccessible
to work onalpha
- - the radius of values to incorporate (typically 2 or 3)clip
- - clips the value to range of the RealType
, i.e. tests
if the interpolated value is out of rangemin
- - range for clipping (ignored if min==max)max
- - range for clipping (ignored if min==max)public LanczosInterpolator(LanczosInterpolator<T> interpolator)
protected final void resetKernel()
protected final void accumulate(int d)
public T get()
Sampler
Sampler
points at.public Sampler<T> copy()
copy
in interface Sampler<T extends RealType<T>>
Sampler
in the same state accessing the same
values.
It does NOT copy T, just the state of the Sampler
.
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 an
ArrayCursor
for example)public RealRandomAccess<T> copyRealRandomAccess()
copyRealRandomAccess
in interface RealRandomAccess<T extends RealType<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.