Package net.imglib2.converter.read
Class ConvertedCursor<A,B>
- java.lang.Object
-
- net.imglib2.converter.AbstractConvertedCursor<A,B>
-
- net.imglib2.converter.read.ConvertedCursor<A,B>
-
- All Implemented Interfaces:
java.util.Iterator<B>,Cursor<B>,EuclideanSpace,Iterator,Localizable,RealCursor<B>,RealLocalizable,Sampler<B>,Typed<B>
public class ConvertedCursor<A,B> extends AbstractConvertedCursor<A,B>
TODO
-
-
Field Summary
Fields Modifier and Type Field Description protected Bconvertedprotected java.util.function.Supplier<? extends B>convertedSupplierprotected Converter<? super A,? super B>converterprotected java.util.function.Supplier<Converter<? super A,? super B>>converterSupplier-
Fields inherited from class net.imglib2.converter.AbstractConvertedCursor
source
-
-
Constructor Summary
Constructors Constructor Description ConvertedCursor(Cursor<A> source, java.util.function.Supplier<Converter<? super A,? super B>> converterSupplier, java.util.function.Supplier<? extends B> convertedSupplier)ConvertedCursor(Cursor<A> source, Converter<? super A,? super B> converter, java.util.function.Supplier<? extends B> convertedSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConvertedCursor<A,B>copy()Bget()Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.BgetType()Get an instance ofT.-
Methods inherited from class net.imglib2.converter.AbstractConvertedCursor
fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, hasNext, jumpFwd, localize, localize, localize, localize, numDimensions, remove, reset
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.Cursor
copyCursor
-
Methods inherited from interface net.imglib2.Localizable
localize, localize, positionAsLongArray, positionAsPoint
-
Methods inherited from interface net.imglib2.RealCursor
next
-
Methods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Method Detail
-
get
public B get()
Description copied from interface:SamplerAccess the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.
-
getType
public B getType()
Description copied from interface:TypedGet 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.- Returns:
- an instance of
T
-
copy
public ConvertedCursor<A,B> copy()
- Specified by:
copyin interfaceCursor<A>- Specified by:
copyin interfaceRealCursor<A>- Specified by:
copyin interfaceSampler<A>- Specified by:
copyin classAbstractConvertedCursor<A,B>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for anArrayCursorfor example)
-
-