T - public class IntervalSampler<T> extends Object implements ProjectedSampler<T>
| Constructor and Description |
|---|
IntervalSampler(int projectionDimension,
long startPosition,
long endPosition) |
| Modifier and Type | Method and Description |
|---|---|
Sampler<T> |
copy() |
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. |
boolean |
hasNext()
Returns true if another step forward is possible.
|
void |
jumpFwd(long steps)
Move steps × forward.
|
void |
reset()
Reset the
Iterator, that is put it to where it would be if newly
created. |
void |
setRandomAccess(RandomAccess<T> srcAccess) |
public IntervalSampler(int projectionDimension,
long startPosition,
long endPosition)
public void jumpFwd(long steps)
Iteratorpublic void fwd()
Iteratorpublic void reset()
IteratorIterator, that is put it to where it would be if newly
created.public boolean hasNext()
Iteratorpublic T get()
SamplerSampler points at.public Sampler<T> copy()
copy in interface Sampler<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 void setRandomAccess(RandomAccess<T> srcAccess)
setRandomAccess in interface ProjectedSampler<T>srcAccess - sets the random access from which the sampler takes the values
of the projected dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.