Package net.imglib2.position.transform
Class Floor<LocalizablePositionable extends Localizable & Positionable>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.position.transform.AbstractPositionableTransform<LocalizablePositionable>
net.imglib2.position.transform.Floor<LocalizablePositionable>
- All Implemented Interfaces:
EuclideanSpace,Positionable,RealLocalizable,RealPositionable
- Direct Known Subclasses:
FloorInterpolator,NLinearInterpolator
public class Floor<LocalizablePositionable extends Localizable & Positionable>
extends AbstractPositionableTransform<LocalizablePositionable>
A
RealPositionable that drives a Positionable to its floor
discrete coordinates. For practical useage, the floor operation is defined as
the integer smaller than the real value:
f = r < 0 ? (long)r - 1 : (long)r- Author:
- Stephan Saalfeld
-
Field Summary
Fields inherited from class net.imglib2.position.transform.AbstractPositionableTransform
discrete, position, targetFields inherited from class net.imglib2.AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsConstructorDescriptionFloor(LocalizablePositionable target) Floor(RealLocalizable origin, LocalizablePositionable target) -
Method Summary
Modifier and TypeMethodDescriptionstatic final longfloor(double r) static final voidfloor(double[] r, long[] f) static final longfloor(float r) static final voidfloor(float[] r, long[] f) static final voidfloor(RealLocalizable r, long[] f) voidmove(double[] distance) Move the element relative to its current location using a float[] as distance vector.voidmove(double distance, int d) Move the element in one dimension for some distance.voidmove(float[] distance) Move the element relative to its current location using a float[] as distance vector.voidmove(float distance, int d) Move the element in one dimension for some distance.voidmove(RealLocalizable localizable) Move the element relative to its current location using aRealLocalizableas distance vector.voidsetPosition(double[] position) Set the position of the element.voidsetPosition(double position, int dim) Set the position of the element for one dimension.voidsetPosition(float[] pos) Set the position of the element.voidsetPosition(float position, int dim) Set the position of the element for one dimension.voidsetPosition(RealLocalizable localizable) Place the element at the same location as a givenRealLocalizableMethods inherited from class net.imglib2.position.transform.AbstractPositionableTransform
bck, fwd, getDoublePosition, getFloatPosition, localize, localize, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toStringMethods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Constructor Details
-
Floor
-
Floor
-
-
Method Details
-
floor
public static final long floor(double r) -
floor
public static final long floor(float r) -
floor
public static final void floor(double[] r, long[] f) -
floor
public static final void floor(float[] r, long[] f) -
floor
-
move
public void move(float distance, int d) Description copied from interface:RealPositionableMove the element in one dimension for some distance.- Parameters:
distance-d-
-
move
public void move(double distance, int d) Description copied from interface:RealPositionableMove the element in one dimension for some distance.- Parameters:
distance-d-
-
move
Description copied from interface:RealPositionableMove the element relative to its current location using aRealLocalizableas distance vector.- Parameters:
localizable- relative offset,EuclideanSpace.numDimensions()must be ≥EuclideanSpace.numDimensions()
-
move
public void move(float[] distance) Description copied from interface:RealPositionableMove the element relative to its current location using a float[] as distance vector.- Parameters:
distance- , length must be ≥EuclideanSpace.numDimensions()
-
move
public void move(double[] distance) Description copied from interface:RealPositionableMove the element relative to its current location using a float[] as distance vector.- Parameters:
distance- , length must be ≥EuclideanSpace.numDimensions()
-
setPosition
Description copied from interface:RealPositionablePlace the element at the same location as a givenRealLocalizable- Parameters:
localizable- absolute position,EuclideanSpace.numDimensions()must be ≥EuclideanSpace.numDimensions()
-
setPosition
public void setPosition(float[] pos) Description copied from interface:RealPositionableSet the position of the element.- Parameters:
pos- absolute position, length must be ≥EuclideanSpace.numDimensions()
-
setPosition
public void setPosition(double[] position) Description copied from interface:RealPositionableSet the position of the element.- Parameters:
position- absolute position, length must be ≥EuclideanSpace.numDimensions()
-
setPosition
public void setPosition(float position, int dim) Description copied from interface:RealPositionableSet the position of the element for one dimension.- Parameters:
position-dim-
-
setPosition
public void setPosition(double position, int dim) Description copied from interface:RealPositionableSet the position of the element for one dimension.- Parameters:
position-dim-
-