Package net.imglib2

Class AbstractInterval

All Implemented Interfaces:
Dimensions, EuclideanSpace, Interval, RealInterval
Direct Known Subclasses:
FinalInterval, IntervalIterator, IntervalView, PointSampleList, RandomAccessibleIntervalCursor, StackView

public abstract class AbstractInterval extends AbstractEuclideanSpace implements Interval
Implementation of the Interval interface.
Author:
Tobias Pietzsch, Stephan Preibisch
  • Field Details

    • min

      protected final long[] min
    • max

      protected final long[] max
  • Constructor Details

    • AbstractInterval

      public AbstractInterval(int n)
      Creates an n-dimensional AbstractInterval with min and max = 0n.
      Parameters:
      n - number of dimensions
    • AbstractInterval

      public AbstractInterval(Interval interval)
      Creates a AbstractInterval from another Interval
      Parameters:
      interval - - another Interval
    • AbstractInterval

      public AbstractInterval(Dimensions dimensions)
      Creates an Interval with the boundaries [0, dimensions-1]
      Parameters:
      dimensions - - the size of the interval
    • AbstractInterval

      public AbstractInterval(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
    • AbstractInterval

      public AbstractInterval(long[] dimensions)
      Creates an Interval with the boundaries [0, dimensions-1]
      Parameters:
      dimensions - - the size of the interval
  • Method Details

    • realMin

      public double realMin(int d)
      Description copied from interface: RealInterval
      Get the minimum in dimension d.
      Specified by:
      realMin in interface RealInterval
      Parameters:
      d - dimension
      Returns:
      minimum in dimension d.
    • realMin

      public void realMin(double[] minimum)
      Description copied from interface: RealInterval
      Write the minimum of each dimension into double[].
      Specified by:
      realMin in interface RealInterval
    • realMin

      public void realMin(RealPositionable minimum)
      Description copied from interface: RealInterval
      Sets a RealPositionable to the minimum of this Interval
      Specified by:
      realMin in interface RealInterval
    • realMax

      public double realMax(int d)
      Description copied from interface: RealInterval
      Get the maximum in dimension d.
      Specified by:
      realMax in interface RealInterval
      Parameters:
      d - dimension
      Returns:
      maximum in dimension d.
    • realMax

      public void realMax(double[] maximum)
      Description copied from interface: RealInterval
      Write the maximum of each dimension into double[].
      Specified by:
      realMax in interface RealInterval
    • realMax

      public void realMax(RealPositionable m)
      Description copied from interface: RealInterval
      Sets a RealPositionable to the maximum of this Interval
      Specified by:
      realMax in interface RealInterval
    • min

      public long min(int d)
      Description copied from interface: Interval
      Get the minimum in dimension d.
      Specified by:
      min in interface Interval
      Parameters:
      d - dimension
      Returns:
      minimum in dimension d.
    • min

      public void min(long[] minimum)
      Description copied from interface: Interval
      Write the minimum of each dimension into long[].
      Specified by:
      min in interface Interval
    • min

      public void min(Positionable m)
      Description copied from interface: Interval
      Sets a Positionable to the minimum of this Interval
      Specified by:
      min in interface Interval
    • max

      public long max(int d)
      Description copied from interface: Interval
      Get the maximum in dimension d.
      Specified by:
      max in interface Interval
      Parameters:
      d - dimension
      Returns:
      maximum in dimension d.
    • max

      public void max(long[] maximum)
      Description copied from interface: Interval
      Write the maximum of each dimension into long[].
      Specified by:
      max in interface Interval
    • max

      public void max(Positionable m)
      Description copied from interface: Interval
      Sets a Positionable to the maximum of this Interval
      Specified by:
      max in interface Interval
    • dimensions

      public void dimensions(long[] dimensions)
      Description copied from interface: Dimensions
      Write the number of pixels in each dimension into long[].
      Specified by:
      dimensions in interface Dimensions
    • dimension

      public long dimension(int d)
      Description copied from interface: Dimensions
      Get the number of pixels in a given dimension d.
      Specified by:
      dimension in interface Dimensions