Class Streams
java.lang.Object
net.imglib2.stream.Streams
Utilities for creating "localizable Streams".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Stream<LocalizableSampler<T>> localizable(IterableInterval<T> interval) Create a sequentialStreamof the elements (value and location) of the giveninterval.static <T> Stream<RealLocalizableSampler<T>> localizable(IterableRealInterval<T> interval) Create a sequentialStreamof the elements (value and location) of the giveninterval.static <T> Stream<LocalizableSampler<T>> localizing(IterableInterval<T> interval) Create a sequentialStreamof the elements (value and location) of the giveninterval.static <T> Stream<RealLocalizableSampler<T>> localizing(IterableRealInterval<T> interval) Create a sequentialStreamof the elements (value and location) of the giveninterval.
-
Constructor Details
-
Streams
public Streams()
-
-
Method Details
-
localizable
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
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
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
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.
-