T
- the label typepublic class LabelRegions<T> extends AbstractEuclideanSpace implements Iterable<LabelRegion<T>>
LabelRegion
s for all labels of a labeling.
A labeling can be for example an ImgLabeling
or a view onto an
ImgLabeling
.
Changes to the underlying labeling are correctly reflected.
LabelRegions
is thread-safe, however, concurrently modifying the
labeling and accessing the LabelRegions
has undefined results.
Modifier and Type | Field and Description |
---|---|
protected ArrayList<net.imglib2.roi.labeling.LabelRegions.FragmentProperties> |
indexToFragmentProperties |
n
Constructor and Description |
---|
LabelRegions(RandomAccessibleInterval<LabelingType<T>> labeling) |
Modifier and Type | Method and Description |
---|---|
Set<T> |
getExistingLabels()
Get the set of labels which actually occur at some pixel in the labeling.
|
LabelRegion<T> |
getLabelRegion(T label) |
Iterator<LabelRegion<T>> |
iterator() |
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected final ArrayList<net.imglib2.roi.labeling.LabelRegions.FragmentProperties> indexToFragmentProperties
public LabelRegions(RandomAccessibleInterval<LabelingType<T>> labeling)
public LabelRegion<T> getLabelRegion(T label)
public Set<T> getExistingLabels()
LabelingMapping
.)public Iterator<LabelRegion<T>> iterator()
iterator
in interface Iterable<LabelRegion<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.