Package net.imglib2
Class AbstractRealInterval
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractRealInterval
- All Implemented Interfaces:
EuclideanSpace
,RealInterval
- Direct Known Subclasses:
FinalRealInterval
Implementation of the
RealInterval
interface.- Author:
- Stephan Preibisch
-
Field Summary
FieldsFields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractRealInterval
(double[] min, double[] max) Creates a newAbstractRealInterval
from min and max coordinatesAbstractRealInterval
(int n) Creates an n-dimensionalAbstractInterval
with min and max = 0n.AbstractRealInterval
(RealInterval interval) Creates a newAbstractRealInterval
using an existingRealInterval
-
Method Summary
Modifier and TypeMethodDescriptionvoid
realMax
(double[] realMax) Write the maximum of each dimension into double[].double
realMax
(int d) Get the maximum in dimension d.void
realMax
(RealPositionable realMax) Sets aRealPositionable
to the maximum of thisInterval
void
realMin
(double[] realMin) Write the minimum of each dimension into double[].double
realMin
(int d) Get the minimum in dimension d.void
realMin
(RealPositionable realMin) Sets aRealPositionable
to the minimum of thisInterval
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Field Details
-
min
protected final double[] min -
max
protected final double[] max
-
-
Constructor Details
-
AbstractRealInterval
public AbstractRealInterval(int n) Creates an n-dimensionalAbstractInterval
with min and max = 0n.- Parameters:
n
- number of dimensions
-
AbstractRealInterval
Creates a newAbstractRealInterval
using an existingRealInterval
- Parameters:
interval
-
-
AbstractRealInterval
public AbstractRealInterval(double[] min, double[] max) Creates a newAbstractRealInterval
from min and max coordinates- Parameters:
min
-max
-
-
-
Method Details
-
realMin
public double realMin(int d) Description copied from interface:RealInterval
Get the minimum in dimension d.- Specified by:
realMin
in interfaceRealInterval
- Parameters:
d
- dimension- Returns:
- minimum in dimension d.
-
realMin
public void realMin(double[] realMin) Description copied from interface:RealInterval
Write the minimum of each dimension into double[].- Specified by:
realMin
in interfaceRealInterval
-
realMin
Description copied from interface:RealInterval
Sets aRealPositionable
to the minimum of thisInterval
- Specified by:
realMin
in interfaceRealInterval
-
realMax
public double realMax(int d) Description copied from interface:RealInterval
Get the maximum in dimension d.- Specified by:
realMax
in interfaceRealInterval
- Parameters:
d
- dimension- Returns:
- maximum in dimension d.
-
realMax
public void realMax(double[] realMax) Description copied from interface:RealInterval
Write the maximum of each dimension into double[].- Specified by:
realMax
in interfaceRealInterval
-
realMax
Description copied from interface:RealInterval
Sets aRealPositionable
to the maximum of thisInterval
- Specified by:
realMax
in interfaceRealInterval
-