public class LinearInterpolator<T extends NumericType<T>> extends InterpolatorImpl<T>
img, interpolatorFactory, numDimensions, outOfBoundsStrategyFactory, position, tmp
Modifier | Constructor and Description |
---|---|
protected |
LinearInterpolator(Image<T> img,
InterpolatorFactory<T> interpolatorFactory,
OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory) |
protected |
LinearInterpolator(Image<T> img,
InterpolatorFactory<T> interpolatorFactory,
OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory,
boolean initGenericStructures) |
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
|
T |
getType()
Returns the type which stores the value for the current position of the interpolator
|
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[] position)
Sets the interpolator to a random position inside or out of image bounds.
|
void |
setPosition(float[] position)
Sets the interpolator to a random position inside or out of image bounds.
|
getImage, getInterpolatorFactory, getOutOfBoundsStrategyFactory, getPosition, getPosition, moveRel, moveRel
protected LinearInterpolator(Image<T> img, InterpolatorFactory<T> interpolatorFactory, OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory)
protected LinearInterpolator(Image<T> img, InterpolatorFactory<T> interpolatorFactory, OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory, boolean initGenericStructures)
public void close()
Interpolator
public T getType()
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 setPosition(float[] position)
Interpolator
position
- - the floating position of the same dimensionality as the imagepublic void setPosition(double[] position)
Interpolator
position
- - the floating position of the same dimensionality as the imageCopyright © 2015–2021 Fiji. All rights reserved.