Class BiConvertedIterableInterval<A,B,C>
java.lang.Object
net.imglib2.AbstractWrappedRealInterval<IterableInterval<A>>
net.imglib2.AbstractWrappedInterval<IterableInterval<A>>
net.imglib2.converter.AbstractConvertedIterableInterval<A,C>
net.imglib2.converter.read.BiConvertedIterableInterval<A,B,C>
- All Implemented Interfaces:
Iterable<C>, Dimensions, EuclideanSpace, Interval, IterableInterval<C>, IterableRealInterval<C>, RealInterval, Typed<C>, View
TODO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Supplier<BiConverter<? super A, ? super B, ? super C>> protected final IterableInterval<B> Fields inherited from class AbstractWrappedRealInterval
sourceInterval -
Constructor Summary
ConstructorsConstructorDescriptionBiConvertedIterableInterval(IterableInterval<A> sourceA, IterableInterval<B> sourceB, Supplier<BiConverter<? super A, ? super B, ? super C>> converterSupplier, Supplier<? extends C> convertedSupplier) Creates a copy of c for conversion.BiConvertedIterableInterval(IterableInterval<A> sourceA, IterableInterval<B> sourceB, BiConverter<? super A, ? super B, ? super C> converter, Supplier<? extends C> convertedSupplier) Creates a copy of c for conversion. -
Method Summary
Modifier and TypeMethodDescriptioncursor()Returns aRealCursorthat iterates with optimal speed without calculating the location at each iteration step.BiConverter<? super A, ? super B, ? super C> Deprecated.Supplier<BiConverter<? super A, ? super B, ? super C>> Deprecated.UsegetDestinationSupplier()instead.getType()Get an instance ofT.Creates a localizingCursorfor sourceA only because this will be used for localization.Methods inherited from class AbstractConvertedIterableInterval
iterationOrder, sizeMethods inherited from class AbstractWrappedInterval
dimension, dimensions, max, max, max, min, min, minMethods inherited from class AbstractWrappedRealInterval
getSource, numDimensions, realMax, realMax, realMax, realMin, realMin, realMinMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Dimensions
dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPointMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Interval
dimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMinMethods inherited from interface IterableInterval
localizingSpliterator, spliteratorMethods inherited from interface IterableRealInterval
firstElement, iterator, parallelStream, streamMethods inherited from interface RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
-
Field Details
-
sourceIntervalB
-
converterSupplier
-
convertedSupplier
-
-
Constructor Details
-
BiConvertedIterableInterval
public BiConvertedIterableInterval(IterableInterval<A> sourceA, IterableInterval<B> sourceB, Supplier<BiConverter<? super A, ? super B, ? super C>> converterSupplier, Supplier<? extends C> convertedSupplier) Creates a copy of c for conversion.- Parameters:
sourceA- thisIterableIntervalis used for allIntervalrelated requests. When usingIntervalswith different sizes, make sure that this is the smallerInterval.sourceB-converterSupplier-convertedSupplier-
-
BiConvertedIterableInterval
public BiConvertedIterableInterval(IterableInterval<A> sourceA, IterableInterval<B> sourceB, BiConverter<? super A, ? super B, ? super C> converter, Supplier<? extends C> convertedSupplier) Creates a copy of c for conversion.- Parameters:
sourceA- thisIterableIntervalis used for allIntervalrelated requests. When usingIntervalswith different sizes, make sure that this is the smallerInterval.sourceB-converter-convertedSupplier-
-
-
Method Details
-
cursor
Description copied from interface:IterableRealIntervalReturns a
RealCursorthat 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.
- Returns:
- fast iterating iterator
-
localizingCursor
Creates a localizingCursorfor sourceA only because this will be used for localization. Make sure that sourceA is theIterableIntervalthat creates theCursorthat localizes more efficiently.- Returns:
- fast localizing iterator
-
getDestinationType
Deprecated.UsegetDestinationSupplier()instead.- Returns:
- an instance of the destination
Type.
-
getDestinationSupplier
-
getType
Description copied from interface:IterableRealIntervalGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance.The default implementation returns
IterableRealInterval.firstElement(). Derived classes may choose different implementations for improved performance.- Returns:
- an instance of
T
-
getConverter
Deprecated.UsegetConverterSupplier()insteadReturns an instance of theBiConverter. If theBiConvertedIterableIntervalwas created with aBiConverterinstead of aSupplier, then the returned converter will be this instance.- Returns:
-
getConverterSupplier
- Returns:
- the supplier of converter instances
-
getConverterSupplier()instead