T - source typeA - intermediate access typeCA - access type of cellspublic class RandomAccessibleCacheLoader<T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>,CA extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<CA>> extends Object implements CacheLoader<Long,net.imglib2.img.cell.Cell<CA>>
CacheLoader that produces cells from a given source
RandomAccessible. The cells are backed by ArrayDataAccess of
type CA, with the correct dimensions, etc.
Usually, it should be created through static helper methods
get(CellGrid, RandomAccessible, Set) or
get(CellGrid, RandomAccessible, NativeType, Set) to get
the desired primitive type and dirty/volatile variant.
The access backing the cells is filled through an intermediate access type
A which is the basic variant of the final access type CA. For
example, this might be A = ByteArray and CA =
DirtyByteArray. The reason for this is that we do not want the dirty
flag to be triggered by filling in the initial values.
| Constructor and Description |
|---|
RandomAccessibleCacheLoader(net.imglib2.img.cell.CellGrid grid,
net.imglib2.RandomAccessible<T> source,
T type,
A creator,
Function<A,CA> rewrap) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>,CA extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<CA>> |
get(net.imglib2.img.cell.CellGrid grid,
net.imglib2.RandomAccessible<T> source,
Set<net.imglib2.img.basictypeaccess.AccessFlags> flags) |
static <T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>,CA extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<CA>> |
get(net.imglib2.img.cell.CellGrid grid,
net.imglib2.RandomAccessible<T> source,
T type,
Set<net.imglib2.img.basictypeaccess.AccessFlags> flags) |
net.imglib2.img.cell.Cell<CA> |
get(Long key) |
public RandomAccessibleCacheLoader(net.imglib2.img.cell.CellGrid grid, net.imglib2.RandomAccessible<T> source, T type, A creator, Function<A,CA> rewrap)
public net.imglib2.img.cell.Cell<CA> get(Long key) throws Exception
get in interface CacheLoader<Long,net.imglib2.img.cell.Cell<CA extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<CA>>>Exceptionpublic static <T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>,CA extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<CA>> RandomAccessibleCacheLoader<T,A,CA> get(net.imglib2.img.cell.CellGrid grid, net.imglib2.RandomAccessible<T> source, Set<net.imglib2.img.basictypeaccess.AccessFlags> flags)
public static <T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>,CA extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<CA>> RandomAccessibleCacheLoader<T,A,CA> get(net.imglib2.img.cell.CellGrid grid, net.imglib2.RandomAccessible<T> source, T type, Set<net.imglib2.img.basictypeaccess.AccessFlags> flags)
Copyright © 2017–2025 ImgLib2. All rights reserved.