public class BlockAlgoUtils extends Object
For example, cellImg(...) creates a CachedCellImg which computes
cells using a given UnaryBlockOperator.
| Constructor and Description |
|---|
BlockAlgoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <S extends NativeType<S>,T extends NativeType<T>,I,O> |
cellImg(net.imglib2.blocks.PrimitiveBlocks<S> blocks,
BlockProcessor<I,O> blockProcessor,
T type,
long[] dimensions,
int[] cellDimensions) |
static <S extends NativeType<S>,T extends NativeType<T>,I,O> |
cellImg(net.imglib2.blocks.PrimitiveBlocks<S> blocks,
UnaryBlockOperator<S,T> operator,
T type,
long[] dimensions,
int[] cellDimensions)
Creates a
CachedCellImg which computes cells using the specified
operator, where input data is obtained from the specified blocks. |
static <S extends NativeType<S>,T extends NativeType<T>,I,O> |
cellLoader(net.imglib2.blocks.PrimitiveBlocks<S> blocks,
BlockProcessor<I,O> blockProcessor) |
static <S extends NativeType<S>,T extends NativeType<T>,I,O> |
cellLoader(net.imglib2.blocks.PrimitiveBlocks<S> blocks,
UnaryBlockOperator<S,T> operator) |
public static <S extends NativeType<S>,T extends NativeType<T>,I,O> CellLoader<T> cellLoader(net.imglib2.blocks.PrimitiveBlocks<S> blocks, UnaryBlockOperator<S,T> operator)
public static <S extends NativeType<S>,T extends NativeType<T>,I,O> CachedCellImg<T,?> cellImg(net.imglib2.blocks.PrimitiveBlocks<S> blocks, UnaryBlockOperator<S,T> operator, T type, long[] dimensions, int[] cellDimensions)
CachedCellImg which computes cells using the specified
operator, where input data is obtained from the specified blocks.S - source type (type of the image which we take inputs from)T - target type (type of the returned CachedCellImg)blocks - copies blocks from source dataoperator - computes output blockstype - instance of the type of the CachedCellImg to createdimensions - dimensions of the CachedCellImg to createcellDimensions - block size of the CachedCellImg to createCachedCellImg which computes cells by applying operator to input blocks.public static <S extends NativeType<S>,T extends NativeType<T>,I,O> CellLoader<T> cellLoader(net.imglib2.blocks.PrimitiveBlocks<S> blocks, BlockProcessor<I,O> blockProcessor)
public static <S extends NativeType<S>,T extends NativeType<T>,I,O> CachedCellImg<T,?> cellImg(net.imglib2.blocks.PrimitiveBlocks<S> blocks, BlockProcessor<I,O> blockProcessor, T type, long[] dimensions, int[] cellDimensions)
Copyright © 2009–2023 ImgLib2. All rights reserved.