T
- public class SelectiveSampler<T> extends Object implements ProjectedSampler<T>
Constructor and Description |
---|
SelectiveSampler(int projectionDimension,
long[] projectedPositions) |
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 SelectiveSampler(int projectionDimension, long[] projectedPositions)
public void jumpFwd(long steps)
Iterator
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
public T get()
Sampler
Sampler
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.