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() |
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
allPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
numDimensions
public AbstractInterval(int n)
AbstractInterval
with min and
max = 0n.n
- number of dimensionspublic AbstractInterval(Interval interval)
AbstractInterval
from another Interval
interval
- another Interval
public 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)
Interval
RealInterval.realMin(int)
.realMin
in interface Interval
realMin
in interface RealInterval
d
- dimensionpublic void realMin(double[] minimum)
RealInterval
realMin
in interface RealInterval
public void realMin(RealPositionable minimum)
RealInterval
RealPositionable
to the minimum of this Interval
realMin
in interface RealInterval
public double realMax(int d)
Interval
RealInterval.realMax(int)
.realMax
in interface Interval
realMax
in interface RealInterval
d
- dimensionpublic void realMax(double[] maximum)
RealInterval
realMax
in interface RealInterval
public void realMax(RealPositionable m)
RealInterval
RealPositionable
to the maximum of this Interval
realMax
in interface RealInterval
public long min(int d)
Interval
public void min(long[] minimum)
Interval
public void min(Positionable m)
Interval
Positionable
to the minimum of this Interval
public long max(int d)
Interval
public void max(long[] maximum)
Interval
public void max(Positionable m)
Interval
Positionable
to the maximum of this Interval
public void dimensions(long[] dimensions)
Dimensions
dimensions
in interface Dimensions
public long dimension(int d)
Interval
Dimensions.dimension(int)
.dimension
in interface Dimensions
dimension
in interface Interval
Copyright © 2015–2022 ImgLib2. All rights reserved.