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 usType
s or arbitraryObject
s. If you use non-Type
pixels, 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
public class ListImg<T> extends AbstractListImg<T>
ThisImg
stores an image in a single linearArrayList
. Each pixel is stored as an individual object, soListImg
should only be used for images with relatively few pixels. In principle, the number of entities stored is limited toInteger.MAX_VALUE
.- Author:
- Stephan Preibisch, Stephan Saalfeld, Tobias Pietzsch
-
-
Field Summary
-
Fields inherited from class net.imglib2.img.list.AbstractListImg
dim, step
-
Fields inherited from class net.imglib2.img.AbstractImg
dimension, max, n, numPixels
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListImg<T>
copy()
protected T
get(int index)
protected void
set(int index, T value)
-
Methods inherited from class net.imglib2.img.list.AbstractListImg
cursor, factory, iterationOrder, localizingCursor, randomAccess
-
Methods inherited from class net.imglib2.img.AbstractImg
dimension, dimensions, firstElement, iterator, max, max, max, min, min, min, numDimensions, numElements, randomAccess, realMax, realMax, realMax, realMin, realMin, realMin, size, toString
-
-