Package net.imglib2

Class AbstractInterval

    • Field Detail

      • min

        protected final long[] min
      • max

        protected final long[] max
    • Constructor Detail

      • AbstractInterval

        public AbstractInterval​(int n)
        Creates an n-dimensional AbstractInterval with min and max = 0n.
        Parameters:
        n - number of dimensions
      • 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 Detail

      • 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
      • 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
      • 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
      • 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
      • 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