T - the pixel typeA - the underlying native access typepublic class CachedCellImg<T extends NativeType<T>,A> extends LazyCellImg<T,A>
LazyCellImg that creates empty Cells lazily when they are accessed
and stores (modified) Cells in a disk cache when memory runs full.LazyCellImg.Get<T>, LazyCellImg.LazyCells<T>AbstractCellImg.CellImgSampler<C>cells, gridentitiesPerPixel, linkedType, numEntitiesdimension, max, n, numPixels| Constructor and Description |
|---|
CachedCellImg(CellGrid grid,
Fraction entitiesPerPixel,
Cache<Long,Cell<A>> cache,
A accessType) |
CachedCellImg(CellGrid grid,
T type,
Cache<Long,Cell<A>> cache,
A accessType) |
| Modifier and Type | Method and Description |
|---|---|
ImgFactory<T> |
factory()
Get a
ImgFactory that creates Imgs of the same kind as
this one. |
A |
getAccessType() |
Cache<Long,Cell<A>> |
getCache() |
copycopyDataTo, cursor, getCellGrid, getCells, iterationOrder, localizingCursor, randomAccess, updatecreateLinkedType, setLinkedTypedimension, dimensions, firstElement, iterator, max, max, max, min, min, min, numDimensions, numElements, randomAccess, realMax, realMax, realMax, realMin, realMin, realMin, size, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAt, getAt, getAt, randomAccessfirstElement, sizeforEach, iterator, spliteratordimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMinmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMinallPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivenumDimensionspublic CachedCellImg(CellGrid grid, Fraction entitiesPerPixel, Cache<Long,Cell<A>> cache, A accessType)
public ImgFactory<T> factory()
ImgImgFactory that creates Imgs 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.factory in interface Img<T extends NativeType<T>>factory in class LazyCellImg<T extends NativeType<T>,A>public A getAccessType()
Copyright © 2015–2022 ImgLib2. All rights reserved.