A
- Type of pixel store for Cell
.public class IntervalKeyLoaderAsLongKeyLoader<A> extends Object implements CacheLoader<Long,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 Cell
s 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(CellGrid grid,
Function<Interval,A> intervalKeyLoader) |
Copyright © 2015–2022 ImgLib2. All rights reserved.