public class BiConvertedRealCursor<A,B,C extends Type<C>> extends AbstractConvertedRealCursor<A,C>
| Modifier and Type | Field and Description |
|---|---|
protected C |
converted |
protected BiConverter<? super A,? super B,? super C> |
converter |
protected Supplier<BiConverter<? super A,? super B,? super C>> |
converterSupplier |
protected RealCursor<B> |
sourceB |
source| Constructor and Description |
|---|
BiConvertedRealCursor(RealCursor<A> sourceA,
RealCursor<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
Creates a copy of c for conversion that can be accessed through
get(). |
BiConvertedRealCursor(RealCursor<A> sourceA,
RealCursor<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
Creates a copy of c for conversion that can be accessed through
get(). |
| Modifier and Type | Method and Description |
|---|---|
BiConvertedRealCursor<A,B,C> |
copy() |
void |
fwd()
Move forward.
|
C |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
boolean |
hasNext()
The correct logic would be to return
sourceA.hasNext() && sourceB.hasNext()
but we test only sourceA for efficiency. |
void |
jumpFwd(long steps)
Move steps × forward.
|
void |
remove() |
void |
reset()
Reset the
Iterator, that is put it to where it would be if newly
created. |
copyCursor, getDoublePosition, getFloatPosition, localize, localize, next, numDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlocalize, positionAsDoubleArray, positionAsRealPointforEachRemainingprotected final Supplier<BiConverter<? super A,? super B,? super C extends Type<C>>> converterSupplier
protected final RealCursor<B> sourceB
public BiConvertedRealCursor(RealCursor<A> sourceA, RealCursor<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
get().sourceA - sourceB - converterSupplier - c - public BiConvertedRealCursor(RealCursor<A> sourceA, RealCursor<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
get().sourceA - sourceB - converter - c - public C get()
SamplerSampler points at.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()
sourceA.hasNext() && sourceB.hasNext()
but we test only sourceA for efficiency. Make sure that sourceA is the
smaller IterableInterval.public void remove()
public BiConvertedRealCursor<A,B,C> copy()
copy in interface Sampler<C extends Type<C>>copy in class AbstractConvertedRealCursor<A,C extends Type<C>>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.