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:
java.lang.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
Fields Modifier and Type Field Description protected B
converted
protected Converter<? super A,? super B>
converter
-
Fields inherited from class net.imglib2.AbstractWrappedRealInterval
sourceInterval
-
-
Constructor Summary
Constructors Constructor Description ConvertedIterableInterval(IterableInterval<A> source, Converter<? super A,? super B> converter, B b)
Creates a copy of b for conversion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConvertedCursor<A,B>
cursor()
Returns aRealCursor
that iterates with optimal speed without calculating the location at each iteration step.Converter<? super A,? super B>
getConverter()
B
getDestinationType()
ConvertedCursor<A,B>
localizingCursor()
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
-
-
-
-
Method Detail
-
cursor
public ConvertedCursor<A,B> 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
public ConvertedCursor<A,B> 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
-
-