T
- The value type of the pixels. You can us Type
s or
arbitrary Object
s. 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, step
dimension, max, n, numPixels
Constructor and Description |
---|
ListImg(Collection<T> collection,
long... dim) |
ListImg(long[] dim,
T type) |
Modifier and Type | Method and Description |
---|---|
ListImg<T> |
copy() |
protected T |
get(int index) |
protected void |
set(int index,
T value) |
cursor, factory, iterationOrder, localizingCursor, randomAccess
dimension, dimensions, firstElement, iterator, max, max, max, min, min, min, numDimensions, numElements, randomAccess, realMax, realMax, realMax, realMin, realMin, realMin, size, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAt, getAt, getAt
forEach, spliterator
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
allPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
public ListImg(long[] dim, T type)
public ListImg(Collection<T> collection, long... dim)
Copyright © 2015–2022 ImgLib2. All rights reserved.