protected class AbstractIterableRegionOfInterest.AROIIterableInterval.AROICursor extends Object implements Cursor<T>
Modifier | Constructor and Description |
---|---|
|
AROICursor() |
protected |
AROICursor(AbstractIterableRegionOfInterest.AROIIterableInterval.AROICursor cursor) |
Modifier and Type | Method and Description |
---|---|
AbstractIterableRegionOfInterest.AROIIterableInterval.AROICursor |
copy() |
AbstractIterableRegionOfInterest.AROIIterableInterval.AROICursor |
copyCursor() |
void |
fwd()
Move forward.
|
T |
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.
|
int |
getIntPosition(int dim)
Return the current position in a given dimension.
|
long |
getLongPosition(int dim)
Return the current position in a given dimension.
|
boolean |
hasNext()
Returns true if another step forward is possible.
|
void |
jumpFwd(long steps)
Move steps × forward.
|
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 |
localize(int[] pos)
Write the current position into the passed array.
|
void |
localize(long[] pos)
Write the current position into the passed array.
|
T |
next() |
int |
numDimensions()
Gets the space's number of dimensions.
|
void |
remove() |
void |
reset()
Reset the
Iterator , that is put it to where it would be if newly
created. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
protected AROICursor(AbstractIterableRegionOfInterest.AROIIterableInterval.AROICursor cursor)
public AROICursor()
public void localize(float[] pos)
RealLocalizable
localize
in interface RealLocalizable
pos
- receives current positionpublic void localize(double[] pos)
RealLocalizable
localize
in interface RealLocalizable
pos
- receives current positionpublic void localize(int[] pos)
Localizable
localize
in interface Localizable
pos
- receives current positionpublic void localize(long[] pos)
Localizable
localize
in interface Localizable
pos
- receives current positionpublic float getFloatPosition(int dim)
RealLocalizable
getFloatPosition
in interface Localizable
getFloatPosition
in interface RealLocalizable
dim
- dimensionpublic double getDoublePosition(int dim)
RealLocalizable
getDoublePosition
in interface Localizable
getDoublePosition
in interface RealLocalizable
dim
- dimensionpublic int getIntPosition(int dim)
Localizable
getIntPosition
in interface Localizable
dim
- dimensionpublic long getLongPosition(int dim)
Localizable
getLongPosition
in interface Localizable
dim
- dimensionpublic int numDimensions()
EuclideanSpace
numDimensions
in interface EuclideanSpace
public T get()
Sampler
Sampler
points at.public void jumpFwd(long steps)
Iterator
steps
- number of steps to move forwardpublic void fwd()
Iterator
public void reset()
Iterator
Iterator
, that is put it to where it would be if newly
created.public boolean hasNext()
Iterator
public AbstractIterableRegionOfInterest.AROIIterableInterval.AROICursor copy()
copy
in interface Sampler<T extends Type<T>>
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 AbstractIterableRegionOfInterest.AROIIterableInterval.AROICursor copyCursor()
copyCursor
in interface Cursor<T extends Type<T>>
copyCursor
in interface RealCursor<T extends Type<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.