T
- the desired type of the pixel labels, for instance Integer to
number objects or String for user-assigned label names@Deprecated public class LabelingType<T extends Comparable<T>> extends Object implements Type<LabelingType<T>>
Modifier and Type | Field and Description |
---|---|
protected long[] |
generation
Deprecated.
|
protected LabelingMapping<T> |
mapping
Deprecated.
|
protected IntegerType<?> |
type
Deprecated.
|
Modifier | Constructor and Description |
---|---|
|
LabelingType()
Deprecated.
|
|
LabelingType(IntegerType<?> type,
LabelingMapping<T> mapping)
Deprecated.
|
protected |
LabelingType(IntegerType<?> type,
LabelingMapping<T> mapping,
long[] generation)
Deprecated.
Constructor for mirroring state with another labeling
|
|
LabelingType(List<T> value)
Deprecated.
|
|
LabelingType(T value)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LabelingType<T> |
copy()
Deprecated.
|
LabelingType<T> |
createVariable()
Deprecated.
Creates a new
Type variable which can only store one value. |
IntegerType<?> |
getIndex()
Deprecated.
|
List<T> |
getLabeling()
Deprecated.
Get the labels defined at the type's current pixel or
|
LabelingMapping<T> |
getMapping()
Deprecated.
|
List<T> |
intern(List<T> labeling)
Deprecated.
This method returns the canonical object for the given labeling.
|
List<T> |
intern(T label)
Deprecated.
Return the canonical labeling object representing the single labeling.
|
void |
set(LabelingType<T> c)
Deprecated.
Sets the value of another
Type . |
void |
setLabel(T label)
Deprecated.
Assign a pixel a single label
|
void |
setLabeling(List<T> labeling)
Deprecated.
Set the labeling at the current pixel
|
void |
setLabeling(T[] labeling)
Deprecated.
|
String |
toString()
Deprecated.
|
boolean |
valueEquals(LabelingType<T> t)
Deprecated.
|
protected final long[] generation
protected final LabelingMapping<T extends Comparable<T>> mapping
protected final IntegerType<?> type
protected LabelingType(IntegerType<?> type, LabelingMapping<T> mapping, long[] generation)
type
- Wrapped typemapping
- Mapping from wrapped type to LabelingListgeneration
- Generation of the typepublic LabelingType(IntegerType<?> type, LabelingMapping<T> mapping)
public LabelingType(T value)
public LabelingType()
public final List<T> getLabeling()
public void setLabeling(List<T> labeling)
labeling
- public void setLabeling(T[] labeling)
public void setLabel(T label)
label
- - the label to assignpublic List<T> intern(List<T> labeling)
public List<T> intern(T label)
label
- - a label for a pixel.public LabelingType<T> createVariable()
Type
Type
variable which can only store one value.createVariable
in interface Type<LabelingType<T extends Comparable<T>>>
Type
variablepublic LabelingType<T> copy()
Type
copy
in interface Type<LabelingType<T extends Comparable<T>>>
Type
variablepublic void set(LabelingType<T> c)
Type
Type
.set
in interface Type<LabelingType<T extends Comparable<T>>>
c
- the new valuepublic LabelingMapping<T> getMapping()
public IntegerType<?> getIndex()
IntegerType
holding the current index at the position of the LabelingType.
NB: The returned IntegerType
should be used read-only. Don't write to this type.
The value of the IntegerType
refers to a key in the LabelingMapping
.
Writing to this type may invalidate the caching of the LabelingROIStrategy
.public boolean valueEquals(LabelingType<T> t)
valueEquals
in interface ValueEquals<LabelingType<T extends Comparable<T>>>
Copyright © 2015–2022 ImgLib2. All rights reserved.