Package net.imglib2.converter.read
Class ConvertedIterableInterval<A,B extends Type<B>>
java.lang.Object
net.imglib2.AbstractWrappedRealInterval<I>
net.imglib2.AbstractWrappedInterval<IterableInterval<A>>
net.imglib2.converter.AbstractConvertedIterableInterval<A,B>
net.imglib2.converter.read.ConvertedIterableInterval<A,B>
- All Implemented Interfaces:
Iterable<B>
,Dimensions
,EuclideanSpace
,Interval
,IterableInterval<B>
,IterableRealInterval<B>
,RealInterval
,View
public class ConvertedIterableInterval<A,B extends Type<B>>
extends AbstractConvertedIterableInterval<A,B>
TODO
-
Field Summary
FieldsFields inherited from class net.imglib2.AbstractWrappedRealInterval
sourceInterval
-
Constructor Summary
ConstructorsConstructorDescriptionConvertedIterableInterval
(IterableInterval<A> source, Converter<? super A, ? super B> converter, B b) Creates a copy of b for conversion. -
Method Summary
Modifier and TypeMethodDescriptioncursor()
Returns aRealCursor
that iterates with optimal speed without calculating the location at each iteration step.Returns aRealLocalizable
Iterator
that calculates its location at each iteration step.Methods inherited from class net.imglib2.converter.AbstractConvertedIterableInterval
firstElement, iterationOrder, iterator, size
Methods inherited from class net.imglib2.AbstractWrappedInterval
dimension, dimensions, max, max, max, min, min, min
Methods inherited from class net.imglib2.AbstractWrappedRealInterval
getSource, numDimensions, realMax, realMax, realMax, realMin, realMin, realMin
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.imglib2.Dimensions
dimension, dimensions
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
converter
-
converted
-
-
Constructor Details
-
Method Details
-
cursor
Description copied from interface: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.
- Specified by:
cursor
in interfaceIterableInterval<A>
- Specified by:
cursor
in interfaceIterableRealInterval<A>
- Specified by:
cursor
in classAbstractConvertedIterableInterval<A,
B extends Type<B>> - Returns:
- fast iterating iterator
-
localizingCursor
Description copied from interface: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.
- Specified by:
localizingCursor
in interfaceIterableInterval<A>
- Specified by:
localizingCursor
in interfaceIterableRealInterval<A>
- Specified by:
localizingCursor
in classAbstractConvertedIterableInterval<A,
B extends Type<B>> - Returns:
- fast localizing iterator
-
getDestinationType
- Returns:
- an instance of the destination
Type
.
-
getConverter
-