Package net.imglib2.position
Class RealPositionRealRandomAccessible
- java.lang.Object
-
- net.imglib2.position.RealPositionRealRandomAccessible
-
- All Implemented Interfaces:
EuclideanSpace,RealRandomAccessible<DoubleType>,Typed<DoubleType>
public class RealPositionRealRandomAccessible extends java.lang.Object implements RealRandomAccessible<DoubleType>
ARealRandomAccessibleover 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 Classes Modifier and Type Class Description classRealPositionRealRandomAccessible.RealPositionRealRandomAccess
-
Constructor Summary
Constructors Constructor Description RealPositionRealRandomAccessible(int numDimensions, int d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleTypegetType()Get an instance ofT.intnumDimensions()Gets the space's number of dimensions.RealPositionRealRandomAccessible.RealPositionRealRandomAccessrealRandomAccess()Create a random access sampler for real coordinates.RealPositionRealRandomAccessible.RealPositionRealRandomAccessrealRandomAccess(RealInterval interval)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.RealRandomAccessible
getAt, getAt, getAt
-
-
-
-
Method Detail
-
numDimensions
public int numDimensions()
Description copied from interface:EuclideanSpaceGets the space's number of dimensions.- Specified by:
numDimensionsin interfaceEuclideanSpace
-
realRandomAccess
public RealPositionRealRandomAccessible.RealPositionRealRandomAccess 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
public 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
-
-