public class ConvertedRealCursor<A,B extends Type<B>> extends AbstractConvertedRealCursor<A,B>
Modifier and Type | Field and Description |
---|---|
protected B |
converted |
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,
B b)
Creates a copy of b for conversion that can be accessed through
get() . |
ConvertedRealCursor(RealCursor<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
B b)
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. |
copyCursor, fwd, getDoublePosition, getFloatPosition, hasNext, jumpFwd, localize, localize, next, numDimensions, remove, reset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
localize, positionAsDoubleArray, positionAsRealPoint
forEachRemaining
protected final Supplier<Converter<? super A,? super B extends Type<B>>> converterSupplier
public ConvertedRealCursor(RealCursor<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, B b)
get()
.source
- converterSupplier
- b
- public B get()
Sampler
Sampler
points at.public ConvertedRealCursor<A,B> copy()
copy
in interface Sampler<B extends Type<B>>
copy
in class AbstractConvertedRealCursor<A,B extends Type<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 © 2015–2022 ImgLib2. All rights reserved.