Class FinalInterval
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractInterval
net.imglib2.FinalInterval
- All Implemented Interfaces:
Dimensions, EuclideanSpace, Interval, RealInterval
Implementation of the
Interval interface.-
Field Summary
Fields inherited from class AbstractInterval
max, minFields inherited from class AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsModifierConstructorDescriptionFinalInterval(long... dimensions) Creates an Interval with the boundaries [0, dimensions-1]FinalInterval(long[] min, long[] max) Creates an Interval with the boundaries [min, max] (both including)protectedFinalInterval(long[] min, long[] max, boolean copy) Creates an Interval with the boundaries [min, max] (both including)FinalInterval(Dimensions dimensions) Creates an Interval with the boundaries [0, dimensions-1]FinalInterval(Interval interval) Creates an Interval from anotherIntervalFinalInterval(Localizable min, Localizable max) Creates an Interval with the boundaries [min, max] (both including) -
Method Summary
Modifier and TypeMethodDescriptionstatic FinalIntervalcreateMinMax(long... minmax) Create aFinalIntervalfrom a parameter list comprising minimum and maximum coordinates.static FinalIntervalcreateMinSize(long... minsize) Create aFinalIntervalfrom a parameter list comprising minimum coordinates and size.static FinalIntervalcreateMinSize(long[] min, long[] size) Create an Interval with the given minimum coordinates and size.booleaninthashCode()static FinalIntervalwrap(long[] min, long[] max) Create an Interval that stores its min and max in the provided arrays.Methods inherited from class AbstractInterval
dimension, dimensions, max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin, toStringMethods inherited from class AbstractEuclideanSpace
numDimensionsMethods inherited from interface Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPointMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Interval
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPointMethods inherited from interface RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
Constructor Details
-
FinalInterval
-
FinalInterval
Creates an Interval with the boundaries [0, dimensions-1]- Parameters:
dimensions- the size of the interval
-
FinalInterval
protected FinalInterval(long[] min, long[] max, boolean copy) Creates an Interval with the boundaries [min, max] (both including)- Parameters:
min- the position of the first elements in each dimensionmax- the position of the last elements in each dimensioncopy- flag indicating whether min and max arrays should be duplicated.
-
FinalInterval
public FinalInterval(long[] min, long[] max) Creates an Interval with the boundaries [min, max] (both including)- Parameters:
min- the position of the first elements in each dimensionmax- the position of the last elements in each dimension
-
FinalInterval
Creates an Interval with the boundaries [min, max] (both including)- Parameters:
min- the position of the first elements in each dimensionmax- the position of the last elements in each dimension
-
FinalInterval
public FinalInterval(long... dimensions) Creates an Interval with the boundaries [0, dimensions-1]- Parameters:
dimensions- the size of the interval
-
-
Method Details
-
equals
-
hashCode
-
createMinSize
Create aFinalIntervalfrom 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 aFinalIntervalfrom 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
-
createMinSize
Create an Interval with the given minimum coordinates and size.- Parameters:
min- the minimum of the intervalsize- the dimensions of the interval- Returns:
- interval with the specified boundaries
-
wrap
Create an Interval that 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
-