Package net.imglib2

Class FinalInterval

All Implemented Interfaces:
Dimensions, EuclideanSpace, Interval, RealInterval

public final class FinalInterval extends AbstractInterval
Implementation of the Interval interface.
Author:
Tobias Pietzsch, Stephan Preibisch
  • Constructor Details

    • FinalInterval

      public FinalInterval(Interval interval)
      Creates an Interval from another Interval
      Parameters:
      interval - another Interval
    • FinalInterval

      public FinalInterval(Dimensions dimensions)
      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 dimension
      max - 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

      public static FinalInterval createMinSize(long... minsize)
      Create a FinalInterval 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 FinalInterval createMinMax(long... minmax)
      Create a FinalInterval 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