public class SamplingCursor<T> extends AbstractConvertedCursor<Void,T>
| Modifier and Type | Field and Description |
|---|---|
protected RandomAccess<T> |
target |
source| Constructor and Description |
|---|
SamplingCursor(Cursor<Void> source,
RandomAccess<T> target) |
| Modifier and Type | Method and Description |
|---|---|
SamplingCursor<T> |
copy() |
SamplingCursor<T> |
copyCursor() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, hasNext, jumpFwd, localize, localize, localize, localize, next, numDimensions, remove, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointprotected final RandomAccess<T> target
public SamplingCursor(Cursor<Void> source, RandomAccess<T> target)
public T get()
SamplerSampler points at.public SamplingCursor<T> copy()
copy in interface Sampler<T>copy in class AbstractConvertedCursor<Void,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 SamplingCursor<T> copyCursor()
copyCursor in interface Cursor<T>copyCursor in interface RealCursor<T>copyCursor in class AbstractConvertedCursor<Void,T>Copyright © 2015–2022 ImgLib2. All rights reserved.