public interface RandomAccessibleInterval<T> extends RandomAccessible<T>, IterableInterval<T>
f:{x∈Zn|[min,max]→T}
A function over an n-dimensional integer interval that can create a random
access Sampler.
By convention, a RandomAccessibleInterval represents a function that is defined at all coordinates of the interval.
There is no guarantee regarding whether the function is defined outside the
bounds of its interval. If the function is known to be defined for
out-of-bounds values in a particular interval, the
RandomAccessible.randomAccess(Interval) method should be used to access those
values—whereas the RandomAccessible.randomAccess() (no arguments) method is
not intended to access out-of-bounds values. See
RandomAccessible.randomAccess() for related discussion.
| Modifier and Type | Method and Description |
|---|---|
default Cursor<T> |
cursor()
Returns a
RealCursor that iterates with optimal speed without
calculating the location at each iteration step. |
default Object |
iterationOrder()
Returns the iteration order of this
IterableRealInterval. |
default Cursor<T> |
localizingCursor()
Returns a
RealLocalizable Iterator that calculates its
location at each iteration step. |
default long |
size()
Returns the number of elements in this
Function. |
default RandomAccessibleIntervalView<T> |
view()
Provides a gateway for creating light-weight
views into this RandomAccessibleInterval. |
getAt, getAt, getAt, randomAccess, randomAccesslocalizingSpliterator, spliteratorfirstElement, getType, iterator, parallelStream, streamdimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMinmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMinallPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivenumDimensionsdefault Cursor<T> cursor()
IterableRealInterval
Returns a RealCursor that iterates with optimal speed without
calculating the location at each iteration step. Localization is
performed on demand.
Use this where localization is required rarely/ not for each iteration.
cursor in interface IterableInterval<T>cursor in interface IterableRealInterval<T>default Cursor<T> localizingCursor()
IterableRealInterval
Returns a RealLocalizable Iterator that calculates its
location at each iteration step. That is, localization is performed with
optimal speed.
Use this where localization is required often/ for each iteration.
localizingCursor in interface IterableInterval<T>localizingCursor in interface IterableRealInterval<T>default long size()
IterableRealInterval
Returns the number of elements in this Function.
size in interface IterableRealInterval<T>default Object iterationOrder()
IterableRealIntervalIterableRealInterval. If the
returned object equals (Object.equals(Object)) the iteration
order of another IterableRealInterval f then they can be
copied by synchronous iteration. That is, having an Iterator on
this and another Iterator on f, moving both in synchrony
will point both of them to corresponding locations in their source
domain. In other words, this and f have the same iteration order
and means and the same number of elements.iterationOrder in interface IterableRealInterval<T>IterableRealInterval.FlatIterationOrderdefault RandomAccessibleIntervalView<T> view()
views into this RandomAccessibleInterval.
A view is itself a RandomAccessibleInterval 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.)
view in interface RandomAccessible<T>views into this RandomAccessibleInterval.Copyright © 2009–2024 ImgLib2. All rights reserved.