public class HorizontalLineNeighborhoodCursor<T> extends HorizontalLineNeighborhoodLocalizableSampler<T> implements Cursor<Neighborhood<T>>
currentNeighborhood, currentPos, dim, neighborhoodFactory, source, sourceInterval, span
n
Constructor and Description |
---|
HorizontalLineNeighborhoodCursor(RandomAccessibleInterval<T> source,
long span,
int dim,
boolean skipCenter,
HorizontalLineNeighborhoodFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
HorizontalLineNeighborhoodCursor<T> |
copy() |
HorizontalLineNeighborhoodCursor<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 HorizontalLineNeighborhoodCursor(RandomAccessibleInterval<T> source, long span, int dim, boolean skipCenter, HorizontalLineNeighborhoodFactory<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 HorizontalLineNeighborhoodCursor<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 HorizontalLineNeighborhoodCursor<T> copyCursor()
copyCursor
in interface Cursor<Neighborhood<T>>
copyCursor
in interface RealCursor<Neighborhood<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.