Package sc.fiji.snt.filter
Class Lazy
java.lang.Object
sc.fiji.snt.filter.Lazy
Static helpers for creating lazy filtered images
This Class is a direct port of code written by the Saalfeld lab at Janelia Research Campus, original source at https://github.com/saalfeldlab/hot-knife
- Author:
- Cameron Arshadi
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.imglib2.type.NativeType<T>>
net.imglib2.cache.img.CachedCellImg<T, ?> createImg(net.imglib2.Interval targetInterval, int[] blockSize, T type, net.imglib2.cache.img.CellLoader<T> loader) static <T extends net.imglib2.type.NativeType<T>>
net.imglib2.cache.img.CachedCellImg<T, ?> process(net.imglib2.Interval targetInterval, int[] blockSize, T type, Consumer<net.imglib2.RandomAccessibleInterval<T>> op) Create aDiskCachedCellImgwith a cell generatorConsumer.static <I,O extends net.imglib2.type.NativeType<O>, P extends net.imagej.ops.Op>
net.imglib2.cache.img.CachedCellImg<O, ?> process(net.imglib2.RandomAccessibleInterval<I> source, net.imglib2.Interval sourceInterval, int[] blockSize, O type, net.imagej.ops.OpService opService, Class<P> opClass, Object... opArgs) Create aDiskCachedCellImgwith a cell generatorUnaryComputerOpprovided by anOpService.static <I,O extends net.imglib2.type.NativeType<O>>
net.imglib2.cache.img.CachedCellImg<O, ?> process(net.imglib2.RandomAccessibleInterval<I> source, net.imglib2.Interval sourceInterval, int[] blockSize, O type, net.imagej.ops.special.computer.UnaryComputerOp<net.imglib2.RandomAccessibleInterval<I>, net.imglib2.RandomAccessibleInterval<O>> op) Create aDiskCachedCellImgwith a cell generatorUnaryComputerOp.
-
Method Details
-
createImg
public static <T extends net.imglib2.type.NativeType<T>> net.imglib2.cache.img.CachedCellImg<T,?> createImg(net.imglib2.Interval targetInterval, int[] blockSize, T type, net.imglib2.cache.img.CellLoader<T> loader) -
process
public static <T extends net.imglib2.type.NativeType<T>> net.imglib2.cache.img.CachedCellImg<T,?> process(net.imglib2.Interval targetInterval, int[] blockSize, T type, Consumer<net.imglib2.RandomAccessibleInterval<T>> op) Create aDiskCachedCellImgwith a cell generatorConsumer.- Parameters:
targetInterval-blockSize-type-op-- Returns:
-
process
public static <I,O extends net.imglib2.type.NativeType<O>> net.imglib2.cache.img.CachedCellImg<O,?> process(net.imglib2.RandomAccessibleInterval<I> source, net.imglib2.Interval sourceInterval, int[] blockSize, O type, net.imagej.ops.special.computer.UnaryComputerOp<net.imglib2.RandomAccessibleInterval<I>, net.imglib2.RandomAccessibleInterval<O>> op) Create aDiskCachedCellImgwith a cell generatorUnaryComputerOp.- Parameters:
source-sourceInterval-blockSize-type-op-- Returns:
-
process
public static <I,O extends net.imglib2.type.NativeType<O>, net.imglib2.cache.img.CachedCellImg<O,P extends net.imagej.ops.Op> ?> process(net.imglib2.RandomAccessibleInterval<I> source, net.imglib2.Interval sourceInterval, int[] blockSize, O type, net.imagej.ops.OpService opService, Class<P> opClass, Object... opArgs) Create aDiskCachedCellImgwith a cell generatorUnaryComputerOpprovided by anOpService.- Parameters:
source-sourceInterval-blockSize-type-opService-opClass-opArgs-- Returns:
-