public class BlockAlgoUtils extends Object
For example, cellImg(...)
creates a CachedCellImg which computes cells using a given BlockSupplier.
| Constructor and Description |
|---|
BlockAlgoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends net.imglib2.type.NativeType<T>> |
arrayImg(BlockSupplier<T> blocks,
net.imglib2.Interval interval)
Create a
ArrayImg from the specified interval in blocks. |
static <T extends net.imglib2.type.NativeType<T>> |
cellImg(BlockSupplier<T> blocks,
long[] dimensions,
int[] cellDimensions)
Creates a
CachedCellImg which copies cells from the specified
blocks. |
static <T extends net.imglib2.type.NativeType<T>> |
cellLoader(BlockSupplier<T> blocks) |
public static <T extends net.imglib2.type.NativeType<T>> net.imglib2.cache.img.CellLoader<T> cellLoader(BlockSupplier<T> blocks)
public static <T extends net.imglib2.type.NativeType<T>> net.imglib2.cache.img.CachedCellImg<T,?> cellImg(BlockSupplier<T> blocks, long[] dimensions, int[] cellDimensions)
CachedCellImg which copies cells from the specified
blocks.T - target type (type of the returned CachedCellImg)blocks - copies blocks from source datadimensions - dimensions of the CachedCellImg to createcellDimensions - block size of the CachedCellImg to createCachedCellImg which copies cells from blocks.public static <T extends net.imglib2.type.NativeType<T>> net.imglib2.img.array.ArrayImg<T,?> arrayImg(BlockSupplier<T> blocks, net.imglib2.Interval interval)
ArrayImg from the specified interval in blocks.T - target type (type of the returned ArrayImg)blocks - provides data to be copiedinterval - the interval to be copiedArrayImg copied from interval in blocks.Copyright © 2009–2026 ImgLib2. All rights reserved.