public class ConvertedRealCursor<A,B> extends AbstractConvertedRealCursor<A,B>
| Modifier and Type | Field and Description |
|---|---|
protected B |
converted |
protected Supplier<? extends B> |
convertedSupplier |
protected Converter<? super A,? super B> |
converter |
protected Supplier<Converter<? super A,? super B>> |
converterSupplier |
source| Constructor and Description |
|---|
ConvertedRealCursor(RealCursor<A> source,
Converter<? super A,? super B> converter,
Supplier<? extends B> convertedSupplier)
Creates a copy of b for conversion that can be accessed through
get(). |
ConvertedRealCursor(RealCursor<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
Supplier<? extends B> convertedSupplier)
Creates a copy of b for conversion that can be accessed through
get(). |
| Modifier and Type | Method and Description |
|---|---|
ConvertedRealCursor<A,B> |
copy() |
B |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
B |
getType()
Get an instance of
T. |
fwd, getDoublePosition, getFloatPosition, hasNext, jumpFwd, localize, localize, numDimensions, remove, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyCursor, nextlocalize, positionAsDoubleArray, positionAsRealPointforEachRemainingprotected final B converted
public ConvertedRealCursor(RealCursor<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, Supplier<? extends B> convertedSupplier)
get().source - converterSupplier - convertedSupplier - public B get()
SamplerSampler points at.public B getType()
TypedT.
It should not be assumed that the returned T instance is an
independent copy. In particular, repeated calls to getType() may
return the same instance.
Tpublic ConvertedRealCursor<A,B> copy()
copy in interface RealCursor<B>copy in interface Sampler<B>copy in class AbstractConvertedRealCursor<A,B>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)Copyright © 2009–2024 ImgLib2. All rights reserved.