public class Load extends Object
Constructor and Description |
---|
Load() |
Modifier and Type | Method and Description |
---|---|
static <T extends NumericType<T> & NativeType<T>,A extends ArrayDataAccess<A>> |
lazyStack(List<String> paths)
Convenient method that invokes
lazyStack(List, CacheLoader)
with a cache-enabled IJLoader . |
static <T extends NumericType<T> & NativeType<T>,A extends ArrayDataAccess<A>> |
lazyStack(List<String> paths,
CacheLoader<String,Img<T>> loader)
Return a
CachedCellImg representation of the ordered list of file paths,
with each file path pointing to an image that can be loaded with the CacheLoader . |
static <T extends NumericType<T> & NativeType<T>,A extends ArrayDataAccess<A>> |
lazyStack(String[] paths)
Convenient method that invokes
lazyStack(List, CacheLoader)
with a cache-enabled IJLoader . |
static <T extends NumericType<T> & NativeType<T>> |
stack(List<String> paths,
CacheLoader<String,Img<T>> loader)
Return an
Img representation of the ordered list of file paths,
with each file path pointing to an image that can be loaded with the CacheLoader . |
static <T extends NumericType<T> & NativeType<T>> |
stack(String[] paths,
CacheLoader<String,Img<T>> loader) |
public static final <T extends NumericType<T> & NativeType<T>,A extends ArrayDataAccess<A>> CachedCellImg<T,A> lazyStack(List<String> paths, CacheLoader<String,Img<T>> loader)
CachedCellImg
representation of the ordered list of file paths,
with each file path pointing to an image that can be loaded with the CacheLoader
.
All images are expected to be of the same dimensions and of NativeType
.
Each image is loaded as a Cell
of the LazyCellImg
, or,
in the case of PlanarImg
, each stack plane is loaded as a Cell
.
For example, load a 4D volume by providing a list of file paths to the 3D volume of each time point.
Can equally load a 3D volume by providing a list of file paths to the 2D images.
The first image will be loaded to find out the dimensions, but it is cached.paths
- The ordered list of file paths, one per image to load.loader
- The reader that turns a file path into an Img
.public static final <T extends NumericType<T> & NativeType<T>,A extends ArrayDataAccess<A>> LazyCellImg<T,A> lazyStack(String[] paths)
lazyStack(List, CacheLoader)
with a cache-enabled IJLoader
.paths
- The ordered list of file paths, one per image to load.LazyCellImg
that lazily loads each time point, one per file path.lazyStack(List, CacheLoader)
public static final <T extends NumericType<T> & NativeType<T>,A extends ArrayDataAccess<A>> LazyCellImg<T,A> lazyStack(List<String> paths)
lazyStack(List, CacheLoader)
with a cache-enabled IJLoader
.paths
- The ordered list of file paths, one per image to load.LazyCellImg
that lazily loads each time point, one per file path.lazyStack(List, CacheLoader)
public static final <T extends NumericType<T> & NativeType<T>> RandomAccessibleInterval<T> stack(List<String> paths, CacheLoader<String,Img<T>> loader)
Img
representation of the ordered list of file paths,
with each file path pointing to an image that can be loaded with the CacheLoader
.
All images are expected to be of the same dimensions and of NativeType
.
Eager: loads all images right away.paths
- The ordered list of file paths, one per image to load.loader
- The reader that turns a file path into an Img
.public static final <T extends NumericType<T> & NativeType<T>> RandomAccessibleInterval<T> stack(String[] paths, CacheLoader<String,Img<T>> loader)
stack(List, CacheLoader)
Copyright © 2015–2022 ImgLib2. All rights reserved.