Class Streamers

java.lang.Object
org.bonej.utilities.Streamers

public final class Streamers extends Object
Utility functions to generate streams from various ImageJ2 collections
Author:
Richard Domander
  • Method Details

    • axisStream

      public static <S extends net.imagej.space.AnnotatedSpace<A>, A extends net.imagej.axis.TypedAxis> Stream<A> axisStream(S space)
      Generates a Stream from the axes in the given space.
      Type Parameters:
      S - type of the space.
      A - type of the axes.
      Parameters:
      space - an N-dimensional space.
      Returns:
      a Stream of all the axes in the space.
    • spatialAxisStream

      public static <S extends net.imagej.space.AnnotatedSpace<A>, A extends net.imagej.axis.TypedAxis> Stream<A> spatialAxisStream(S space)
      Generates a Stream from the spatial axes in the given space.
      Type Parameters:
      S - type of the space.
      A - type of the axes.
      Parameters:
      space - an N-dimensional space.
      Returns:
      a Stream of spatial axes.