Class SubsampleIntervalView<T>

java.lang.Object
net.imglib2.view.SubsampleView<T>
net.imglib2.view.SubsampleIntervalView<T>
All Implemented Interfaces:
Dimensions, EuclideanSpace, Interval, RandomAccessible<T>, RandomAccessibleInterval<T>, RealInterval, View

public class SubsampleIntervalView<T> extends SubsampleView<T> implements RandomAccessibleInterval<T>
SubsampleIntervalView is a view that provides access to only every sdth value of a source RandomAccessibleInterval. Its transformed origin is at the min coordinate of the source Interval. This is effectively an integer scaling and optional offset transformation. Localization calls to the RandomAccess and Interval dimension calls to the SubsampleIntervalView return scaled and translated coordinates that are generated on-the-fly. Localization is thus moderately inefficient to the benefit of faster positioning. Don't ask for what you already know ;).
Author:
Stephan Saalfeld
  • Field Details

    • dimensions

      protected final long[] dimensions
    • max

      protected final long[] max
  • Constructor Details

  • Method Details

    • 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[] min)
      Description copied from interface: Interval
      Write the minimum of each dimension into long[].
      Specified by:
      min in interface Interval
      Parameters:
      min -
    • min

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

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

      public void dimensions(long[] dim)
      Description copied from interface: Dimensions
      Write the number of pixels in each dimension into long[].
      Specified by:
      dimensions in interface Dimensions
      Parameters:
      dim -
    • 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
      Parameters:
      d -