Package net.imglib2
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.- Author:
- Tobias Pietzsch, Stephan Preibisch
-
Field Summary
Fields inherited from class net.imglib2.AbstractInterval
max, min
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
Constructor Summary
ConstructorsConstructorDescriptionFinalInterval
(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)FinalInterval
(Dimensions dimensions) Creates an Interval with the boundaries [0, dimensions-1]FinalInterval
(Interval interval) Creates an Interval from anotherInterval
-
Method Summary
Modifier and TypeMethodDescriptionstatic FinalInterval
createMinMax
(long... minmax) Create aFinalInterval
from a parameter list comprising minimum and maximum coordinates.static FinalInterval
createMinSize
(long... minsize) Create aFinalInterval
from a parameter list comprising minimum coordinates and size.Methods inherited from class net.imglib2.AbstractInterval
dimension, dimensions, max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Constructor Details
-
FinalInterval
Creates an Interval from anotherInterval
- Parameters:
interval
- anotherInterval
-
FinalInterval
Creates an Interval with the boundaries [0, dimensions-1]- Parameters:
dimensions
- the size of the interval
-
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
public FinalInterval(long... dimensions) Creates an Interval with the boundaries [0, dimensions-1]- Parameters:
dimensions
- the size of the interval
-
-
Method Details
-
createMinSize
Create aFinalInterval
from 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 aFinalInterval
from 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
-