Package net.imglib2.img.cell
Class LazyCellImg.LazyCells<T extends Cell<?>>
- java.lang.Object
-
- net.imglib2.img.AbstractImg<T>
-
- net.imglib2.img.list.AbstractLongListImg<T>
-
- net.imglib2.img.cell.LazyCellImg.LazyCells<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,Dimensions,EuclideanSpace,Img<T>,Interval,IterableInterval<T>,IterableRealInterval<T>,RandomAccessible<T>,RandomAccessibleInterval<T>,RealInterval,Typed<T>
- Enclosing class:
- LazyCellImg<T extends NativeType<T>,A extends DataAccess>
public static final class LazyCellImg.LazyCells<T extends Cell<?>> extends AbstractLongListImg<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.imglib2.img.list.AbstractLongListImg
AbstractLongListImg.LongListCursor, AbstractLongListImg.LongListLocalizingCursor, AbstractLongListImg.LongListRandomAccess
-
-
Field Summary
Fields Modifier and Type Field Description private LazyCellImg.Get<T>getprivate Ttype-
Fields inherited from class net.imglib2.img.list.AbstractLongListImg
step
-
Fields inherited from class net.imglib2.img.AbstractImg
dimension, max, n, numPixels
-
-
Constructor Summary
Constructors Constructor Description LazyCells(long[] dimensions, LazyCellImg.Get<T> get, T type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Img<T>copy()ImgFactory<T>factory()Get aImgFactorythat createsImgs of the same kind as this one.protected Tget(long index)TgetType()Get an instance ofT.protected voidset(long index, T value)-
Methods inherited from class net.imglib2.img.list.AbstractLongListImg
cursor, iterationOrder, localizingCursor, randomAccess
-
Methods inherited from class net.imglib2.img.AbstractImg
dimension, dimensions, max, max, max, min, min, min, numDimensions, numElements, randomAccess, realMax, realMax, realMax, realMin, realMin, realMin, size, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPoint
-
Methods inherited from interface net.imglib2.Interval
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
-
Methods inherited from interface net.imglib2.IterableInterval
localizingSpliterator, spliterator
-
Methods inherited from interface net.imglib2.IterableRealInterval
firstElement, iterator, parallelStream, stream
-
Methods inherited from interface net.imglib2.RandomAccessible
getAt, getAt, getAt
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
-
-
-
Field Detail
-
get
private final LazyCellImg.Get<T extends Cell<?>> get
-
-
Constructor Detail
-
LazyCells
public LazyCells(long[] dimensions, LazyCellImg.Get<T> get, T type)
-
-
Method Detail
-
get
protected T get(long index)
- Specified by:
getin classAbstractLongListImg<T extends Cell<?>>
-
getType
public T getType()
Description copied from interface:TypedGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance.- Returns:
- an instance of
T
-
set
protected void set(long index, T value)- Specified by:
setin classAbstractLongListImg<T extends Cell<?>>
-
factory
public ImgFactory<T> 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.
-
-