Package net.imglib2.stream
Class Streams
- java.lang.Object
-
- net.imglib2.stream.Streams
-
public class Streams extends java.lang.ObjectUtilities for creating "localizable Streams".
-
-
Constructor Summary
Constructors Constructor Description Streams()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.stream.Stream<LocalizableSampler<T>>localizable(IterableInterval<T> interval)Create a sequentialStreamof the elements (value and location) of the giveninterval.static <T> java.util.stream.Stream<RealLocalizableSampler<T>>localizable(IterableRealInterval<T> interval)Create a sequentialStreamof the elements (value and location) of the giveninterval.static <T> java.util.stream.Stream<LocalizableSampler<T>>localizing(IterableInterval<T> interval)Create a sequentialStreamof the elements (value and location) of the giveninterval.static <T> java.util.stream.Stream<RealLocalizableSampler<T>>localizing(IterableRealInterval<T> interval)Create a sequentialStreamof the elements (value and location) of the giveninterval.
-
-
-
Method Detail
-
localizable
public static <T> java.util.stream.Stream<RealLocalizableSampler<T>> localizable(IterableRealInterval<T> interval)
Create a sequentialStreamof the elements (value and location) of the giveninterval.Element locations are computed on demand only, which is suited for usages where location is only needed for a few elements. (Also see
localizing(IterableRealInterval)).- Type Parameters:
T- pixel type- Parameters:
interval- interval over which to provide aStream.- Returns:
- a
Stream<RealLocalizableSampler<T>>over the elements of the given interval.
-
localizing
public static <T> java.util.stream.Stream<RealLocalizableSampler<T>> localizing(IterableRealInterval<T> interval)
Create a sequentialStreamof the elements (value and location) of the giveninterval.Element location is tracked preemptively on every step, which is suited for usages where location is needed for all elements. (Also see
localizable(IterableRealInterval)).- Type Parameters:
T- pixel type- Parameters:
interval- interval over which to provide aStream.- Returns:
- a
Stream<RealLocalizableSampler<T>>over the elements of the given interval.
-
localizable
public static <T> java.util.stream.Stream<LocalizableSampler<T>> localizable(IterableInterval<T> interval)
Create a sequentialStreamof the elements (value and location) of the giveninterval.Element locations are computed on demand only, which is suited for usages where location is only needed for a few elements. (Also see
localizing(IterableInterval)).- Type Parameters:
T- pixel type- Parameters:
interval- interval over which to provide aStream.- Returns:
- a
Stream<LocalizableSampler<T>>over the elements of the given interval.
-
localizing
public static <T> java.util.stream.Stream<LocalizableSampler<T>> localizing(IterableInterval<T> interval)
Create a sequentialStreamof the elements (value and location) of the giveninterval.Element location is tracked preemptively on every step, which is suited for usages where location is needed for all elements. (Also see
localizable(IterableInterval)).- Type Parameters:
T- pixel type- Parameters:
interval- interval over which to provide aStream.- Returns:
- a
Stream<LocalizableSampler<T>>over the elements of the given interval.
-
-