public final class PixelList extends Object implements Iterable<Localizable>
RandomAccessible
.
(the value at a given location in the RandomAccessible
is the index
of the next location in the list.)Modifier and Type | Class and Description |
---|---|
class |
PixelList.PixelListIterator |
Constructor and Description |
---|
PixelList(PixelList l) |
PixelList(RandomAccess<LongType> locationsAccess,
long[] dimensions) |
Modifier and Type | Method and Description |
---|---|
void |
addPosition(Localizable position)
Append a pixel location to the list.
|
void |
clear()
empty the list.
|
Iterator<Localizable> |
iterator() |
void |
merge(PixelList l)
Append another
PixelList to this one. |
long |
size()
Get the size of the list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public PixelList(RandomAccess<LongType> locationsAccess, long[] dimensions)
locationsAccess
- RandomAccess into the index image to store the linked list.dimensions
- Dimensions of the index image.public PixelList(PixelList l)
public void addPosition(Localizable position)
public Iterator<Localizable> iterator()
iterator
in interface Iterable<Localizable>
public long size()
public void clear()
Copyright © 2015–2022 ImgLib2. All rights reserved.