Package net.imglib2
Class FinalRealInterval
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractRealInterval
-
- net.imglib2.FinalRealInterval
-
- All Implemented Interfaces:
EuclideanSpace
,RealInterval
public final class FinalRealInterval extends AbstractRealInterval
Implementation of theRealInterval
interface.- Author:
- Stephan Preibisch
-
-
Field Summary
-
Fields inherited from class net.imglib2.AbstractRealInterval
max, min
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description FinalRealInterval(double[] min, double[] max)
Creates a newAbstractRealInterval
from min and max coordinatesFinalRealInterval(RealInterval interval)
Creates a newAbstractRealInterval
using an existingRealInterval
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FinalRealInterval
createMinMax(double... minmax)
Create aFinalRealInterval
from a parameter list comprising minimum and maximum coordinates.static FinalRealInterval
createMinSize(double... minsize)
Deprecated.-
Methods inherited from class net.imglib2.AbstractRealInterval
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 Detail
-
FinalRealInterval
public FinalRealInterval(RealInterval interval)
Creates a newAbstractRealInterval
using an existingRealInterval
- Parameters:
interval
-
-
FinalRealInterval
public FinalRealInterval(double[] min, double[] max)
Creates a newAbstractRealInterval
from min and max coordinates- Parameters:
min
-max
-
-
-
Method Detail
-
createMinSize
@Deprecated public static FinalRealInterval createMinSize(double... minsize)
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 forRealInterval
and computing the max as min + dim - 1 does not make sense.Create a
FinalRealInterval
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
public static FinalRealInterval createMinMax(double... minmax)
Create aFinalRealInterval
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
-
-