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, a RealRandomAccessible might
be defined only partially within the space.
| Modifier and Type | Method and Description |
|---|---|
default T |
getAt(double... position)
Convenience method to query a
RealRandomAccessible for the value at a
position. |
default T |
getAt(float... position)
Convenience method to query a
RealRandomAccessible for the value at a
position. |
default T |
getAt(RealLocalizable position)
Convenience method to query a
RealRandomAccessible for the value at a
position. |
RealRandomAccess<T> |
realRandomAccess()
Create a random access sampler for real coordinates.
|
RealRandomAccess<T> |
realRandomAccess(RealInterval interval) |
default RealRandomAccessibleView<T> |
realView()
Provides a gateway for creating light-weight
views into this RealRandomAccessible. |
numDimensionsRealRandomAccess<T> realRandomAccess()
RealRandomAccess<T> realRandomAccess(RealInterval interval)
default T getAt(float... position)
RealRandomAccessible for 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 );
position, - length must be ≥ EuclideanSpace.numDimensions()RandomAccessible at position.default T getAt(double... position)
RealRandomAccessible for 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 );
position, - length must be ≥ EuclideanSpace.numDimensions()RandomAccessible at position.default T getAt(RealLocalizable position)
RealRandomAccessible for 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 );
position, - EuclideanSpace.numDimensions() must be ≥ EuclideanSpace.numDimensions()RandomAccessible at position.default RealRandomAccessibleView<T> realView()
views into this RealRandomAccessible.
A view is itself a RealRandomAccessible or RandomAccessible whose accessors transform coordinates and/or
values on-the-fly without copying the underlying data. Consecutive
transformations are concatenated and simplified to provide optimally
efficient accessors.
Note, that accessors provided by a view are read/write. Changing pixels in a view changes the underlying image data. (Value converters are an exception.)
RealRandomAccessible.Copyright © 2009–2025 ImgLib2. All rights reserved.