Package net.imglib2
Class AbstractRealInterval
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractRealInterval
-
- All Implemented Interfaces:
EuclideanSpace,RealInterval
- Direct Known Subclasses:
FinalRealInterval,LocalizingRealIntervalIterator
public class AbstractRealInterval extends AbstractEuclideanSpace implements RealInterval
Implementation of theRealIntervalinterface.
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]maxprotected double[]min-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description AbstractRealInterval(double[] min, double[] max)Creates a newAbstractRealIntervalfrom min and max coordinatesAbstractRealInterval(double[] min, double[] max, boolean copy)Creates a newAbstractRealIntervalfrom min and max coordinatesAbstractRealInterval(int n)Creates an n-dimensionalAbstractIntervalwith min and max = 0n.AbstractRealInterval(RealInterval interval)Creates a newAbstractRealIntervalusing an existingRealIntervalAbstractRealInterval(RealLocalizable min, RealLocalizable max)Creates a newAbstractRealIntervalfrom min and max coordinates
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrealMax(double[] realMax)Write the maximum of each dimension into double[].doublerealMax(int d)Get the maximum in dimension d.voidrealMax(RealPositionable realMax)Sets aRealPositionableto the maximum of thisIntervalvoidrealMin(double[] realMin)Write the minimum of each dimension into double[].doublerealMin(int d)Get the minimum in dimension d.voidrealMin(RealPositionable realMin)Sets aRealPositionableto the minimum of thisIntervaljava.lang.StringtoString()-
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
-
-
-
Constructor Detail
-
AbstractRealInterval
public AbstractRealInterval(int n)
Creates an n-dimensionalAbstractIntervalwith min and max = 0n.- Parameters:
n- number of dimensions
-
AbstractRealInterval
public AbstractRealInterval(RealInterval interval)
Creates a newAbstractRealIntervalusing an existingRealInterval- Parameters:
interval-
-
AbstractRealInterval
public AbstractRealInterval(double[] min, double[] max, boolean copy)Creates a newAbstractRealIntervalfrom min and max coordinates- Parameters:
min-max-copy- flag indicating whether min and max arrays should be duplicated.
-
AbstractRealInterval
public AbstractRealInterval(double[] min, double[] max)Creates a newAbstractRealIntervalfrom min and max coordinates- Parameters:
min-max-
-
AbstractRealInterval
public AbstractRealInterval(RealLocalizable min, RealLocalizable max)
Creates a newAbstractRealIntervalfrom min and max coordinates- Parameters:
min-max-
-
-
Method Detail
-
realMin
public double realMin(int d)
Description copied from interface:RealIntervalGet the minimum in dimension d.- Specified by:
realMinin interfaceRealInterval- Parameters:
d- dimension- Returns:
- minimum in dimension d.
-
realMin
public void realMin(double[] realMin)
Description copied from interface:RealIntervalWrite the minimum of each dimension into double[].- Specified by:
realMinin interfaceRealInterval
-
realMin
public void realMin(RealPositionable realMin)
Description copied from interface:RealIntervalSets aRealPositionableto the minimum of thisInterval- Specified by:
realMinin interfaceRealInterval
-
realMax
public double realMax(int d)
Description copied from interface:RealIntervalGet the maximum in dimension d.- Specified by:
realMaxin interfaceRealInterval- Parameters:
d- dimension- Returns:
- maximum in dimension d.
-
realMax
public void realMax(double[] realMax)
Description copied from interface:RealIntervalWrite the maximum of each dimension into double[].- Specified by:
realMaxin interfaceRealInterval
-
realMax
public void realMax(RealPositionable realMax)
Description copied from interface:RealIntervalSets aRealPositionableto the maximum of thisInterval- Specified by:
realMaxin interfaceRealInterval
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-