public final class RectangleNeighborhoodCursor<T> extends RectangleNeighborhoodLocalizableSampler<T> implements Cursor<Neighborhood<T>>
currentMax, currentMin, currentNeighborhood, currentPos, neighborhoodFactory, source, sourceInterval, span
n
Constructor and Description |
---|
RectangleNeighborhoodCursor(RandomAccessibleInterval<T> source,
Interval span,
RectangleNeighborhoodFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
RectangleNeighborhoodCursor<T> |
copy() |
RectangleNeighborhoodCursor<T> |
copyCursor() |
void |
fwd()
Move forward.
|
boolean |
hasNext()
Returns true if another step forward is possible.
|
void |
jumpFwd(long steps)
Move steps × forward.
|
Neighborhood<T> |
next() |
void |
remove() |
void |
reset()
Reset the
Iterator , that is put it to where it would be if newly
created. |
get, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
public RectangleNeighborhoodCursor(RandomAccessibleInterval<T> source, Interval span, RectangleNeighborhoodFactory<T> factory)
public void fwd()
Iterator
public void reset()
Iterator
Iterator
, that is put it to where it would be if newly
created.public boolean hasNext()
Iterator
hasNext
in interface Iterator<Neighborhood<T>>
public void jumpFwd(long steps)
Iterator
steps
- number of steps to move forwardpublic Neighborhood<T> next()
next
in interface Iterator<Neighborhood<T>>
public void remove()
remove
in interface Iterator<Neighborhood<T>>
public RectangleNeighborhoodCursor<T> copy()
copy
in interface Sampler<Neighborhood<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 RectangleNeighborhoodCursor<T> copyCursor()
copyCursor
in interface Cursor<Neighborhood<T>>
copyCursor
in interface RealCursor<Neighborhood<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.