A - Type of pixel store for Cell.public class IntervalKeyLoaderAsLongKeyLoader<A> extends Object implements CacheLoader<Long,net.imglib2.img.cell.Cell<A>>
CacheLoader maps a Long key into an Interval
based on a CellGrid. The creation of an appropriate A is
then delegated to a CacheLoader that generates an A from
an interval.
Implementing a CacheLoader that fills Cells of an
AbstractCellImg requires a lot of boilerplate code for mapping the
Long index of a Cell into the Interval that is backed
by the Cell. The IntervalKeyLoaderAsLongKeyLoader generates
this mapping and reduces the amount of boilerplate code for the caller.| Constructor and Description |
|---|
IntervalKeyLoaderAsLongKeyLoader(net.imglib2.img.cell.CellGrid grid,
Function<net.imglib2.Interval,A> intervalKeyLoader) |
public IntervalKeyLoaderAsLongKeyLoader(net.imglib2.img.cell.CellGrid grid, Function<net.imglib2.Interval,A> intervalKeyLoader)
public net.imglib2.img.cell.Cell<A> get(Long key)
get in interface CacheLoader<Long,net.imglib2.img.cell.Cell<A>>Copyright © 2017–2025 ImgLib2. All rights reserved.