public class NearestNeighborInterpolator1D<T extends Type<T>> extends NearestNeighborInterpolator<T> implements Interpolator1D<T>
img, interpolatorFactory, numDimensions, outOfBoundsStrategyFactory, position, tmp| Modifier | Constructor and Description |
|---|---|
protected |
NearestNeighborInterpolator1D(Image<T> img,
InterpolatorFactory<T> interpolatorFactory,
OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory) |
| 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
|
Image<T> |
getImage()
Returns the typed image the interpolator is working on
|
float[] |
getPosition()
Returns the positon of the interpolator.
|
void |
getPosition(float[] position)
Returns the positon of the interpolator.
|
float |
getX()
Returns the current x coordinate 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 x)
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[] position)
Moves the interpolator to a random position inside or out of image bounds.
|
void |
moveTo(float x)
Moves the interpolator to a random position inside or out of image bounds.
|
void |
moveTo(float[] position)
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 x)
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.
|
getTypegetInterpolatorFactory, getOutOfBoundsStrategyFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInterpolatorFactory, getOutOfBoundsStrategyFactory, getTypeprotected NearestNeighborInterpolator1D(Image<T> img, InterpolatorFactory<T> interpolatorFactory, OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory)
public Image<T> getImage()
getImage in interface Interpolator<T extends Type<T>>getImage in class InterpolatorImpl<T extends Type<T>>public void getPosition(float[] position)
InterpolatorgetPosition in interface Interpolator<T extends Type<T>>getPosition in class InterpolatorImpl<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>>getPosition in class InterpolatorImpl<T extends Type<T>>public void close()
Interpolatorclose in interface Interpolator<T extends Type<T>>close in class NearestNeighborInterpolator<T extends Type<T>>public void moveTo(float x)
Interpolator1DmoveTo in interface Interpolator1D<T extends Type<T>>public void moveTo(float[] position)
InterpolatormoveTo in interface Interpolator<T extends Type<T>>moveTo in class NearestNeighborInterpolator<T extends Type<T>>position - - the floating position of the same dimensionality as the imagepublic void moveTo(double[] position)
InterpolatormoveTo in interface Interpolator<T extends Type<T>>moveTo in class NearestNeighborInterpolator<T extends Type<T>>position - - the floating position of the same dimensionality as the imagepublic void moveRel(float x)
Interpolator1DmoveRel in interface Interpolator1D<T extends Type<T>>public void moveRel(float[] vector)
InterpolatormoveRel in interface Interpolator<T extends Type<T>>moveRel in class NearestNeighborInterpolator<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>>moveRel in class NearestNeighborInterpolator<T extends Type<T>>vector - - the floating vector of the same dimensionality as the imagepublic void setPosition(float x)
Interpolator1DsetPosition in interface Interpolator1D<T extends Type<T>>public void setPosition(float[] position)
InterpolatorsetPosition in interface Interpolator<T extends Type<T>>setPosition in class NearestNeighborInterpolator<T extends Type<T>>position - - the floating position of the same dimensionality as the imagepublic void setPosition(double[] position)
InterpolatorsetPosition in interface Interpolator<T extends Type<T>>setPosition in class NearestNeighborInterpolator<T extends Type<T>>position - - the floating position of the same dimensionality as the imagepublic float getX()
Interpolator1DgetX in interface Interpolator1D<T extends Type<T>>Copyright © 2015–2021 Fiji. All rights reserved.