public class RealComposite<T extends RealType<T>> extends AbstractNumericComposite<T,RealComposite<T>> implements RealPositionable, RealLocalizable
RealType scalars. It is a NumericType itself,
implementing the NumericType algebra as element-wise operations.| Modifier and Type | Class and Description |
|---|---|
static class |
RealComposite.Factory<T extends RealType<T>> |
iterator, lengthd, sourceAccess| Constructor and Description |
|---|
RealComposite(RandomAccess<T> sourceAccess,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
bck(int d)
Move by -1 in one dimension.
|
RealComposite<T> |
copy()
|
RealComposite<T> |
createVariable()
Generates a 1D
ArrayImg<T> |
void |
fwd(int d)
Move by 1 in one dimension.
|
double |
getDoublePosition(int d)
Return the current position in a given dimension.
|
void |
move(double[] distance)
Move the element relative to its current location using a float[] as
distance vector.
|
void |
move(double distance,
int d)
Move the element in one dimension for some distance.
|
void |
move(float[] distance)
Move the element relative to its current location using a float[] as
distance vector.
|
void |
move(float distance,
int d)
Move the element in one dimension for some distance.
|
void |
move(int[] distance)
Move the element relative to its current location using an int[] as
distance vector.
|
void |
move(int distance,
int d)
Move the element in one dimension for some distance.
|
void |
move(Localizable distance)
Move the element relative to its current location using an
Localizable as distance vector. |
void |
move(long[] distance)
Move the element relative to its current location using a long[] as
distance vector.
|
void |
move(long distance,
int d)
Move the element in one dimension for some distance.
|
void |
move(RealLocalizable distance)
Move the element relative to its current location using a
RealLocalizable as distance vector. |
int |
numDimensions()
Gets the space's number of dimensions.
|
void |
setPosition(double[] position)
Set the position of the element.
|
void |
setPosition(double position,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(float[] position)
Set the position of the element.
|
void |
setPosition(float position,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(int[] position)
Set the position of the element.
|
void |
setPosition(int position,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(Localizable position)
Place the element at the same location as a given
Localizable |
void |
setPosition(long[] position)
Set the position of the element.
|
void |
setPosition(long position,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(RealLocalizable position)
Place the element at the same location as a given
RealLocalizable |
add, div, getLength, iterator, mul, mul, mul, pow, pow, set, setOne, setZero, sub, valueEqualsgetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPointforEach, spliteratorpublic RealComposite(RandomAccess<T> sourceAccess, int length)
public RealComposite<T> createVariable()
ArrayImg<T>createVariable in interface Type<RealComposite<T extends RealType<T>>>Type variablepublic RealComposite<T> copy()
Typepublic void fwd(int d)
Positionablefwd in interface Positionabled - dimensionpublic void bck(int d)
Positionablebck in interface Positionabled - dimensionpublic void move(int distance,
int d)
Positionablemove in interface Positionabledistance - relative offset in dimension dd - dimensionpublic void move(long distance,
int d)
Positionablemove in interface Positionabledistance - relative offset in dimension dd - dimensionpublic void move(Localizable distance)
PositionableLocalizable as distance vector.move in interface Positionabledistance - relative offset, EuclideanSpace.numDimensions() must be
≥ EuclideanSpace.numDimensions()public void move(int[] distance)
Positionablemove in interface Positionabledistance - relative offset, length must be ≥ EuclideanSpace.numDimensions()public void move(long[] distance)
Positionablemove in interface Positionabledistance - relative offset, length must be ≥ EuclideanSpace.numDimensions()public void setPosition(Localizable position)
PositionableLocalizablesetPosition in interface Positionableposition - absolute position, EuclideanSpace.numDimensions() must be
≥ EuclideanSpace.numDimensions()public void setPosition(int[] position)
PositionablesetPosition in interface Positionableposition - absolute position, length must be ≥
EuclideanSpace.numDimensions()public void setPosition(long[] position)
PositionablesetPosition in interface Positionableposition - absolute position, length must be ≥
EuclideanSpace.numDimensions()public void setPosition(int position,
int d)
PositionablesetPosition in interface Positionableposition - absolute position in dimension dd - dimensionpublic void setPosition(long position,
int d)
PositionablesetPosition in interface Positionableposition - absolute position in dimension dd - dimensionpublic int numDimensions()
EuclideanSpacenumDimensions in interface EuclideanSpacepublic double getDoublePosition(int d)
RealLocalizablegetDoublePosition in interface RealLocalizabled - dimensionpublic void move(float distance,
int d)
RealPositionablemove in interface RealPositionablepublic void move(double distance,
int d)
RealPositionablemove in interface RealPositionablepublic void move(RealLocalizable distance)
RealPositionableRealLocalizable as distance vector.move in interface RealPositionabledistance - relative offset, EuclideanSpace.numDimensions() must
be ≥ EuclideanSpace.numDimensions()public void move(float[] distance)
RealPositionablemove in interface RealPositionablepublic void move(double[] distance)
RealPositionablemove in interface RealPositionablepublic void setPosition(RealLocalizable position)
RealPositionableRealLocalizablesetPosition in interface RealPositionableposition - absolute position, EuclideanSpace.numDimensions()
must be ≥ EuclideanSpace.numDimensions()public void setPosition(float[] position)
RealPositionablesetPosition in interface RealPositionableposition - absolute position, length must be ≥
EuclideanSpace.numDimensions()public void setPosition(double[] position)
RealPositionablesetPosition in interface RealPositionableposition - absolute position, length must be ≥
EuclideanSpace.numDimensions()public void setPosition(float position,
int d)
RealPositionablesetPosition in interface RealPositionablepublic void setPosition(double position,
int d)
RealPositionablesetPosition in interface RealPositionableCopyright © 2009–2022 ImgLib2. All rights reserved.