docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BoundingBox

    The 2D bounding box information of a labeled object.

    Implements
    IMessageProducer
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Perception.GroundTruth.Labelers
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public struct BoundingBox : IMessageProducer

    Properties

    dimension

    (width/height) dimensions of the bounding box.

    Declaration
    public Vector2 dimension { readonly get; set; }
    Property Value
    Type Description
    Vector2

    instanceId

    The instance ID of the object.

    Declaration
    public int instanceId { readonly get; set; }
    Property Value
    Type Description
    int

    labelId

    The label id of the object.

    Declaration
    public int labelId { readonly get; set; }
    Property Value
    Type Description
    int

    labelName

    The type of the object.

    Declaration
    public string labelName { readonly get; set; }
    Property Value
    Type Description
    string

    origin

    (xy) pixel location of the object's bounding box.

    Declaration
    public Vector2 origin { readonly get; set; }
    Property Value
    Type Description
    Vector2

    Methods

    Encapsulate(BoundingBox)

    Enlarges the current bounding box to encompass the other bounding box. The newly created bounding box will exactly fit both the old bounding box and the provided other bounding box.

    Declaration
    public void Encapsulate(BoundingBox other)
    Parameters
    Type Name Description
    BoundingBox other

    ToMessage(IMessageBuilder)

    Convert contents int a message.

    Declaration
    public void ToMessage(IMessageBuilder builder)
    Parameters
    Type Name Description
    IMessageBuilder builder

    The message builder that will convert the class's contents into a message

    Implements

    IMessageProducer
    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)