Class FinalRealInterval
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractRealInterval
net.imglib2.FinalRealInterval
- All Implemented Interfaces:
EuclideanSpace, RealInterval
Implementation of the
RealInterval interface.-
Field Summary
Fields inherited from class AbstractRealInterval
max, minFields inherited from class AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsConstructorDescriptionFinalRealInterval(double[] min, double[] max) Creates a newAbstractRealIntervalfrom min and max coordinatesFinalRealInterval(double[] min, double[] max, boolean copy) Creates a newAbstractRealIntervalfrom min and max coordinatesFinalRealInterval(RealInterval interval) Creates a newAbstractRealIntervalusing an existingRealIntervalFinalRealInterval(RealLocalizable min, RealLocalizable max) Creates a newAbstractRealIntervalfrom min and max coordinates -
Method Summary
Modifier and TypeMethodDescriptionstatic FinalRealIntervalcreateMinMax(double... minmax) Create aFinalRealIntervalfrom a parameter list comprising minimum and maximum coordinates.static FinalRealIntervalcreateMinSize(double... minsize) Deprecated.booleaninthashCode()static FinalRealIntervalwrap(double[] min, double[] max) Create aFinalRealIntervalthat stores its min and max in the provided arrays.Methods inherited from class AbstractRealInterval
realMax, realMax, realMax, realMin, realMin, realMin, toStringMethods inherited from class AbstractEuclideanSpace
numDimensionsMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
Constructor Details
-
FinalRealInterval
Creates a newAbstractRealIntervalusing an existingRealInterval- Parameters:
interval-
-
FinalRealInterval
public FinalRealInterval(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.
-
FinalRealInterval
public FinalRealInterval(double[] min, double[] max) Creates a newAbstractRealIntervalfrom min and max coordinates- Parameters:
min-max-
-
FinalRealInterval
Creates a newAbstractRealIntervalfrom min and max coordinates- Parameters:
min-max-
-
-
Method Details
-
createMinSize
Deprecated.THIS METHOD WILL BE REMOVED IN A FUTURE RELEASE. It was mistakenly introduced, analogous toFinalInterval.createMinSize(long...)for integer intervals. Dimension is not defined forRealIntervaland computing the max as min + dim - 1 does not make sense.Create a
FinalRealIntervalfrom a parameter list comprising minimum coordinates and size. For example, to create a 2D interval from (10, 10) to (20, 40) use createMinSize( 10, 10, 11, 31 ).- Parameters:
minsize- a list of 2*n parameters to create a n -dimensional interval. The first n parameters specify the minimum of the interval, the next n parameters specify the dimensions of the interval.- Returns:
- interval with the specified boundaries
-
createMinMax
Create aFinalRealIntervalfrom a parameter list comprising minimum and maximum coordinates. For example, to create a 2D interval from (10, 10) to (20, 40) use createMinMax( 10, 10, 20, 40 ).- Parameters:
minmax- a list of 2*n parameters to create a n -dimensional interval. The first n parameters specify the minimum of the interval, the next n parameters specify the maximum of the interval.- Returns:
- interval with the specified boundaries
-
wrap
Create aFinalRealIntervalthat stores its min and max in the provided arrays.- Parameters:
min- array for storing the position of the first elements in each dimensionmax- array for storing the the position of the last elements in each dimension
-
equals
-
hashCode
-