Class LazyCellImg<T extends NativeType<T>, A extends DataAccess>
java.lang.Object
net.imglib2.img.AbstractImg<T>
net.imglib2.img.AbstractNativeImg<T,A>
net.imglib2.img.cell.AbstractCellImg<T, A, Cell<A>, LazyCellImg.LazyCells<Cell<A>>>
net.imglib2.img.cell.LazyCellImg<T,A>
- Type Parameters:
T- the pixel typeA- the underlying native access type
- All Implemented Interfaces:
Iterable<T>, Dimensions, EuclideanSpace, Img<T>, NativeImg<T,A>, Interval, IterableInterval<T>, IterableRealInterval<T>, RandomAccessible<T>, RandomAccessibleInterval<T>, RealInterval, Typed<T>
public class LazyCellImg<T extends NativeType<T>, A extends DataAccess>
extends AbstractCellImg<T, A, Cell<A>, LazyCellImg.LazyCells<Cell<A>>>
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classLazyCellImg.LazyCells<T extends Cell<?>>Nested classes/interfaces inherited from class AbstractCellImg
AbstractCellImg.CellImgSampler<C> -
Field Summary
Fields inherited from class AbstractCellImg
cells, gridFields inherited from class AbstractNativeImg
entitiesPerPixel, linkedType, numEntitiesFields inherited from class AbstractImg
dimension, max, n, numPixels -
Constructor Summary
ConstructorsConstructorDescriptionLazyCellImg(CellGrid grid, Fraction entitiesPerPixel, LazyCellImg.Get<Cell<A>> get) LazyCellImg(CellGrid grid, T type, LazyCellImg.Get<Cell<A>> get) -
Method Summary
Methods inherited from class AbstractCellImg
copyDataTo, cursor, getCellGrid, getCells, iterationOrder, localizingCursor, localizingSpliterator, randomAccess, spliterator, updateMethods inherited from class AbstractNativeImg
createLinkedType, getType, setLinkedTypeMethods inherited from class AbstractImg
dimension, dimensions, max, max, max, min, min, min, numDimensions, numElements, randomAccess, realMax, realMax, realMax, realMin, realMin, realMin, size, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Dimensions
dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPointMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Interval
dimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMinMethods inherited from interface IterableRealInterval
firstElement, iterator, parallelStream, streamMethods inherited from interface RandomAccessible
getAt, getAt, getAt, randomAccessMethods inherited from interface RandomAccessibleInterval
sizeMethods inherited from interface RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
-
Constructor Details
-
LazyCellImg
-
LazyCellImg
-
-
Method Details
-
typeCell
Create a dummy Cell instance to be returned byLazyCells.getType(). -
factory
Description copied from interface:ImgGet aImgFactorythat createsImgs 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.- Returns:
- a factory for Imgs of the same kind as this one.
-
copy
-