java.lang.Object
org.bonej.wrapperPlugins.wrapperUtils.HyperstackUtils.Subspace<T>
Enclosing class:
HyperstackUtils

public static final class HyperstackUtils.Subspace<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> extends Object
A class which stores a subspace interval of an n-dimensional hyperspace, and metadata

The metadata describes the position of the subspace in the hyperspace.

  • Field Details

  • Method Details

    • getAxisTypes

      public Stream<net.imagej.axis.AxisType> getAxisTypes()
      Types of the additional hyperspace dimensions

      For example a 3D {X, Y, Z} subspace of a 5D {X, Y, C, Z, T} hyperspace, would have types {Axes.CHANNEL, Axes.TIME}.

      Returns:
      a stream of the types in order.
    • getPosition

      public LongStream getPosition()
      Position of the subspace in each additional dimension of the hyperspace.

      For example, one 3D {X, Y, Z} subspace of a 5D {X, Y, C, Z, T} hyperspace, would have position {0, 1} - 1st channel, 2nd frame.

      Returns:
      a stream of the positions in order.
    • getSubScripts

      public LongStream getSubScripts()
      Subscripts of the additional hyperspace dimensions

      Subscripts identify multiple axis of the same type

      For example a 3D {X, Y} subspace of a 6D {X, Y, C, Z, T, T} hyperspace, would have subscripts {1, 1, 1, 2}.

      Returns:
      a stream of the positions in order.
    • toString

      public String toString()
      Overrides:
      toString in class Object