Package net.imglib2.converter.readwrite
Class WriteConvertedRealCursor<A,B>
java.lang.Object
net.imglib2.converter.AbstractConvertedRealCursor<A,B>
net.imglib2.converter.readwrite.WriteConvertedRealCursor<A,B>
- All Implemented Interfaces:
Iterator<B>,EuclideanSpace,Iterator,RealCursor<B>,RealLocalizable,Sampler<B>,Typed<B>
TODO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Bprivate final SamplerConverter<? super A, B> private final Supplier<SamplerConverter<? super A, B>> Fields inherited from class net.imglib2.converter.AbstractConvertedRealCursor
source -
Constructor Summary
ConstructorsConstructorDescriptionWriteConvertedRealCursor(RealCursor<A> source, Supplier<SamplerConverter<? super A, B>> converterSupplier) WriteConvertedRealCursor(RealCursor<A> source, SamplerConverter<? super A, B> converter) -
Method Summary
Methods inherited from class net.imglib2.converter.AbstractConvertedRealCursor
fwd, getDoublePosition, getFloatPosition, hasNext, jumpFwd, localize, localize, numDimensions, remove, resetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface net.imglib2.RealCursor
copyCursor, nextMethods inherited from interface net.imglib2.RealLocalizable
localize, positionAsDoubleArray, positionAsRealPoint
-
Field Details
-
converterSupplier
-
converter
-
converted
-
-
Constructor Details
-
WriteConvertedRealCursor
public WriteConvertedRealCursor(RealCursor<A> source, Supplier<SamplerConverter<? super A, B>> converterSupplier) -
WriteConvertedRealCursor
-
-
Method Details
-
get
Description copied from interface:SamplerAccess the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at. -
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
- Specified by:
copyin interfaceRealCursor<A>- Specified by:
copyin interfaceSampler<A>- Specified by:
copyin classAbstractConvertedRealCursor<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)
-