Package net.imglib2.converter.read
Class ConvertedRandomAccess<A,B extends Type<B>>
- java.lang.Object
-
- net.imglib2.converter.AbstractConvertedRandomAccess<A,B>
-
- net.imglib2.converter.read.ConvertedRandomAccess<A,B>
-
- All Implemented Interfaces:
EuclideanSpace
,Localizable
,Positionable
,RandomAccess<B>
,RealLocalizable
,Sampler<B>
public final class ConvertedRandomAccess<A,B extends Type<B>> extends AbstractConvertedRandomAccess<A,B>
TODO
-
-
Constructor Summary
Constructors Constructor Description ConvertedRandomAccess(RandomAccess<A> source, Converter<? super A,? super B> converter, B b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConvertedRandomAccess<A,B>
copy()
B
get()
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.-
Methods inherited from class net.imglib2.converter.AbstractConvertedRandomAccess
bck, copyRandomAccess, fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, setPosition
-
-
-
-
Method Detail
-
get
public B get()
Description copied from interface:Sampler
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.
-
copy
public ConvertedRandomAccess<A,B> copy()
- Specified by:
copy
in interfaceSampler<A>
- Specified by:
copy
in classAbstractConvertedRandomAccess<A,B extends Type<B>>
- Returns:
- - A new
Sampler
in 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 anArrayCursor
for example)
-
-