public interface Interval extends RealInterval, Dimensions
{x∈Zn|mind≤ xd≤maxd;d∈{0… n-1}}
An Interval over the discrete source domain. Note that this
does not imply that for all coordinates in the
Interval function values exist or can be generated. It only defines
where the minimum and maximum source coordinates are. E.g. an
IterableInterval has a limited number of values and a source
coordinate for each. By that, minimum and maximum are defined but the
Interval does not define a value for all coordinates in between.
| Modifier and Type | Method and Description |
|---|---|
default long |
dimension(int d)
Default implementation of
Dimensions.dimension(int). |
long |
max(int d)
Get the maximum in dimension d.
|
default void |
max(long[] max)
Write the maximum of each dimension into long[].
|
default void |
max(Positionable max)
Sets a
Positionable to the maximum of this Interval |
default long[] |
maxAsLongArray()
Allocates a new long array with the maximum of this Interval.
|
default Point |
maxAsPoint()
Allocates a new
Point with the maximum of this Interval. |
long |
min(int d)
Get the minimum in dimension d.
|
default void |
min(long[] min)
Write the minimum of each dimension into long[].
|
default void |
min(Positionable min)
Sets a
Positionable to the minimum of this Interval |
default long[] |
minAsLongArray()
Allocates a new long array with the minimum of this Interval.
|
default Point |
minAsPoint()
Allocates a new
Point with the maximum of this Interval. |
default double |
realMax(int d)
Default implementation of
RealInterval.realMax(int). |
default double |
realMin(int d)
Default implementation of
RealInterval.realMin(int). |
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMinallPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivenumDimensionslong min(int d)
d - dimensiondefault void min(long[] min)
min - default void min(Positionable min)
Positionable to the minimum of this Intervalmin - long max(int d)
d - dimensiondefault void max(long[] max)
max - default void max(Positionable max)
Positionable to the maximum of this Intervalmax - default double realMin(int d)
RealInterval.realMin(int).realMin in interface RealIntervald - dimensiondefault double realMax(int d)
RealInterval.realMax(int).realMax in interface RealIntervald - dimensiondefault long dimension(int d)
Dimensions.dimension(int).dimension in interface Dimensionsdefault long[] minAsLongArray()
min(long[]).default Point minAsPoint()
Point with the maximum of this Interval.
Please note that his method allocates a new Point each time
which introduces notable overhead in both compute and memory.
If you query it frequently, you should allocate a dedicated
Point first and reuse it with min(Positionable).default long[] maxAsLongArray()
max(long[]).default Point maxAsPoint()
Point with the maximum of this Interval.
Please note that his method allocates a new Point each time
which introduces notable overhead in both compute and memory.
If you query it frequently, you should allocate a dedicated
Point first and reuse it with max(Positionable).Copyright © 2015–2022 ImgLib2. All rights reserved.