public abstract class InterpolatorImpl<T extends Type<T>> extends Object implements Interpolator<T>
| Modifier and Type | Field and Description |
|---|---|
protected Image<T> |
img |
protected InterpolatorFactory<T> |
interpolatorFactory |
protected int |
numDimensions
the number of dimensions
|
protected OutOfBoundsStrategyFactory<T> |
outOfBoundsStrategyFactory |
protected float[] |
position |
protected float[] |
tmp |
| Modifier | Constructor and Description |
|---|---|
protected |
InterpolatorImpl(Image<T> img,
InterpolatorFactory<T> interpolatorFactory,
OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory) |
| Modifier and Type | Method and Description |
|---|---|
Image<T> |
getImage()
Returns the typed image the interpolator is working on
|
InterpolatorFactory<T> |
getInterpolatorFactory()
Returns the typed interpolator factory the Interpolator has been instantiated with.
|
OutOfBoundsStrategyFactory<T> |
getOutOfBoundsStrategyFactory()
Returns the
OutOfBoundsStrategyFactory used for interpolation |
float[] |
getPosition()
Returns the positon of the interpolator.
|
void |
getPosition(float[] position)
Returns the positon 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getType, moveTo, moveTo, setPosition, setPositionprotected final InterpolatorFactory<T extends Type<T>> interpolatorFactory
protected final OutOfBoundsStrategyFactory<T extends Type<T>> outOfBoundsStrategyFactory
protected final float[] position
protected final float[] tmp
protected final int numDimensions
protected InterpolatorImpl(Image<T> img, InterpolatorFactory<T> interpolatorFactory, OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory)
public InterpolatorFactory<T> getInterpolatorFactory()
getInterpolatorFactory in interface Interpolator<T extends Type<T>>public OutOfBoundsStrategyFactory<T> getOutOfBoundsStrategyFactory()
OutOfBoundsStrategyFactory used for interpolationgetOutOfBoundsStrategyFactory in interface Interpolator<T extends Type<T>>OutOfBoundsStrategyFactorypublic Image<T> getImage()
getImage in interface Interpolator<T extends Type<T>>public void getPosition(float[] position)
InterpolatorgetPosition in interface Interpolator<T extends Type<T>>position - - the floating position of the same dimensionality as the imagepublic float[] getPosition()
InterpolatorgetPosition in interface Interpolator<T extends Type<T>>public void moveRel(float[] vector)
InterpolatormoveRel in interface Interpolator<T extends Type<T>>vector - - the floating vector of the same dimensionality as the imagepublic void moveRel(double[] vector)
InterpolatormoveRel in interface Interpolator<T extends Type<T>>vector - - the floating vector of the same dimensionality as the imageCopyright © 2015–2021 Fiji. All rights reserved.