public class AffineRealRandomAccessible.AffineRealRandomAccess extends RealTransformRealRandomAccessible.RealTransformRealRandomAccess
RealRandomAccess
that generates its samples from a source
RealRandomAccessible
at coordinates transformed by a
RealTransform
.sourceAccess, transformCopy
position
n
Modifier | Constructor and Description |
---|---|
protected |
AffineRealRandomAccess() |
Modifier and Type | Method and Description |
---|---|
void |
bck(int d)
Move by -1 in one dimension.
|
AffineRealRandomAccessible.AffineRealRandomAccess |
copy() |
RealRandomAccess<T> |
copyRealRandomAccess() |
void |
fwd(int d)
Move by 1 in one dimension.
|
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
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 localizable)
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 localizable)
Move the element relative to its current location using a
RealLocalizable as distance vector. |
void |
setPosition(double[] pos)
Set the position of the element.
|
void |
setPosition(double pos,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(float[] pos)
Set the position of the element.
|
void |
setPosition(float pos,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(int[] pos)
Set the position of the element.
|
void |
setPosition(int pos,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(Localizable localizable)
Place the element at the same location as a given
Localizable |
void |
setPosition(long[] pos)
Set the position of the element.
|
void |
setPosition(long pos,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(RealLocalizable localizable)
Place the element at the same location as a given
RealLocalizable |
apply
getDoublePosition, getFloatPosition, localize, localize
numDimensions
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setPositionAndGet, setPositionAndGet, setPositionAndGet
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
public void move(float distance, int d)
RealPositionable
move
in interface RealPositionable
move
in class RealPoint
public void move(double distance, int d)
RealPositionable
move
in interface RealPositionable
move
in class RealPoint
public void move(RealLocalizable localizable)
RealPositionable
RealLocalizable
as distance vector.move
in interface RealPositionable
move
in class RealPoint
localizable
- relative offset, EuclideanSpace.numDimensions()
must
be ≥ EuclideanSpace.numDimensions()
public void move(float[] distance)
RealPositionable
move
in interface RealPositionable
move
in class RealPoint
public void move(double[] distance)
RealPositionable
move
in interface RealPositionable
move
in class RealPoint
public void setPosition(RealLocalizable localizable)
RealPositionable
RealLocalizable
setPosition
in interface RealPositionable
setPosition
in class RealPoint
localizable
- absolute position, EuclideanSpace.numDimensions()
must be ≥ EuclideanSpace.numDimensions()
public void setPosition(float[] pos)
RealPositionable
setPosition
in interface RealPositionable
setPosition
in class RealPoint
pos
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
public void setPosition(double[] pos)
RealPositionable
setPosition
in interface RealPositionable
setPosition
in class RealPoint
pos
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
public void setPosition(float pos, int d)
RealPositionable
setPosition
in interface RealPositionable
setPosition
in class RealPoint
public void setPosition(double pos, int d)
RealPositionable
setPosition
in interface RealPositionable
setPosition
in class RealPoint
public void fwd(int d)
Positionable
fwd
in interface Positionable
fwd
in class RealPoint
d
- dimensionpublic void bck(int d)
Positionable
bck
in interface Positionable
bck
in class RealPoint
d
- dimensionpublic void move(int distance, int d)
Positionable
move
in interface Positionable
move
in class RealPoint
distance
- relative offset in dimension dd
- dimensionpublic void move(long distance, int d)
Positionable
move
in interface Positionable
move
in class RealPoint
distance
- relative offset in dimension dd
- dimensionpublic void move(Localizable localizable)
Positionable
Localizable
as distance vector.move
in interface Positionable
move
in class RealPoint
localizable
- relative offset, EuclideanSpace.numDimensions()
must be
≥ EuclideanSpace.numDimensions()
public void move(int[] distance)
Positionable
move
in interface Positionable
move
in class RealPoint
distance
- relative offset, length must be ≥ EuclideanSpace.numDimensions()
public void move(long[] distance)
Positionable
move
in interface Positionable
move
in class RealPoint
distance
- relative offset, length must be ≥ EuclideanSpace.numDimensions()
public void setPosition(Localizable localizable)
Positionable
Localizable
setPosition
in interface Positionable
setPosition
in class RealPoint
localizable
- absolute position, EuclideanSpace.numDimensions()
must be
≥ EuclideanSpace.numDimensions()
public void setPosition(int[] pos)
Positionable
setPosition
in interface Positionable
setPosition
in class RealPoint
pos
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
public void setPosition(long[] pos)
Positionable
setPosition
in interface Positionable
setPosition
in class RealPoint
pos
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
public void setPosition(int pos, int d)
Positionable
setPosition
in interface Positionable
setPosition
in class RealPoint
pos
- absolute position in dimension dd
- dimensionpublic void setPosition(long pos, int d)
Positionable
setPosition
in interface Positionable
setPosition
in class RealPoint
pos
- absolute position in dimension dd
- dimensionpublic T get()
Sampler
Sampler
points at.get
in interface Sampler<T>
get
in class RealTransformRealRandomAccessible.RealTransformRealRandomAccess
public AffineRealRandomAccessible.AffineRealRandomAccess copy()
copy
in interface Sampler<T>
copy
in class RealTransformRealRandomAccessible.RealTransformRealRandomAccess
Sampler
in the same state accessing the same
values.
It does NOT copy T, just the state of the Sampler
.
Otherwise use T.copy() if available.
Sampler.copy().get() == Sampler.get(), i.e. both hold the same
value, not necessarily the same instance (this is the case for an
ArrayCursor
for example)public RealRandomAccess<T> copyRealRandomAccess()
copyRealRandomAccess
in interface RealRandomAccess<T>
copyRealRandomAccess
in class RealTransformRealRandomAccessible.RealTransformRealRandomAccess
Copyright © 2015–2022 ImgLib2. All rights reserved.