A - access typepublic class EmptyCellCacheLoader<A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>> extends Object implements CacheLoader<Long,net.imglib2.img.cell.Cell<A>>
CacheLoader that produces empty cells of ArrayDataAccess
type A, with the correct dimensions, etc.
Usually, it should be created through static helper methods
get(CellGrid, Fraction, PrimitiveType, Set) or
get(CellGrid, NativeType, Set) to get the desired
primitive type and dirty/volatile variant.
| Constructor and Description |
|---|
EmptyCellCacheLoader(net.imglib2.img.cell.CellGrid grid,
net.imglib2.util.Fraction entitiesPerPixel,
A creator) |
| Modifier and Type | Method and Description |
|---|---|
static <A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>> |
get(net.imglib2.img.cell.CellGrid grid,
net.imglib2.util.Fraction entitiesPerPixel,
net.imglib2.type.PrimitiveType primitiveType,
Set<net.imglib2.img.basictypeaccess.AccessFlags> flags) |
static <T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>> |
get(net.imglib2.img.cell.CellGrid grid,
T type,
Set<net.imglib2.img.basictypeaccess.AccessFlags> flags) |
net.imglib2.img.cell.Cell<A> |
get(Long key) |
public EmptyCellCacheLoader(net.imglib2.img.cell.CellGrid grid, net.imglib2.util.Fraction entitiesPerPixel, A creator)
public net.imglib2.img.cell.Cell<A> get(Long key) throws Exception
get in interface CacheLoader<Long,net.imglib2.img.cell.Cell<A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>>>Exceptionpublic static <T extends net.imglib2.type.NativeType<T>,A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>> EmptyCellCacheLoader<A> get(net.imglib2.img.cell.CellGrid grid, T type, Set<net.imglib2.img.basictypeaccess.AccessFlags> flags)
public static <A extends net.imglib2.img.basictypeaccess.array.ArrayDataAccess<A>> EmptyCellCacheLoader<A> get(net.imglib2.img.cell.CellGrid grid, net.imglib2.util.Fraction entitiesPerPixel, net.imglib2.type.PrimitiveType primitiveType, Set<net.imglib2.img.basictypeaccess.AccessFlags> flags)
Copyright © 2017–2025 ImgLib2. All rights reserved.