Class LabelConfig<T>
A definition for how a Labeling should be resolved to a single label and id for ground truth generation.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
public class LabelConfig<T> : ScriptableObject where T : ILabelEntry
Type Parameters
| Name | Description |
|---|---|
| T | The entry type. Must derive from ILabelEntry |
Fields
| Name | Description |
|---|---|
| labelEntriesFieldName | The name of the serialized field for label entries. |
Properties
| Name | Description |
|---|---|
| labelEntries | A sequence of ILabelEntry which defines the labels relevant for this configuration and their values. |
Methods
| Name | Description |
|---|---|
| Init(IEnumerable<T>) | Initialize the list of LabelEntries on this LabelingConfiguration. Should only be called immediately after instantiation. |
| OnInit() | Called when the labelEntries list is assigned using Init(IEnumerable<T>) |
| TryGetMatchingConfigurationEntry(Labeling, out T) | Attempts to find the matching index in m_LabelEntries for the given Labeling. |
| TryGetMatchingConfigurationEntry(Labeling, out T, out int) | Attempts to find the matching index in m_LabelEntries for the given Labeling. |