public class RectangleCursor<T> extends AbstractNeighborhoodCursor<T>
Cursor that iterates over a RectangleNeighborhoodGPL.| Modifier and Type | Field and Description |
|---|---|
protected long |
count |
protected long[] |
position |
protected long |
size |
neighborhood, ra| Constructor and Description |
|---|
RectangleCursor(AbstractNeighborhood<T> rectangle) |
| Modifier and Type | Method and Description |
|---|---|
RectangleCursor<T> |
copy() |
RectangleCursor<T> |
copyCursor() |
void |
fwd() |
boolean |
hasNext() |
void |
jumpFwd(long steps)
This simply turns to multiple calls to
fwd(). |
T |
next() |
void |
reset() |
get, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, isOutOfBounds, localize, localize, localize, localize, numDimensions, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointpublic RectangleCursor(AbstractNeighborhood<T> rectangle)
public RectangleCursor<T> copy()
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 void jumpFwd(long steps)
fwd().jumpFwd in class AbstractNeighborhoodCursor<T>steps - number of steps to move forwardpublic void fwd()
public void reset()
public boolean hasNext()
public T next()
public RectangleCursor<T> copyCursor()
Copyright © 2015–2022 ImgLib2. All rights reserved.