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:
Iterator<B>,Cursor<B>,EuclideanSpace,Iterator,Localizable,RealCursor<B>,RealLocalizable,Sampler<B>,Typed<B>
TODO
-
Field Summary
FieldsFields inherited from class net.imglib2.converter.AbstractConvertedCursor
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.imglib2.converter.AbstractConvertedCursor
fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, hasNext, jumpFwd, localize, localize, 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 net.imglib2.Cursor
copyCursorMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface net.imglib2.Localizable
localize, localize, positionAsLongArray, positionAsPointMethods inherited from interface net.imglib2.RealCursor
nextMethods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
Field Details
-
converterSupplier
-
converter
-
convertedSupplier
-
converted
-
-
Constructor Details
-
ConvertedCursor
public ConvertedCursor(Cursor<A> source, Supplier<Converter<? super A, ? super B>> converterSupplier, Supplier<? extends B> convertedSupplier) - Parameters:
source-converterSupplier-convertedSupplier-
-
ConvertedCursor
public ConvertedCursor(Cursor<A> source, Converter<? super A, ? super B> converter, Supplier<? extends B> convertedSupplier) - Parameters:
source-converter-convertedSupplier-
-
-
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 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)
-