T
- the pixel typeA
- the underlying native access typepublic class LazyCellImg<T extends NativeType<T>,A> extends AbstractCellImg<T,A,Cell<A>,LazyCellImg.LazyCells<Cell<A>>>
AbstractCellImg
that obtains its Cells lazily when they are
accessed. Cells are obtained by a LazyCellImg.Get
method that is provided by the
user. Typically this is some kind of cache.Modifier and Type | Class and Description |
---|---|
static interface |
LazyCellImg.Get<T> |
static class |
LazyCellImg.LazyCells<T> |
AbstractCellImg.CellImgSampler<C>
cells, grid
entitiesPerPixel, linkedType, numEntities
dimension, max, n, numPixels
Constructor and Description |
---|
LazyCellImg(CellGrid grid,
Fraction entitiesPerPixel,
LazyCellImg.Get<Cell<A>> get) |
LazyCellImg(CellGrid grid,
T type,
LazyCellImg.Get<Cell<A>> get) |
Modifier and Type | Method and Description |
---|---|
Img<T> |
copy() |
ImgFactory<T> |
factory()
Get a
ImgFactory that creates Img s of the same kind as
this one. |
static void |
linkType(NativeType t,
NativeImg img)
Reflection hack because there is no
T NativeType
<T>.create(NativeImg<?, A>) method in ImgLib2 Note that for this method
to be introduced, NativeType would need an additional generic parameter A
that specifies the accepted family of access objects that can be used in
the NativeImg... |
copyDataTo, cursor, getCellGrid, getCells, iterationOrder, localizingCursor, randomAccess, update
createLinkedType, setLinkedType
dimension, dimensions, firstElement, iterator, max, max, max, min, min, min, numDimensions, numElements, randomAccess, realMax, realMax, realMax, realMin, realMin, realMin, size, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
randomAccess
firstElement, size
forEach, iterator, spliterator
realMax, realMax, realMax, realMin, realMin, realMin
dimension, dimensions
numDimensions
public LazyCellImg(CellGrid grid, T type, LazyCellImg.Get<Cell<A>> get)
public LazyCellImg(CellGrid grid, Fraction entitiesPerPixel, LazyCellImg.Get<Cell<A>> get)
public ImgFactory<T> factory()
Img
ImgFactory
that creates Img
s of the same kind as
this one.
This is useful to create Imgs for temporary storage in generic methods
where the specific Img type is unknown. Note, that the factory can be
used even if all references to this Img have been invalidated.public static void linkType(NativeType t, NativeImg img) throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
T NativeType
<T>.create(NativeImg<?, A>)
method in ImgLib2 Note that for this method
to be introduced, NativeType would need an additional generic parameter A
that specifies the accepted family of access objects that can be used in
the NativeImg... big changeCopyright © 2009–2017 ImgLib2. All rights reserved.