public class LanczosInterpolator<T extends RealType<T>> extends InterpolatorImpl<T>
Modifier and Type | Field and Description |
---|---|
protected static float |
piSquare |
img, interpolatorFactory, outOfBoundsStrategyFactory, position, tmp
Modifier | Constructor and Description |
---|---|
protected |
LanczosInterpolator(Image<T> img,
InterpolatorFactory<T> interpolatorFactory,
OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory,
int alpha,
boolean clipping) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the interpolator and with it any cursors or other containers, images or datastructures
that might have been created to make the interpolation work
|
protected static int |
floor(float value) |
T |
getType()
Returns the type which stores the value for the current position of the interpolator
|
void |
moveRel(double[] vector)
Moves the interpolator a certain distance given by the vector to a random position inside or out of image bounds.
|
void |
moveRel(float[] vector)
Moves the interpolator a certain distance given by the vector to a random position inside or out of image bounds.
|
void |
moveTo(double[] pos)
Moves the interpolator to a random position inside or out of image bounds.
|
void |
moveTo(float[] pos)
Moves the interpolator to a random position inside or out of image bounds.
|
void |
setPosition(double[] pos)
Sets the interpolator to a random position inside or out of image bounds.
|
void |
setPosition(float[] pos)
Sets the interpolator to a random position inside or out of image bounds.
|
protected static float |
sinc(float x,
float a) |
getImage, getInterpolatorFactory, getOutOfBoundsStrategyFactory, getPosition, getPosition
protected static final float piSquare
protected LanczosInterpolator(Image<T> img, InterpolatorFactory<T> interpolatorFactory, OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory, int alpha, boolean clipping)
public T getType()
Interpolator
protected static final float sinc(float x, float a)
protected static final int floor(float value)
public void close()
Interpolator
public void moveTo(float[] pos)
Interpolator
pos
- - the floating position of the same dimensionality as the imagepublic void moveTo(double[] pos)
Interpolator
pos
- - the floating position of the same dimensionality as the imagepublic void moveRel(float[] vector)
Interpolator
moveRel
in interface Interpolator<T extends RealType<T>>
moveRel
in class InterpolatorImpl<T extends RealType<T>>
vector
- - the floating vector of the same dimensionality as the imagepublic void moveRel(double[] vector)
Interpolator
moveRel
in interface Interpolator<T extends RealType<T>>
moveRel
in class InterpolatorImpl<T extends RealType<T>>
vector
- - the floating vector of the same dimensionality as the imagepublic void setPosition(float[] pos)
Interpolator
pos
- - the floating position of the same dimensionality as the imagepublic void setPosition(double[] pos)
Interpolator
pos
- - the floating position of the same dimensionality as the imageCopyright © 2015–2021 Fiji. All rights reserved.