Package net.imglib2

Class AbstractRealInterval

java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractRealInterval
All Implemented Interfaces:
EuclideanSpace, RealInterval
Direct Known Subclasses:
FinalRealInterval

public class AbstractRealInterval extends AbstractEuclideanSpace implements RealInterval
Implementation of the RealInterval interface.
Author:
Stephan Preibisch
  • Field Details

    • min

      protected final double[] min
    • max

      protected final double[] max
  • Constructor Details

    • AbstractRealInterval

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

      public AbstractRealInterval(RealInterval interval)
      Creates a new AbstractRealInterval using an existing RealInterval
      Parameters:
      interval -
    • AbstractRealInterval

      public AbstractRealInterval(double[] min, double[] max)
      Creates a new AbstractRealInterval from min and max coordinates
      Parameters:
      min -
      max -
  • 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[] realMin)
      Description copied from interface: RealInterval
      Write the minimum of each dimension into double[].
      Specified by:
      realMin in interface RealInterval
      Parameters:
      realMin -
    • realMin

      public void realMin(RealPositionable realMin)
      Description copied from interface: RealInterval
      Sets a RealPositionable to the minimum of this Interval
      Specified by:
      realMin in interface RealInterval
      Parameters:
      realMin -
    • 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[] realMax)
      Description copied from interface: RealInterval
      Write the maximum of each dimension into double[].
      Specified by:
      realMax in interface RealInterval
      Parameters:
      realMax -
    • realMax

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