public class BiConvertedIterableRealInterval<A,B,C> extends AbstractConvertedIterableRealInterval<A,C>
| Modifier and Type | Field and Description |
|---|---|
protected Supplier<? extends C> |
convertedSupplier |
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,
Supplier<? extends C> convertedSupplier)
Creates a copy of c for conversion.
|
BiConvertedIterableRealInterval(IterableRealInterval<A> sourceA,
IterableRealInterval<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
Supplier<? extends C> convertedSupplier)
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()
Deprecated.
Use
getConverterSupplier() instead |
Supplier<BiConverter<? super A,? super B,? super C>> |
getConverterSupplier() |
Supplier<? extends C> |
getDestinationSupplier() |
C |
getDestinationType()
Deprecated.
Use
getDestinationSupplier() instead. |
C |
getType()
Get an instance of
T. |
BiConvertedRealCursor<A,B,C> |
localizingCursor()
Returns a
RealLocalizable Iterator that calculates its
location at each iteration step. |
iterationOrder, sizegetSource, numDimensions, realMax, realMax, realMax, realMin, realMin, realMinclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfirstElement, iterator, localizingSpliterator, parallelStream, spliterator, streammaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMax, realMin, realMin, realMinnumDimensionsprotected final IterableRealInterval<B> sourceIntervalB
protected final Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier
public BiConvertedIterableRealInterval(IterableRealInterval<A> sourceA, IterableRealInterval<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, Supplier<? extends C> convertedSupplier)
sourceA - sourceB - converterSupplier - convertedSupplier - public BiConvertedIterableRealInterval(IterableRealInterval<A> sourceA, IterableRealInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, Supplier<? extends C> convertedSupplier)
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.
cursor in interface IterableRealInterval<C>cursor in class AbstractConvertedIterableRealInterval<A,C>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>localizingCursor in class AbstractConvertedIterableRealInterval<A,C>@Deprecated public C getDestinationType()
getDestinationSupplier() instead.Type.public Supplier<? extends C> getDestinationSupplier()
public C getType()
IterableRealIntervalT.
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.
The default implementation returns IterableRealInterval.firstElement(). Derived classes
may choose different implementations for improved performance.
T@Deprecated public BiConverter<? super A,? super B,? super C> getConverter()
getConverterSupplier() insteadBiConverter. If the
BiConvertedIterableRealInterval was created with a BiConverter
instead of a Supplier, then the returned converter will be this
instance.public Supplier<BiConverter<? super A,? super B,? super C>> getConverterSupplier()
Copyright © 2009–2025 ImgLib2. All rights reserved.