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(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)
|
Modifier and Type | Method and Description |
---|---|
long |
dimension(int d)
Get the number of pixels in a given dimension d.
|
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)
Get the maximum in dimension d.
|
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)
Get the minimum in dimension d.
|
void |
realMin(RealPositionable minimum)
Sets a
RealPositionable to the minimum of this Interval |
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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)
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)
RealInterval
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)
RealInterval
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)
Dimensions
dimension
in interface Dimensions
Copyright © 2009–2017 ImgLib2. All rights reserved.