public class BiConvertedIterableRealInterval<A,B,C extends Type<C>> extends AbstractConvertedIterableRealInterval<A,C>
Modifier and Type | Field and Description |
---|---|
protected C |
converted |
protected Supplier<BiConverter<? super A,? super B,? super C>> |
converterSupplier |
protected IterableRealInterval<B> |
sourceIntervalB |
sourceInterval
Constructor and Description |
---|
BiConvertedIterableRealInterval(IterableRealInterval<A> sourceA,
IterableRealInterval<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
Creates a copy of c for conversion.
|
BiConvertedIterableRealInterval(IterableRealInterval<A> sourceA,
IterableRealInterval<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
Creates a copy of c for conversion.
|
Modifier and Type | Method and Description |
---|---|
BiConvertedRealCursor<A,B,C> |
cursor()
Returns a
RealCursor that iterates with optimal speed without
calculating the location at each iteration step. |
BiConverter<? super A,? super B,? super C> |
getConverter()
Returns an instance of the
Converter . |
C |
getDestinationType() |
BiConvertedRealCursor<A,B,C> |
localizingCursor()
Returns a
RealLocalizable Iterator that calculates its
location at each iteration step. |
firstElement, iterationOrder, iterator, size
getSource, numDimensions, realMax, realMax, realMax, realMin, realMin, realMin
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMax, realMin, realMin, realMin
numDimensions
forEach, spliterator
protected final IterableRealInterval<B> sourceIntervalB
protected final Supplier<BiConverter<? super A,? super B,? super C extends Type<C>>> converterSupplier
public BiConvertedIterableRealInterval(IterableRealInterval<A> sourceA, IterableRealInterval<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
sourceA
- sourceB
- c
- public BiConvertedIterableRealInterval(IterableRealInterval<A> sourceA, IterableRealInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
converter
- public BiConvertedRealCursor<A,B,C> cursor()
IterableRealInterval
Returns a RealCursor
that iterates with optimal speed without
calculating the location at each iteration step. Localization is
performed on demand.
Use this where localization is required rarely/ not for each iteration.
public BiConvertedRealCursor<A,B,C> localizingCursor()
IterableRealInterval
Returns a RealLocalizable
Iterator
that calculates its
location at each iteration step. That is, localization is performed with
optimal speed.
Use this where localization is required often/ for each iteration.
localizingCursor
in interface IterableRealInterval<C extends Type<C>>
localizingCursor
in class AbstractConvertedIterableRealInterval<A,C extends Type<C>>
public BiConverter<? super A,? super B,? super C> getConverter()
Converter
. If the
ConvertedIterableInterval
was created with a Converter
instead of a Supplier
, then the returned converter will be this
instance.Copyright © 2015–2022 ImgLib2. All rights reserved.