Class AbstractRealInterval
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractRealInterval
- All Implemented Interfaces:
EuclideanSpace, RealInterval
- Direct Known Subclasses:
FinalRealInterval, LocalizingRealIntervalIterator
Implementation of the
RealInterval interface.-
Field Summary
FieldsFields inherited from class AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRealInterval(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 existingRealIntervalCreates a newAbstractRealIntervalfrom min and max coordinates -
Method Summary
Modifier and TypeMethodDescriptionvoidrealMax(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 thisIntervaltoString()Methods inherited from class AbstractEuclideanSpace
numDimensionsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
Field Details
-
min
protected final double[] min -
max
protected final double[] max
-
-
Constructor Details
-
AbstractRealInterval
public AbstractRealInterval(int n) Creates an n-dimensionalAbstractIntervalwith min and max = 0n.- Parameters:
n- number of dimensions
-
AbstractRealInterval
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
Creates a newAbstractRealIntervalfrom min and max coordinates- Parameters:
min-max-
-
-
Method Details
-
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- Parameters:
realMin-
-
realMin
Description copied from interface:RealIntervalSets aRealPositionableto the minimum of thisInterval- Specified by:
realMinin interfaceRealInterval- Parameters:
realMin-
-
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- Parameters:
realMax-
-
realMax
Description copied from interface:RealIntervalSets aRealPositionableto the maximum of thisInterval- Specified by:
realMaxin interfaceRealInterval- Parameters:
realMax-
-
toString
-