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 newAbstractRealIntervalfrom min and max coordinatesAbstractRealInterval(int n) Creates an n-dimensionalAbstractIntervalwith min and max = 0n.AbstractRealInterval(RealInterval interval) Creates a newAbstractRealIntervalusing an existingRealInterval -
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 thisIntervalMethods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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-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) 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-
-