Class FunctionRealRandomAccessible<T>
java.lang.Object
net.imglib2.position.AbstractFunctionEuclideanSpace<RealLocalizable, T>
net.imglib2.position.FunctionRealRandomAccessible<T>
- All Implemented Interfaces:
EuclideanSpace, RealRandomAccessible<T>, Typed<T>
public class FunctionRealRandomAccessible<T>
extends AbstractFunctionEuclideanSpace<RealLocalizable, T>
implements RealRandomAccessible<T>
A
RealRandomAccessible that generates a function value for each
position in real coordinate space by side-effect using a BiConsumer.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class AbstractFunctionEuclideanSpace
functionSupplier, n, typeSupplier -
Constructor Summary
ConstructorsConstructorDescriptionFunctionRealRandomAccessible(int n, BiConsumer<RealLocalizable, ? super T> function, Supplier<T> typeSupplier) FunctionRealRandomAccessible(int n, Supplier<BiConsumer<RealLocalizable, ? super T>> function, Supplier<T> typeSupplier) -
Method Summary
Modifier and TypeMethodDescriptiongetType()Get an instance ofT.Create a random access sampler for real coordinates.realRandomAccess(RealInterval interval) Methods inherited from class AbstractFunctionEuclideanSpace
numDimensionsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface RealRandomAccessible
getAt, getAt, getAt
-
Constructor Details
-
FunctionRealRandomAccessible
public FunctionRealRandomAccessible(int n, BiConsumer<RealLocalizable, ? super T> function, Supplier<T> typeSupplier) -
FunctionRealRandomAccessible
public FunctionRealRandomAccessible(int n, Supplier<BiConsumer<RealLocalizable, ? super T>> function, Supplier<T> typeSupplier)
-
-
Method Details
-
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. -
realRandomAccess
Description copied from interface:RealRandomAccessibleCreate a random access sampler for real coordinates.- Specified by:
realRandomAccessin interfaceRealRandomAccessible<T>- Returns:
- random access sampler
-
realRandomAccess
public FunctionRealRandomAccessible<T>.RealFunctionRealRandomAccess realRandomAccess(RealInterval interval) - Specified by:
realRandomAccessin interfaceRealRandomAccessible<T>
-