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.
|
getType
getInterpolatorFactory, getOutOfBoundsStrategyFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInterpolatorFactory, getOutOfBoundsStrategyFactory, getType
protected 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)
Interpolator
getPosition
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()
Interpolator
getPosition
in interface Interpolator<T extends Type<T>>
getPosition
in class InterpolatorImpl<T extends Type<T>>
public void close()
Interpolator
close
in interface Interpolator<T extends Type<T>>
close
in class NearestNeighborInterpolator<T extends Type<T>>
public void moveTo(float x)
Interpolator1D
moveTo
in interface Interpolator1D<T extends Type<T>>
public void moveTo(float[] position)
Interpolator
moveTo
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)
Interpolator
moveTo
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)
Interpolator1D
moveRel
in interface Interpolator1D<T extends Type<T>>
public void moveRel(float[] vector)
Interpolator
moveRel
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)
Interpolator
moveRel
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)
Interpolator1D
setPosition
in interface Interpolator1D<T extends Type<T>>
public void setPosition(float[] position)
Interpolator
setPosition
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)
Interpolator
setPosition
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()
Interpolator1D
getX
in interface Interpolator1D<T extends Type<T>>
Copyright © 2015–2021 Fiji. All rights reserved.