java.lang.Object
org.bonej.utilities.Streamers
Utility functions to generate streams from various ImageJ2 collections
- Author:
- Richard Domander
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends net.imagej.space.AnnotatedSpace<A>,A extends net.imagej.axis.TypedAxis>
Stream<A> axisStream(S space) Generates aStreamfrom the axes in the given space.static <S extends net.imagej.space.AnnotatedSpace<A>,A extends net.imagej.axis.TypedAxis>
Stream<A> spatialAxisStream(S space) Generates aStreamfrom the spatial axes in the given space.
-
Method Details
-
axisStream
public static <S extends net.imagej.space.AnnotatedSpace<A>,A extends net.imagej.axis.TypedAxis> Stream<A> axisStream(S space) Generates aStreamfrom 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 aStreamfrom 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.
-