Package net.imglib2
Class AbstractRealInterval
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractRealInterval
-
- All Implemented Interfaces:
EuclideanSpace
,RealInterval
- Direct Known Subclasses:
FinalRealInterval
public class AbstractRealInterval extends AbstractEuclideanSpace implements RealInterval
Implementation of theRealInterval
interface.- Author:
- Stephan Preibisch
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]
max
protected double[]
min
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description AbstractRealInterval(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Constructor Detail
-
AbstractRealInterval
public AbstractRealInterval(int n)
Creates an n-dimensionalAbstractInterval
with min and max = 0n.- Parameters:
n
- number of dimensions
-
AbstractRealInterval
public AbstractRealInterval(RealInterval interval)
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 Detail
-
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
public void realMin(RealPositionable 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
public void realMax(RealPositionable realMax)
Description copied from interface:RealInterval
Sets aRealPositionable
to the maximum of thisInterval
- Specified by:
realMax
in interfaceRealInterval
-
-