Package net.imglib2.img.list
Class ListImg<T>
- java.lang.Object
-
- net.imglib2.img.AbstractImg<T>
-
- net.imglib2.img.list.AbstractListImg<T>
-
- net.imglib2.img.list.ListImg<T>
-
- Type Parameters:
T- The value type of the pixels. You can usTypes or arbitraryObjects. If you use non-Typepixels, note, that you cannot useType.set(Type)to change the value stored in every reference. Instead, you can use theListCursor.set(Object)andListRandomAccess.set(Object)methods to alter the underlyingArrayList.
- All Implemented Interfaces:
java.lang.Iterable<T>,Dimensions,EuclideanSpace,Img<T>,Interval,IterableInterval<T>,IterableRealInterval<T>,RandomAccessible<T>,RandomAccessibleInterval<T>,RealInterval,Typed<T>
public class ListImg<T> extends AbstractListImg<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListImg<T>copy()private static <A extends Type<A>>
ListImg<A>copyWithType(ListImg<A> img)protected Tget(int index)TgetType()Get an instance ofT.protected voidset(int index, T value)static <T> ListImg<T>wrap(java.util.List<T> pixels, long... dim)-
Methods inherited from class net.imglib2.img.list.AbstractListImg
cursor, factory, 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
-
-
-
-
Method Detail
-
get
protected T get(int index)
- Specified by:
getin classAbstractListImg<T>
-
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(int index, T value)- Specified by:
setin classAbstractListImg<T>
-
copy
public ListImg<T> copy()
- Returns:
- - A copy of the current
Imginstance, all pixels are duplicated
-
wrap
public static <T> ListImg<T> wrap(java.util.List<T> pixels, long... dim)
-
-