Class LanczosInterpolator<T extends RealType<T>>
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.position.transform.AbstractPositionableTransform<LocalizablePositionable>
-
- net.imglib2.position.transform.FloorOffset<RandomAccess<T>>
-
- net.imglib2.interpolation.randomaccess.LanczosInterpolator<T>
-
- All Implemented Interfaces:
EuclideanSpace
,Positionable
,RealLocalizable
,RealPositionable
,RealRandomAccess<T>
,Sampler<T>
public class LanczosInterpolator<T extends RealType<T>> extends FloorOffset<RandomAccess<T>> implements RealRandomAccess<T>
n-dimensional double-based Lanczos Interpolation- Author:
- Stephan Preibisch, Stephan Saalfeld
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class net.imglib2.position.transform.FloorOffset
offset
-
Fields inherited from class net.imglib2.position.transform.AbstractPositionableTransform
discrete, position, target
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description LanczosInterpolator(LanczosInterpolator<T> interpolator)
LanczosInterpolator(RandomAccessible<T> randomAccessible, int alpha, boolean clip, double min, double max)
Creates a new Lanczos-interpolation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theSampler
points at.protected void
resetKernel()
-
Methods inherited from class net.imglib2.position.transform.FloorOffset
f, f, f, f, f, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
-
Methods inherited from class net.imglib2.position.transform.AbstractPositionableTransform
bck, fwd, getDoublePosition, getFloatPosition, localize, localize, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toString
-
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Positionable
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
-
Methods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localize
-
Methods inherited from interface net.imglib2.RealPositionable
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
-
-
-
-
Field Detail
-
piSquare
protected static final double piSquare
- See Also:
- Constant Field Values
-
lutScale
protected static final int lutScale
- See Also:
- Constant Field Values
-
alpha
protected final int alpha
-
size
protected final long[] size
-
max
protected final long[] max
-
minValue
protected final double minValue
-
maxValue
protected final double maxValue
-
clip
protected final boolean clip
-
lut
protected final double[] lut
-
products
protected final double[] products
-
-
Constructor Detail
-
LanczosInterpolator
public LanczosInterpolator(RandomAccessible<T> randomAccessible, int alpha, boolean clip, double min, double max)
Creates a new Lanczos-interpolation- Parameters:
randomAccessible
- - theRandomAccessible
to work onalpha
- - the radius of values to incorporate (typically 2 or 3)clip
- - clips the value to range of theRealType
, 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)
-
LanczosInterpolator
public LanczosInterpolator(LanczosInterpolator<T> interpolator)
-
-
Method Detail
-
resetKernel
protected final void resetKernel()
-
accumulate
protected final void accumulate(int d)
-
get
public T get()
Description copied from interface:Sampler
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.
-
copy
public Sampler<T> copy()
- Specified by:
copy
in interfaceSampler<T extends RealType<T>>
- Returns:
- - A new
Sampler
in 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 anArrayCursor
for example)
-
copyRealRandomAccess
public RealRandomAccess<T> copyRealRandomAccess()
- Specified by:
copyRealRandomAccess
in interfaceRealRandomAccess<T extends RealType<T>>
-
-