public abstract class AbstractInterval extends AbstractEuclideanSpace implements Interval
Interval interface.| Modifier and Type | Field and Description |
|---|---|
protected long[] |
max |
protected long[] |
min |
n| Constructor and Description |
|---|
AbstractInterval(Dimensions dimensions)
Creates an Interval with the boundaries [0, dimensions-1]
|
AbstractInterval(int n)
Creates an n-dimensional
AbstractInterval with min and
max = 0n. |
AbstractInterval(Interval interval)
Creates a
AbstractInterval from another Interval |
AbstractInterval(Localizable min,
Localizable max)
Creates an Interval with the boundaries [min, max] (both including)
|
AbstractInterval(long[] dimensions)
Creates an Interval with the boundaries [0, dimensions-1]
|
AbstractInterval(long[] min,
long[] max)
Creates an Interval with the boundaries [min, max] (both including)
|
AbstractInterval(long[] min,
long[] max,
boolean copy)
Creates an Interval with the boundaries [min, max] (both including)
|
| Modifier and Type | Method and Description |
|---|---|
long |
dimension(int d)
Default implementation of
Dimensions.dimension(int). |
void |
dimensions(long[] dimensions)
Write the number of pixels in each dimension into long[].
|
long |
max(int d)
Get the maximum in dimension d.
|
void |
max(long[] maximum)
Write the maximum of each dimension into long[].
|
void |
max(Positionable m)
Sets a
Positionable to the maximum of this Interval |
long |
min(int d)
Get the minimum in dimension d.
|
void |
min(long[] minimum)
Write the minimum of each dimension into long[].
|
void |
min(Positionable m)
Sets a
Positionable to the minimum of this Interval |
void |
realMax(double[] maximum)
Write the maximum of each dimension into double[].
|
double |
realMax(int d)
Default implementation of
RealInterval.realMax(int). |
void |
realMax(RealPositionable m)
Sets a
RealPositionable to the maximum of this Interval |
void |
realMin(double[] minimum)
Write the minimum of each dimension into double[].
|
double |
realMin(int d)
Default implementation of
RealInterval.realMin(int). |
void |
realMin(RealPositionable minimum)
Sets a
RealPositionable to the minimum of this Interval |
String |
toString() |
numDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmaxAsLongArray, maxAsPoint, minAsLongArray, minAsPointmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointallPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivenumDimensionspublic AbstractInterval(int n)
AbstractInterval with min and
max = 0n.n - number of dimensionspublic AbstractInterval(Interval interval)
AbstractInterval from another Intervalinterval - another Intervalpublic AbstractInterval(Dimensions dimensions)
dimensions - the size of the intervalpublic AbstractInterval(long[] min,
long[] max,
boolean copy)
min - the position of the first elements in each dimensionmax - the position of the last elements in each dimensioncopy - flag indicating whether min and max arrays should be duplicated.public AbstractInterval(long[] min,
long[] max)
min - the position of the first elements in each dimensionmax - the position of the last elements in each dimensionpublic AbstractInterval(Localizable min, Localizable max)
min - the position of the first elements in each dimensionmax - the position of the last elements in each dimensionpublic AbstractInterval(long[] dimensions)
dimensions - the size of the intervalpublic double realMin(int d)
IntervalRealInterval.realMin(int).realMin in interface IntervalrealMin in interface RealIntervald - dimensionpublic void realMin(double[] minimum)
RealIntervalrealMin in interface RealIntervalpublic void realMin(RealPositionable minimum)
RealIntervalRealPositionable to the minimum of this IntervalrealMin in interface RealIntervalpublic double realMax(int d)
IntervalRealInterval.realMax(int).realMax in interface IntervalrealMax in interface RealIntervald - dimensionpublic void realMax(double[] maximum)
RealIntervalrealMax in interface RealIntervalpublic void realMax(RealPositionable m)
RealIntervalRealPositionable to the maximum of this IntervalrealMax in interface RealIntervalpublic long min(int d)
Intervalpublic void min(long[] minimum)
Intervalpublic void min(Positionable m)
IntervalPositionable to the minimum of this Intervalpublic long max(int d)
Intervalpublic void max(long[] maximum)
Intervalpublic void max(Positionable m)
IntervalPositionable to the maximum of this Intervalpublic void dimensions(long[] dimensions)
Dimensionsdimensions in interface Dimensionspublic long dimension(int d)
IntervalDimensions.dimension(int).dimension in interface Dimensionsdimension in interface IntervalCopyright © 2015–2022 ImgLib2. All rights reserved.