Struct IdLabelEntry
An entry for IdLabelConfig mapping a label to an integer id.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.LabelManagement
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public struct IdLabelEntry : ILabelEntry, IEquatable<IdLabelEntry>
Fields
hierarchyRelation
This relationship defines how bounding boxes are calculated for this Labeled object's direct parent (if any).
Declaration
public HierarchyRelation hierarchyRelation
Field Value
Type | Description |
---|---|
HierarchyRelation |
id
The id to associate with the label.
Declaration
public int id
Field Value
Type | Description |
---|---|
int |
label
The label string to associate with the id.
Declaration
public string label
Field Value
Type | Description |
---|---|
string |
Methods
Equals(object)
Override comparing with any other objects. Only typeof(IdLabelEntry) are accepted
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | Any object |
Returns
Type | Description |
---|---|
bool | True if object is IdLabelEntry and label and id are equal |
Overrides
Equals(IdLabelEntry)
Override comparing with any other objects. Only typeof(IdLabelEntry) are accepted
Declaration
public bool Equals(IdLabelEntry other)
Parameters
Type | Name | Description |
---|---|---|
IdLabelEntry | other | IdLabelEntry |
Returns
Type | Description |
---|---|
bool | True if object is IdLabelEntry and label and id are equal |
GetHashCode()
Override GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Custom hash code as int> |