T - The value type of the pixels. You can us Types or
arbitrary Objects. If you use non-Type pixels,
note, that you cannot use Type.set(Type) to change the
value stored in every reference. Instead, you can use the
ListCursor.set(Object) and
ListRandomAccess.set(Object) methods to alter the
underlying ArrayList.public class ListImg<T> extends AbstractListImg<T>
Img stores an image in a single linear ArrayList. Each
pixel is stored as an individual object, so ListImg should only be
used for images with relatively few pixels. In principle, the number of
entities stored is limited to Integer.MAX_VALUE.dim, stepdimension, max, n, numPixels| Constructor and Description |
|---|
ListImg(Collection<T> collection,
long... dim) |
ListImg(long[] dim,
T type) |
ListImg(T type,
Collection<T> collection,
long... dim) |
| Modifier and Type | Method and Description |
|---|---|
ListImg<T> |
copy() |
protected T |
get(int index) |
T |
getType()
Get an instance of
T. |
protected void |
set(int index,
T value) |
static <T> ListImg<T> |
wrap(List<T> pixels,
long... dim) |
cursor, factory, iterationOrder, localizingCursor, randomAccessdimension, dimensions, 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, getAtlocalizingSpliterator, spliteratorfirstElement, iterator, parallelStream, streammaxAsLongArray, maxAsPoint, minAsLongArray, minAsPointmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointallPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivepublic ListImg(long[] dim,
T type)
public ListImg(T type, Collection<T> collection, long... dim)
public ListImg(Collection<T> collection, long... dim)
protected T get(int index)
get in class AbstractListImg<T>public T getType()
IterableRealIntervalT.
It should not be assumed that the returned T instance is an
independent copy. In particular, repeated calls to getType() may
return the same instance.
The default implementation returns IterableRealInterval.firstElement(). Derived classes
may choose different implementations for improved performance.
Tprotected void set(int index,
T value)
set in class AbstractListImg<T>public ListImg<T> copy()
Img instance, all pixels are
duplicatedCopyright © 2009–2024 ImgLib2. All rights reserved.