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