Interface RealRandomAccessible<T>
-
- All Superinterfaces:
EuclideanSpace,Typed<T>
- All Known Subinterfaces:
RealRandomAccessibleRealInterval<T>
- All Known Implementing Classes:
AbstractConvertedRealRandomAccessible,BiConvertedRealRandomAccessible,BiConvertedRealRandomAccessibleRealInterval,ConvertedRealRandomAccessible,ConvertedRealRandomAccessibleRealInterval,ExtendedRealRandomAccessibleRealInterval,FunctionRealRandomAccessible,Interpolant,Localizables.RealLocationRealRandomAccessible,RealPositionRealRandomAccessible
public interface RealRandomAccessible<T> extends EuclideanSpace, Typed<T>
f:Rn→T
A function over real space that can create a random access
Sampler.If your algorithm takes a RealRandomAccessible, this usually means that you expect that the domain is infinite. (In contrast to this,
RealRandomAccessibleRealIntervals have a finite domain.)Similarly to a
RandomAccessible, aRealRandomAccessiblemight be defined only partially within the space.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TgetAt(double... position)Convenience method to query aRealRandomAccessiblefor the value at a position.default TgetAt(float... position)Convenience method to query aRealRandomAccessiblefor the value at a position.default TgetAt(RealLocalizable position)Convenience method to query aRealRandomAccessiblefor the value at a position.RealRandomAccess<T>realRandomAccess()Create a random access sampler for real coordinates.RealRandomAccess<T>realRandomAccess(RealInterval interval)-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
-
-
-
Method Detail
-
realRandomAccess
RealRandomAccess<T> realRandomAccess()
Create a random access sampler for real coordinates.- Returns:
- random access sampler
-
realRandomAccess
RealRandomAccess<T> realRandomAccess(RealInterval interval)
-
getAt
default T getAt(float... position)
Convenience method to query aRealRandomAccessiblefor the value at a position.WARNING: This method is VERY SLOW, and memory inefficient when used in tight loops, or called many times!!! Use
realRandomAccess()when efficiency is important.This method is a short cut for
realRandomAccess().setPositionAndGet( position );- Parameters:
position- , length must be ≥EuclideanSpace.numDimensions()- Returns:
- value of the the
RandomAccessibleatposition.
-
getAt
default T getAt(double... position)
Convenience method to query aRealRandomAccessiblefor the value at a position.WARNING: This method is VERY SLOW, and memory inefficient when used in tight loops, or called many times!!! Use
realRandomAccess()when efficiency is important.This method is a short cut for
realRandomAccess().setPositionAndGet( position );- Parameters:
position- , length must be ≥EuclideanSpace.numDimensions()- Returns:
- value of the the
RandomAccessibleatposition.
-
getAt
default T getAt(RealLocalizable position)
Convenience method to query aRealRandomAccessiblefor the value at a position.WARNING: This method is VERY SLOW, and memory inefficient when used in tight loops, or called many times!!! Use
realRandomAccess()when efficiency is important.This method is a short cut for
realRandomAccess().setPositionAndGet( position );- Parameters:
position- ,EuclideanSpace.numDimensions()must be ≥EuclideanSpace.numDimensions()- Returns:
- value of the the
RandomAccessibleatposition.
-
-