Class RealPositionRealRandomAccessible
java.lang.Object
net.imglib2.position.RealPositionRealRandomAccessible
- All Implemented Interfaces:
EuclideanSpace, RealRandomAccessible<DoubleType>, Typed<DoubleType>
public class RealPositionRealRandomAccessible
extends Object
implements RealRandomAccessible<DoubleType>
A
RealRandomAccessible over the d-th position of real
coordinate space.
TODO deprecate his implementation for
RealRandomAccessible<DoubleType> realPositionRealRandomAccessible = new FunctionRealRandomAccessible<DoubleType>(3, (x, y) -> y.set(x.getDoublePosition(d)), DoubleType::new);
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Get an instance ofT.intGets the space's number of dimensions.Create a random access sampler for real coordinates.realRandomAccess(RealInterval interval) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RealRandomAccessible
getAt, getAt, getAt
-
Field Details
-
n
private final int n -
d
private final int d
-
-
Constructor Details
-
RealPositionRealRandomAccessible
public RealPositionRealRandomAccessible(int numDimensions, int d)
-
-
Method Details
-
numDimensions
public int numDimensions()Description copied from interface:EuclideanSpaceGets the space's number of dimensions.- Specified by:
numDimensionsin interfaceEuclideanSpace
-
realRandomAccess
Description copied from interface:RealRandomAccessibleCreate a random access sampler for real coordinates.- Specified by:
realRandomAccessin interfaceRealRandomAccessible<DoubleType>- Returns:
- random access sampler
-
realRandomAccess
public RealPositionRealRandomAccessible.RealPositionRealRandomAccess realRandomAccess(RealInterval interval) - Specified by:
realRandomAccessin interfaceRealRandomAccessible<DoubleType>
-
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.- Specified by:
getTypein interfaceTyped<DoubleType>- Returns:
- an instance of
T
-