docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct IdLabelEntry

    An entry for IdLabelConfig mapping a label to an integer id.

    Implements
    ILabelEntry
    IEquatable<IdLabelEntry>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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
    ValueType.Equals(object)

    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>

    Overrides
    ValueType.GetHashCode()

    Implements

    ILabelEntry
    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)