T - the desired type of the pixel labels, for instance Integer
to number objects or String for user-assigned label names.public class LabelingMapping<T> extends Object
intern(Set) function that supplies a canonical object for each set
of labelings in a container, and functions
addLabelToSetAtIndex(Object, int),
removeLabelFromSetAtIndex(Object, int) for efficiently adding and
removing labels to the set at a given index value.| Modifier and Type | Class and Description |
|---|---|
static class |
LabelingMapping.SerialisationAccess<T>
Internals.
|
| Constructor and Description |
|---|
LabelingMapping(IntegerType<?> indexType)
Create a new
LabelingMapping that maps label sets to the given
integral indexType. |
| Modifier and Type | Method and Description |
|---|---|
Set<T> |
getLabels()
Return the set of all labels defined in this
LabelingMapping. |
Set<T> |
labelsAtIndex(int index)
Returns the (unmodifiable) set of labels for the given index value.
|
int |
numSets()
Returns the number of indexed labeling sets
|
public LabelingMapping(IntegerType<?> indexType)
LabelingMapping that maps label sets to the given
integral indexType.public int numSets()
public Set<T> labelsAtIndex(int index)
public Set<T> getLabels()
LabelingMapping.Copyright © 2009–2018 ImgLib2. All rights reserved.