protected class AbstractRegionOfInterest.AROIRandomAccess extends Object implements RealRandomAccess<BitType>
| Modifier | Constructor and Description |
|---|---|
|
AROIRandomAccess() |
protected |
AROIRandomAccess(AbstractRegionOfInterest.AROIRandomAccess randomAccess) |
| Modifier and Type | Method and Description |
|---|---|
void |
bck(int dim)
Move by -1 in one dimension.
|
AbstractRegionOfInterest.AROIRandomAccess |
copy() |
AbstractRegionOfInterest.AROIRandomAccess |
copyRealRandomAccess() |
void |
fwd(int dim)
Move by 1 in one dimension.
|
BitType |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
double |
getDoublePosition(int dim)
Return the current position in a given dimension.
|
float |
getFloatPosition(int dim)
Return the current position in a given dimension.
|
void |
localize(double[] pos)
Write the current position into the passed array.
|
void |
localize(float[] pos)
Write the current position into the passed array.
|
void |
move(double[] pos)
Move the element relative to its current location using a float[] as
distance vector.
|
void |
move(double distance,
int dim)
Move the element in one dimension for some distance.
|
void |
move(float[] pos)
Move the element relative to its current location using a float[] as
distance vector.
|
void |
move(float distance,
int dim)
Move the element in one dimension for some distance.
|
void |
move(int[] pos)
Move the element relative to its current location using an int[] as
distance vector.
|
void |
move(int distance,
int dim)
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[] pos)
Move the element relative to its current location using a long[] as
distance vector.
|
void |
move(long distance,
int dim)
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. |
int |
numDimensions()
Gets the space's number of dimensions.
|
void |
setPosition(double[] position)
Set the position of the element.
|
void |
setPosition(double position,
int dim)
Set the position of the element for one dimension.
|
void |
setPosition(float[] position)
Set the position of the element.
|
void |
setPosition(float position,
int dim)
Set the position of the element for one dimension.
|
void |
setPosition(int[] position)
Set the position of the element.
|
void |
setPosition(int position,
int dim)
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[] position)
Set the position of the element.
|
void |
setPosition(long position,
int dim)
Set the position of the element for one dimension.
|
void |
setPosition(RealLocalizable localizable)
Place the element at the same location as a given
RealLocalizable |
protected void |
updateCachedMembershipStatus() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetPositionAndGet, setPositionAndGet, setPositionAndGetlocalize, positionAsDoubleArray, positionAsRealPointprotected AROIRandomAccess(AbstractRegionOfInterest.AROIRandomAccess randomAccess)
public AROIRandomAccess()
public void localize(float[] pos)
RealLocalizablelocalize in interface RealLocalizablepos - receives current positionpublic void localize(double[] pos)
RealLocalizablelocalize in interface RealLocalizablepos - receives current positionpublic float getFloatPosition(int dim)
RealLocalizablegetFloatPosition in interface RealLocalizabledim - dimensionpublic double getDoublePosition(int dim)
RealLocalizablegetDoublePosition in interface RealLocalizabledim - dimensionpublic int numDimensions()
EuclideanSpacenumDimensions in interface EuclideanSpacepublic void move(float distance,
int dim)
RealPositionablemove in interface RealPositionablepublic void move(double distance,
int dim)
RealPositionablemove in interface RealPositionablepublic void move(int distance,
int dim)
Positionablemove in interface Positionabledistance - relative offset in dimension ddim - dimensionpublic void move(long distance,
int dim)
Positionablemove in interface Positionabledistance - relative offset in dimension ddim - dimensionpublic void move(RealLocalizable localizable)
RealPositionableRealLocalizable as distance vector.move in interface RealPositionablelocalizable - relative offset, EuclideanSpace.numDimensions() must
be ≥ EuclideanSpace.numDimensions()public void move(Localizable localizable)
PositionableLocalizable as distance vector.move in interface Positionablelocalizable - relative offset, EuclideanSpace.numDimensions() must be
≥ EuclideanSpace.numDimensions()public void move(float[] pos)
RealPositionablemove in interface RealPositionablepublic void move(double[] pos)
RealPositionablemove in interface RealPositionablepublic void move(int[] pos)
Positionablemove in interface Positionablepos - relative offset, length must be ≥ EuclideanSpace.numDimensions()public void move(long[] pos)
Positionablemove in interface Positionablepos - relative offset, length must be ≥ EuclideanSpace.numDimensions()public void setPosition(RealLocalizable localizable)
RealPositionableRealLocalizablesetPosition in interface RealPositionablelocalizable - absolute position, EuclideanSpace.numDimensions()
must be ≥ EuclideanSpace.numDimensions()public void setPosition(Localizable localizable)
PositionableLocalizablesetPosition in interface Positionablelocalizable - 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(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(float position,
int dim)
RealPositionablesetPosition in interface RealPositionablepublic void setPosition(double position,
int dim)
RealPositionablesetPosition in interface RealPositionablepublic void setPosition(int position,
int dim)
PositionablesetPosition in interface Positionableposition - absolute position in dimension ddim - dimensionpublic void setPosition(long position,
int dim)
PositionablesetPosition in interface Positionableposition - absolute position in dimension ddim - dimensionprotected void updateCachedMembershipStatus()
public void fwd(int dim)
Positionablefwd in interface Positionabledim - dimensionpublic void bck(int dim)
Positionablebck in interface Positionabledim - dimensionpublic BitType get()
SamplerSampler points at.public AbstractRegionOfInterest.AROIRandomAccess copy()
copy in interface Sampler<BitType>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 AbstractRegionOfInterest.AROIRandomAccess copyRealRandomAccess()
copyRealRandomAccess in interface RealRandomAccess<BitType>Copyright © 2015–2022 ImgLib2. All rights reserved.